[arch-commits] Commit in python-oslotest/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Jul 6 02:21:11 UTC 2017


    Date: Thursday, July 6, 2017 @ 02:21:10
  Author: felixonmars
Revision: 242454

upgpkg: python-oslotest 2.16.0-1

Modified:
  python-oslotest/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-07-06 02:18:28 UTC (rev 242453)
+++ PKGBUILD	2017-07-06 02:21:10 UTC (rev 242454)
@@ -3,39 +3,40 @@
 
 pkgbase=python-oslotest
 pkgname=(python-oslotest python2-oslotest)
-pkgver=2.15.0
+pkgver=2.16.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')
+makedepends=('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=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/oslotest/archive/$pkgver.tar.gz")
+sha512sums=('5306e3ed0ffc996f99868219a44505b928b58d7c4de2af9fd74435cf81b39e782f0eb2da5e6c34b4d51c45bbf492d8b63448564333bc2079b92f13c3f9474880')
 
 prepare() {
-  cp -a oslotest{,-py2}
+  cp -a oslotest-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
 }
 
 build() {
-  cd "$srcdir"/oslotest
+  cd "$srcdir"/oslotest-$pkgver
   python setup.py build
 
-  cd "$srcdir"/oslotest-py2
+  cd "$srcdir"/oslotest-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/oslotest
+  cd "$srcdir"/oslotest-$pkgver
   python setup.py testr
 
-  cd "$srcdir"/oslotest-py2
+  cd "$srcdir"/oslotest-$pkgver-py2
   PYTHON=python2 python2 setup.py testr
 }
 
@@ -44,7 +45,7 @@
            'python-testtools' 'python-mock' 'python-mox3' 'python-os-client-config'
            'python-debtcollector')
 
-  cd "$srcdir"/oslotest
+  cd "$srcdir"/oslotest-$pkgver
   python setup.py install --root="$pkgdir/" --optimize=1
 }
 
@@ -53,7 +54,7 @@
            'python2-testtools' 'python2-mock' 'python2-mox3' 'python2-os-client-config'
            'python2-debtcollector')
 
-  cd "$srcdir"/oslotest-py2
+  cd "$srcdir"/oslotest-$pkgver-py2
   python2 setup.py install --root="$pkgdir/" --optimize=1
 
   for _exe in "$pkgdir"/usr/bin/*; do



More information about the arch-commits mailing list