[arch-commits] Commit in python-os-client-config/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 19:22:59 UTC 2020
Date: Monday, November 9, 2020 @ 19:22:59
Author: foutrelis
Revision: 748035
archrelease: copy trunk to community-staging-any
Added:
python-os-client-config/repos/community-staging-any/
python-os-client-config/repos/community-staging-any/PKGBUILD
(from rev 748033, python-os-client-config/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-os-client-config/repos/community-staging-any/PKGBUILD (from rev 748033, python-os-client-config/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 19:22:59 UTC (rev 748035)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-os-client-config
+pkgver=2.1.0
+pkgrel=3
+arch=('any')
+pkgdesc='OpenStack Client Configuation Library'
+url='https://github.com/openstack/os-client-config'
+license=('Apache')
+depends=('python-openstacksdk')
+makedepends=('python-setuptools')
+checkdepends=('python-stestr' 'python-oslotest' 'python-jsonschema' 'python-mock'
+ 'python-glanceclient')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/os-client-config/archive/$pkgver.tar.gz")
+sha512sums=('f019b5fa44a587bf853a931c9ee86a7e83c5f0d0319f2d5f75cfd34ce947f9961a7905e80df0c06f8234c9e36dc13bfcf039264243b57dd76874bfb3fd55d7bd')
+
+export PBR_VERSION=$pkgver
+
+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
+}
+
+build() {
+ cd os-client-config-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd os-client-config-$pkgver
+ stestr run
+}
+
+package() {
+ cd os-client-config-$pkgver
+ python setup.py install --root "$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list