archrelease: copy trunk to community-any
[arch-community.git] / python-os-client-config / trunk / PKGBUILD
blobe982a940f267d0a3385270d11314f50948082ff4
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-os-client-config
4 pkgver=2.1.0
5 pkgrel=8
6 arch=('any')
7 pkgdesc='OpenStack Client Configuation Library'
8 url='https://github.com/openstack/os-client-config'
9 license=('Apache')
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
19 prepare() {
20   # FS#54781
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
27 build() {
28   cd os-client-config-$pkgver
29   python setup.py build
32 check() {
33   cd os-client-config-$pkgver
34   stestr run
37 package() {
38   cd os-client-config-$pkgver
39   python setup.py install --root "$pkgdir" --optimize=1