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

Felix Yan felixonmars at archlinux.org
Fri Mar 8 14:08:04 UTC 2019


    Date: Friday, March 8, 2019 @ 14:08:04
  Author: felixonmars
Revision: 438080

archrelease: copy trunk to community-any

Added:
  python-os-client-config/repos/community-any/PKGBUILD
    (from rev 438079, python-os-client-config/trunk/PKGBUILD)
Deleted:
  python-os-client-config/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  117 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 58 insertions(+), 59 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-08 14:07:28 UTC (rev 438079)
+++ PKGBUILD	2019-03-08 14:08:04 UTC (rev 438080)
@@ -1,59 +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.31.2
-pkgrel=2
-arch=('any')
-pkgdesc='OpenStack Client Configuation Library'
-url='https://github.com/openstack/os-client-config'
-license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-openstacksdk' 'python2-openstacksdk')
-checkdepends=('python-stestr' 'python2-stestr' '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=('4007e2352f69ff294a644bcb82547614ce0026ad06440ec06b538f4f1f72bc5070e34db536e7ed11ad5f6cdb991f33b897c8dcba246b3a3aad9b612e9110e290')
-
-prepare() {
-  # FS#54781
-  # https://bugs.launchpad.net/os-client-config/+bug/1707019
-  sed -i "/^packages =/i package_data = os_client_config = *.json */*.json" os-client-config-$pkgver/setup.cfg
-
-  sed -i 's/assertItemsEqual/assertCountEqual/' os-client-config-$pkgver/os_client_config/tests/test_config.py
-
-  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
-  stestr run
-
-  cd "$srcdir"/os-client-config-$pkgver-py2
-  stestr2 run
-}
-
-package_python-os-client-config() {
-  depends=('python-openstacksdk')
-
-  cd os-client-config-$pkgver
-  python setup.py install --root "$pkgdir" --optimize=1
-}
-
-package_python2-os-client-config() {
-  depends=('python2-openstacksdk')
-
-  cd os-client-config-$pkgver-py2
-  python2 setup.py install --root "$pkgdir" --optimize=1
-}

Copied: python-os-client-config/repos/community-any/PKGBUILD (from rev 438079, python-os-client-config/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-03-08 14:08:04 UTC (rev 438080)
@@ -0,0 +1,58 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-os-client-config
+pkgname=('python-os-client-config' 'python2-os-client-config')
+pkgver=1.32.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-openstacksdk' 'python2-openstacksdk')
+checkdepends=('python-stestr' 'python2-stestr' '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=('b5df4fac8776c4638bc936e8d39ef6626d8a441c84d8b2ab9d73126dc76b0a0f4f6edcd25af69176d2a34319540c1e81b7f1465d06a3407119a220b252232bb1')
+
+prepare() {
+  # FS#54781
+  # https://bugs.launchpad.net/os-client-config/+bug/1707019
+  sed -i "/^packages =/i package_data = os_client_config = *.json */*.json" os-client-config-$pkgver/setup.cfg
+
+  cp -a os-client-config-$pkgver{,-py2}
+
+  sed -i 's/assertItemsEqual/assertCountEqual/' os-client-config-$pkgver/os_client_config/tests/test_config.py
+
+  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
+  stestr run
+
+  cd "$srcdir"/os-client-config-$pkgver-py2
+  PYTHON=python2 stestr2 run
+}
+
+package_python-os-client-config() {
+  depends=('python-openstacksdk')
+
+  cd os-client-config-$pkgver
+  python setup.py install --root "$pkgdir" --optimize=1
+}
+
+package_python2-os-client-config() {
+  depends=('python2-openstacksdk')
+
+  cd os-client-config-$pkgver-py2
+  python2 setup.py install --root "$pkgdir" --optimize=1
+}


More information about the arch-commits mailing list