[arch-commits] Commit in python-oslotest/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 26 20:51:22 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:51:20
  Author: felixonmars
Revision: 520635

archrelease: copy trunk to community-staging-any

Added:
  python-oslotest/repos/community-staging-any/
  python-oslotest/repos/community-staging-any/PKGBUILD
    (from rev 520634, python-oslotest/trunk/PKGBUILD)

----------+
 PKGBUILD |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

Copied: python-oslotest/repos/community-staging-any/PKGBUILD (from rev 520634, python-oslotest/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:51:20 UTC (rev 520635)
@@ -0,0 +1,64 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-oslotest
+pkgname=(python-oslotest python2-oslotest)
+pkgver=3.8.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")
+sha512sums=('97959cac5e80e5fd9de08ae02ac0e0b5e2373c125abd386c1c7c532be4caeafd0faeb66831e23e3adf40f6994c2b78f0333043aa596759ea39226c806d81f595')
+
+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:



More information about the arch-commits mailing list