[arch-commits] Commit in python-oslotest/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Fri Feb 26 06:15:49 UTC 2016


    Date: Friday, February 26, 2016 @ 07:15:49
  Author: fyan
Revision: 163466

archrelease: copy trunk to community-any

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

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

Copied: python-oslotest/repos/community-any/PKGBUILD (from rev 163465, python-oslotest/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-02-26 06:15:49 UTC (rev 163466)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-oslotest
+pkgname=(python-oslotest python2-oslotest)
+pkgver=2.3.0
+pkgrel=1
+pkgdesc="Oslo test framework"
+arch=('any')
+url="https://github.com/openstack/oslotest"
+license=('Apache')
+makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
+             'python-fixtures' 'python2-fixtures' 'python-subunit' 'python2-subunit'
+             'python-testrepository' 'python2-testrepository' '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=("git+https://github.com/openstack/oslotest.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a oslotest{,-py2}
+}
+
+build() {
+  cd "$srcdir"/oslotest
+  python setup.py build
+
+  cd "$srcdir"/oslotest-py2
+  python2 setup.py build
+}
+
+build() {
+  cd "$srcdir"/oslotest
+  python setup.py testr
+
+  cd "$srcdir"/oslotest-py2
+  python2 setup.py testr
+}
+
+package_python-oslotest() {
+  depends=('python-fixtures' 'python-subunit' 'python-testrepository' 'python-testscenarios'
+           'python-testtools' 'python-mock' 'python-mox3' 'python-os-client-config'
+           'python-debtcollector')
+
+  cd "$srcdir"/oslotest
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-oslotest() {
+  depends=('python2-fixtures' 'python2-subunit' 'python2-testrepository' 'python2-testscenarios'
+           'python2-testtools' 'python2-mock' 'python2-mox3' 'python2-os-client-config'
+           'python2-debtcollector')
+
+  cd "$srcdir"/oslotest-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