[arch-commits] Commit in python-osc-lib/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 19:53:32 UTC 2020
Date: Monday, November 9, 2020 @ 19:53:31
Author: foutrelis
Revision: 748103
archrelease: copy trunk to community-staging-any
Added:
python-osc-lib/repos/community-staging-any/
python-osc-lib/repos/community-staging-any/PKGBUILD
(from rev 748102, python-osc-lib/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-osc-lib/repos/community-staging-any/PKGBUILD (from rev 748102, python-osc-lib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 19:53:31 UTC (rev 748103)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+
+pkgname=python-osc-lib
+pkgver=2.2.1
+pkgrel=2
+pkgdesc="OpenStackClient Library"
+arch=('any')
+url="https://docs.openstack.org/osc-lib/latest/"
+license=('Apache')
+depends=('python-six' 'python-pbr' 'python-babel' 'python-cliff' 'python-keystoneauth1'
+ 'python-os-client-config' 'python-oslo-i18n' 'python-oslo-utils' 'python-stevedore'
+ 'python-simplejson' 'python-openstacksdk')
+makedepends=('python-setuptools')
+checkdepends=('python-oslotest' 'python-requests-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/osc-lib/archive/$pkgver.tar.gz")
+sha512sums=('01f71ca4ed0f817a68f034acb04f1794afedde38714e93d398ed919464c0c4b6a274d27e8848adc81dcbd4d60787c5f360a77ce7d5510b8339d557d94a1d2003')
+
+export PBR_VERSION=$pkgver
+
+prepare() {
+ # https://storyboard.openstack.org/#!/story/2003142
+ sed -i 's/issubclass/isinstance/' osc-lib-$pkgver/osc_lib/utils/__init__.py
+
+ sed -i 's/assertItemsEqual/assertCountEqual/' osc-lib-$pkgver/osc_lib/tests/{cli,utils}/*.py
+}
+
+build() {
+ cd osc-lib-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd osc-lib-$pkgver
+ stestr run
+}
+
+package() {
+ cd osc-lib-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list