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

Felix Yan felixonmars at archlinux.org
Thu May 4 03:44:17 UTC 2017


    Date: Thursday, May 4, 2017 @ 03:44:15
  Author: felixonmars
Revision: 226716

upgpkg: python-keystoneauth1 2.20.0-1

Modified:
  python-keystoneauth1/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-04 03:38:54 UTC (rev 226715)
+++ PKGBUILD	2017-05-04 03:44:15 UTC (rev 226716)
@@ -4,15 +4,15 @@
 
 pkgbase=python-keystoneauth1
 pkgname=(python-keystoneauth1 python2-keystoneauth1)
-pkgver=2.19.0
+pkgver=2.20.0
 pkgrel=1
 pkgdesc="Authentication Library for OpenStack Identity"
 arch=('any')
 url="http://docs.openstack.org/developer/keystoneauth"
 license=('Apache')
-makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr'
-             'python-iso8601' 'python2-iso8601' 'python-positional' 'python2-positional'
-             'python-requests' 'python2-requests' 'python-stevedore' 'python2-stevedore')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-iso8601'
+             'python2-iso8601' 'python-positional' 'python2-positional' 'python-requests'
+             'python2-requests' 'python-stevedore' 'python2-stevedore')
 checkdepends=('python-testrepository' 'python2-testrepository' 'python-requests-mock'
               'python2-requests-mock' 'python-testscenarios' 'python2-testscenarios'
               'python-mock' 'python2-mock' 'python-lxml' 'python2-lxml' 'python-oslo-config'
@@ -20,29 +20,31 @@
               'python2-oslotest' 'python-oslo-utils' 'python2-oslo-utils' 'python-requests-kerberos'
               'python2-requests-kerberos' 'python-oauthlib' 'python2-oauthlib' 'python-pycodestyle'
               'python2-pycodestyle')
-source=("git+https://git.openstack.org/openstack/keystoneauth#tag=$pkgver")
-md5sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack/keystoneauth/archive/$pkgver.tar.gz")
+sha512sums=('840fc79b4de7f47a62022c6464e85134b98d0b28a2c77803cba25e99a5ea722cf0061d11fe44195b7ba802491bd6bd69c8ec7b6ee0f87f59474829faff49bbb8')
 
 prepare() {
   # Use pycodestyle
-  sed -i 's/pep8/pycodestyle/g' keystoneauth/keystoneauth1/tests/unit/test_hacking_checks.py
+  sed -i 's/pep8/pycodestyle/g' keystoneauth-$pkgver/keystoneauth1/tests/unit/test_hacking_checks.py
 
-  cp -a keystoneauth{,-py2}
+  cp -a keystoneauth-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
 }
 
 build() {
-  cd "$srcdir"/keystoneauth
+  cd "$srcdir"/keystoneauth-$pkgver
   python setup.py build
 
-  cd "$srcdir"/keystoneauth-py2
+  cd "$srcdir"/keystoneauth-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/keystoneauth
+  cd "$srcdir"/keystoneauth-$pkgver
   python setup.py testr || warning "Tests failed"
 
-  cd "$srcdir"/keystoneauth-py2
+  cd "$srcdir"/keystoneauth-$pkgver-py2
   PYTHON=python2 python2 setup.py testr
 }
 
@@ -55,7 +57,7 @@
               'python-fixtures: for betamax support'
               'python-mock: for betamax support')
 
-  cd "$srcdir"/keystoneauth
+  cd "$srcdir"/keystoneauth-$pkgver
   python setup.py install --root="$pkgdir/" --optimize=1
 }
 
@@ -68,7 +70,7 @@
               'python2-fixtures: for betamax support'
               'python2-mock: for betamax support')
 
-  cd "$srcdir"/keystoneauth-py2
+  cd "$srcdir"/keystoneauth-$pkgver-py2
   python2 setup.py install --root="$pkgdir/" --optimize=1
 }
 



More information about the arch-commits mailing list