[arch-commits] Commit in python-os-service-types/repos/community-any (2 files)

Felix Yan felixonmars at archlinux.org
Thu Mar 15 10:42:32 UTC 2018


    Date: Thursday, March 15, 2018 @ 10:42:31
  Author: felixonmars
Revision: 308431

archrelease: copy trunk to community-any

Added:
  python-os-service-types/repos/community-any/PKGBUILD
    (from rev 308430, python-os-service-types/trunk/PKGBUILD)
Deleted:
  python-os-service-types/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  112 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 57 insertions(+), 55 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-03-15 10:42:16 UTC (rev 308430)
+++ PKGBUILD	2018-03-15 10:42:31 UTC (rev 308431)
@@ -1,55 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-
-pkgbase=python-os-service-types
-pkgname=(python-os-service-types python2-os-service-types)
-pkgver=1.2.0
-pkgrel=1
-pkgdesc="Python library for consuming OpenStack sevice-types-authority data"
-arch=('any')
-url="https://pypi.python.org/pypi/os-service-types/$pkgver"
-license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr')
-checkdepends=('python-oslotest' 'python2-oslotest' 'python-requests-mock' 'python2-requests-mock')
-options=('!emptydirs')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/os-service-types/archive/$pkgver.tar.gz")
-sha512sums=('f7e0aedfcf18514bb8a112a27363971361dfa4abeb05ec32f206197f07bbc55c119cf6b47058977925e77306658a83aab7619aa3a97f3581976e81ae5abef056')
-
-prepare() {
-  cp -a os-service-types-$pkgver{,-py2}
-
-  export PBR_VERSION=$pkgver
-}
-
-build() {
-  cd "$srcdir"/os-service-types-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/os-service-types-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/os-service-types-$pkgver
-  python setup.py testr
-
-  cd "$srcdir"/os-service-types-$pkgver-py2
-  PYTHON=python2 python2 setup.py testr
-}
-
-package_python-os-service-types() {
-  depends=('python-pbr')
-
-  cd "$srcdir"/os-service-types-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}
-
-package_python2-os-service-types() {
-  depends=('python2-pbr')
-
-  cd "$srcdir"/os-service-types-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-os-service-types/repos/community-any/PKGBUILD (from rev 308430, python-os-service-types/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-03-15 10:42:31 UTC (rev 308431)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgbase=python-os-service-types
+pkgname=(python-os-service-types python2-os-service-types)
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="Python library for consuming OpenStack sevice-types-authority data"
+arch=('any')
+url="https://pypi.python.org/pypi/os-service-types/$pkgver"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr')
+checkdepends=('python-oslotest' 'python2-oslotest' 'python-requests-mock' 'python2-requests-mock')
+options=('!emptydirs')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/os-service-types/archive/$pkgver.tar.gz")
+sha512sums=('f7e0aedfcf18514bb8a112a27363971361dfa4abeb05ec32f206197f07bbc55c119cf6b47058977925e77306658a83aab7619aa3a97f3581976e81ae5abef056')
+
+prepare() {
+  cp -a os-service-types-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/os-service-types-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/os-service-types-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/os-service-types-$pkgver
+  python setup.py testr
+
+  cd "$srcdir"/os-service-types-$pkgver-py2
+  PYTHON=python2 python2 setup.py testr
+}
+
+package_python-os-service-types() {
+  depends=('python-pbr')
+
+  cd "$srcdir"/os-service-types-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 os_service_types/data/service-types.json "$pkgdir"/usr/lib/python3.6/site-packages/os_service_types/data/service-types.json
+}
+
+package_python2-os-service-types() {
+  depends=('python2-pbr')
+
+  cd "$srcdir"/os-service-types-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 os_service_types/data/service-types.json "$pkgdir"/usr/lib/python2.7/site-packages/os_service_types/data/service-types.json
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list