1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-os-client-config
7 pkgdesc='OpenStack Client Configuation Library'
8 url='https://github.com/openstack/os-client-config'
10 depends=('python-openstacksdk')
11 makedepends=('python-setuptools')
12 checkdepends=('python-stestr' 'python-oslotest' 'python-jsonschema'
13 'python-glanceclient')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/os-client-config/archive/$pkgver.tar.gz")
15 sha512sums=('f019b5fa44a587bf853a931c9ee86a7e83c5f0d0319f2d5f75cfd34ce947f9961a7905e80df0c06f8234c9e36dc13bfcf039264243b57dd76874bfb3fd55d7bd')
17 export PBR_VERSION=$pkgver
21 # https://bugs.launchpad.net/os-client-config/+bug/1707019
22 sed -i "/^packages =/i package_data = os_client_config = *.json */*.json" os-client-config-$pkgver/setup.cfg
24 sed -i 's/assertItemsEqual/assertCountEqual/' os-client-config-$pkgver/os_client_config/tests/test_config.py
28 cd os-client-config-$pkgver
33 cd os-client-config-$pkgver
38 cd os-client-config-$pkgver
39 python setup.py install --root "$pkgdir" --optimize=1