[arch-commits] Commit in python-oslotest/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Feb 13 10:48:22 UTC 2020
Date: Thursday, February 13, 2020 @ 10:48:22
Author: felixonmars
Revision: 570056
upgpkg: python-oslotest 3.9.0-2: remove python2 sibling
Modified:
python-oslotest/trunk/PKGBUILD
----------+
PKGBUILD | 52 +++++++++++-----------------------------------------
1 file changed, 11 insertions(+), 41 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-13 10:47:37 UTC (rev 570055)
+++ PKGBUILD 2020-02-13 10:48:22 UTC (rev 570056)
@@ -1,64 +1,34 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-oslotest
-pkgname=(python-oslotest python2-oslotest)
+pkgname=python-oslotest
pkgver=3.9.0
-pkgrel=1
+pkgrel=2
pkgdesc="Oslo test framework"
arch=('any')
url="https://github.com/openstack/oslotest"
license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-fixtures'
- 'python2-fixtures' 'python-subunit' 'python2-subunit' 'python-stestr'
- 'python2-stestr' 'python-testscenarios' 'python2-testscenarios'
- 'python-testtools' 'python2-testtools' 'python-mock' 'python2-mock' 'python-mox3'
- 'python2-mox3' 'python-os-client-config' 'python2-os-client-config'
- 'python-debtcollector' 'python2-debtcollector')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslotest/archive/$pkgver.tar.gz")
+depends=('python-fixtures' 'python-subunit' 'python-stestr' 'python-testscenarios'
+ 'python-testtools' 'python-mock' 'python-mox3' 'python-os-client-config'
+ 'python-debtcollector')
+makedepends=('python-pbr')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack/oslotest/archive/$pkgver.tar.gz")
sha512sums=('62bb3f0097f35bfc2e725844dba97a5ad2b93c0a2eafa3feb40cf0cf67f30ba0adc2b38f4cacd1684fb0fdd9f8a394717da3722202577cf42a113e0de802f125')
-prepare() {
- cp -a oslotest-$pkgver{,-py2}
+export PBR_VERSION=$pkgver
- export PBR_VERSION=$pkgver
-}
-
build() {
- cd "$srcdir"/oslotest-$pkgver
+ cd oslotest-$pkgver
python setup.py build
-
- cd "$srcdir"/oslotest-$pkgver-py2
- python2 setup.py build
}
check() {
- cd "$srcdir"/oslotest-$pkgver
+ cd oslotest-$pkgver
stestr run
-
- cd "$srcdir"/oslotest-$pkgver-py2
- PYTHON=python2 stestr2 run
}
-package_python-oslotest() {
- depends=('python-fixtures' 'python-subunit' 'python-stestr' 'python-testscenarios'
- 'python-testtools' 'python-mock' 'python-mox3' 'python-os-client-config'
- 'python-debtcollector')
-
+package() {
cd "$srcdir"/oslotest-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1
}
-package_python2-oslotest() {
- depends=('python2-fixtures' 'python2-subunit' 'python2-stestr' 'python2-testscenarios'
- 'python2-testtools' 'python2-mock' 'python2-mox3' 'python2-os-client-config'
- 'python2-debtcollector')
-
- cd "$srcdir"/oslotest-$pkgver-py2
- python2 setup.py install --root="$pkgdir/" --optimize=1
-
- for _exe in "$pkgdir"/usr/bin/*; do
- mv "$_exe"{,2}
- done
-}
-
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list