[arch-commits] Commit in python-os-client-config/repos/community-any (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 11 05:29:39 UTC 2017
Date: Tuesday, July 11, 2017 @ 05:29:39
Author: felixonmars
Revision: 243882
archrelease: copy trunk to community-any
Added:
python-os-client-config/repos/community-any/PKGBUILD
(from rev 243881, python-os-client-config/trunk/PKGBUILD)
Deleted:
python-os-client-config/repos/community-any/PKGBUILD
----------+
PKGBUILD | 110 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 56 insertions(+), 54 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-07-11 05:29:21 UTC (rev 243881)
+++ PKGBUILD 2017-07-11 05:29:39 UTC (rev 243882)
@@ -1,54 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-os-client-config
-pkgname=('python-os-client-config' 'python2-os-client-config')
-pkgver=1.27.0
-pkgrel=1
-arch=('any')
-pkgdesc='OpenStack Client Configuation Library'
-url='https://github.com/openstack/os-client-config'
-license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-yaml' 'python2-yaml' 'git'
- 'python-appdirs' 'python2-appdirs' 'python-keystoneauth1' 'python2-keystoneauth1'
- 'python-requestsexceptions' 'python2-requestsexceptions')
-checkdepends=('python-testrepository' 'python2-testrepository' 'python-oslotest' 'python2-oslotest'
- 'python-jsonschema' 'python2-jsonschema' 'python-mock' 'python2-mock'
- 'python-glanceclient' 'python2-glanceclient')
-source=("git+https://github.com/openstack/os-client-config.git#tag=$pkgver")
-sha512sums=('SKIP')
-
-prepare() {
- cp -a os-client-config{,-py2}
-}
-
-build() {
- cd "$srcdir"/os-client-config
- python setup.py build
-
- cd "$srcdir"/os-client-config-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/os-client-config
- # One test failure in os_client_config.tests.test_config.TestConfig
- python setup.py testr || warning "Tests failed"
-
- cd "$srcdir"/os-client-config-py2
- PYTHON=python2 python2 setup.py testr
-}
-
-package_python-os-client-config() {
- depends=('python-yaml' 'python-appdirs' 'python-keystoneauth1' 'python-requestsexceptions')
-
- cd os-client-config
- python setup.py install --root "$pkgdir" --optimize=1
-}
-
-package_python2-os-client-config() {
- depends=('python2-yaml' 'python2-appdirs' 'python2-keystoneauth1' 'python2-requestsexceptions')
-
- cd os-client-config-py2
- python2 setup.py install --root "$pkgdir" --optimize=1
-}
Copied: python-os-client-config/repos/community-any/PKGBUILD (from rev 243881, python-os-client-config/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-07-11 05:29:39 UTC (rev 243882)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-os-client-config
+pkgname=('python-os-client-config' 'python2-os-client-config')
+pkgver=1.28.0
+pkgrel=1
+arch=('any')
+pkgdesc='OpenStack Client Configuation Library'
+url='https://github.com/openstack/os-client-config'
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-yaml' 'python2-yaml'
+ 'python-appdirs' 'python2-appdirs' 'python-keystoneauth1' 'python2-keystoneauth1'
+ 'python-requestsexceptions' 'python2-requestsexceptions')
+checkdepends=('python-testrepository' 'python2-testrepository' 'python-oslotest' 'python2-oslotest'
+ 'python-jsonschema' 'python2-jsonschema' 'python-mock' 'python2-mock'
+ 'python-glanceclient' 'python2-glanceclient')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/os-client-config/archive/$pkgver.tar.gz")
+sha512sums=('fc7bcd785ae8cc38df2e46eaea2e16d7d87a2aef1f5959ae6c2d4c45edca6589e608547584893ba9ff10ad89a10628d6383f65ebff6cfac37921c3a8cb2db306')
+
+prepare() {
+ cp -a os-client-config-$pkgver{,-py2}
+
+ export PBR_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/os-client-config-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/os-client-config-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/os-client-config-$pkgver
+ # One test failure in os_client_config.tests.test_config.TestConfig
+ python setup.py testr || warning "Tests failed"
+
+ cd "$srcdir"/os-client-config-$pkgver-py2
+ PYTHON=python2 python2 setup.py testr
+}
+
+package_python-os-client-config() {
+ depends=('python-yaml' 'python-appdirs' 'python-keystoneauth1' 'python-requestsexceptions')
+
+ cd os-client-config-$pkgver
+ python setup.py install --root "$pkgdir" --optimize=1
+}
+
+package_python2-os-client-config() {
+ depends=('python2-yaml' 'python2-appdirs' 'python2-keystoneauth1' 'python2-requestsexceptions')
+
+ cd os-client-config-$pkgver-py2
+ python2 setup.py install --root "$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list