[arch-commits] Commit in python-oslotest/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Feb 13 10:48:36 UTC 2020
Date: Thursday, February 13, 2020 @ 10:48:36
Author: felixonmars
Revision: 570058
archrelease: copy trunk to community-any
Added:
python-oslotest/repos/community-any/PKGBUILD
(from rev 570056, python-oslotest/trunk/PKGBUILD)
Deleted:
python-oslotest/repos/community-any/PKGBUILD
----------+
PKGBUILD | 98 +++++++++++++++++++++----------------------------------------
1 file changed, 34 insertions(+), 64 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-13 10:48:33 UTC (rev 570057)
+++ PKGBUILD 2020-02-13 10:48:36 UTC (rev 570058)
@@ -1,64 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-oslotest
-pkgname=(python-oslotest python2-oslotest)
-pkgver=3.9.0
-pkgrel=1
-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")
-sha512sums=('62bb3f0097f35bfc2e725844dba97a5ad2b93c0a2eafa3feb40cf0cf67f30ba0adc2b38f4cacd1684fb0fdd9f8a394717da3722202577cf42a113e0de802f125')
-
-prepare() {
- cp -a oslotest-$pkgver{,-py2}
-
- export PBR_VERSION=$pkgver
-}
-
-build() {
- cd "$srcdir"/oslotest-$pkgver
- python setup.py build
-
- cd "$srcdir"/oslotest-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/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')
-
- 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:
Copied: python-oslotest/repos/community-any/PKGBUILD (from rev 570056, python-oslotest/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-02-13 10:48:36 UTC (rev 570058)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-oslotest
+pkgver=3.9.0
+pkgrel=2
+pkgdesc="Oslo test framework"
+arch=('any')
+url="https://github.com/openstack/oslotest"
+license=('Apache')
+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')
+
+export PBR_VERSION=$pkgver
+
+build() {
+ cd oslotest-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd oslotest-$pkgver
+ stestr run
+}
+
+package() {
+ cd "$srcdir"/oslotest-$pkgver
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list