[arch-commits] Commit in python-os-client-config/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 21:44:43 UTC 2021
Date: Tuesday, November 30, 2021 @ 21:44:43
Author: felixonmars
Revision: 1058987
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 1058986, 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 1058986, python-os-client-config/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 21:44:43 UTC (rev 1058987)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-os-client-config
+pkgver=2.1.0
+pkgrel=5
+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