[arch-commits] Commit in python-pifpaf/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Apr 22 14:52:09 UTC 2017
Date: Saturday, April 22, 2017 @ 14:52:08
Author: felixonmars
Revision: 224360
upgpkg: python-pifpaf 0.27.0-1
Modified:
python-pifpaf/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-04-22 13:02:10 UTC (rev 224359)
+++ PKGBUILD 2017-04-22 14:52:08 UTC (rev 224360)
@@ -3,7 +3,7 @@
pkgbase=python-pifpaf
pkgname=('python-pifpaf' 'python2-pifpaf')
-pkgver=0.26.0
+pkgver=0.27.0
pkgrel=1
pkgdesc='Suite of tools and fixtures to manage daemons for testing'
arch=('any')
@@ -11,8 +11,8 @@
url='https://github.com/jd/pifpaf'
makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-cliff'
'python2-cliff' 'python-stevedore' 'python2-stevedore' 'python-six' 'python2-six'
- 'python-fixtures' 'python2-fixtures' 'python-xattr' 'python2-xattr' 'git'
- 'python-jinja' 'python2-jinja')
+ 'python-fixtures' 'python2-fixtures' 'python-xattr' 'python2-xattr' 'python-jinja'
+ 'python2-jinja')
checkdepends=('python-testrepository' 'python2-testrepository' 'python-requests' 'python2-requests'
'python-testtools' 'python2-testtools' 'python-oslotest' 'python2-oslotest'
'memcached' 'mongodb' 'percona-server' 'percona-server-clients' 'postgresql' 'redis'
@@ -19,20 +19,21 @@
'ceph' 'consul' 'couchdb')
# 'elasticsearch': test fails
# 'rabbitmq': test hangs
-source=("git+https://github.com/jd/pifpaf.git#tag=$pkgver")
-md5sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jd/pifpaf/archive/$pkgver.tar.gz")
+sha512sums=('c81343afe4b73f9d08e909d9ab9f252585555d9aa2044dfc8b5532b9ac8b6a9f471186467cee18df63196cebc29e9ca8adfae3ac6c9e54d70cfa8b8484d2e165')
prepare() {
- cp -a pifpaf{,-py2}
+ cp -a pifpaf-$pkgver{,-py2}
export LC_CTYPE=en_US.UTF-8
+ export PBR_VERSION=$pkgver
}
build() {
- cd "$srcdir"/pifpaf
+ cd "$srcdir"/pifpaf-$pkgver
python setup.py build
- cd "$srcdir"/pifpaf-py2
+ cd "$srcdir"/pifpaf-$pkgver-py2
python2 setup.py build
}
@@ -39,11 +40,11 @@
check() {
# Hack entry points by installing it
- cd "$srcdir"/pifpaf
+ cd "$srcdir"/pifpaf-$pkgver
python setup.py install --root="$PWD/tmp_install" --optimize=1
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" python setup.py testr
- cd "$srcdir"/pifpaf-py2
+ cd "$srcdir"/pifpaf-$pkgver-py2
python2 setup.py install --root="$PWD/tmp_install" --optimize=1
PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" PYTHON=python2 python2 setup.py testr
}
@@ -52,8 +53,8 @@
depends=('python-pbr' 'python-cliff' 'python-stevedore' 'python-six' 'python-fixtures'
'python-xattr' 'python-jinja')
- cd "$srcdir"/pifpaf
- python setup.py install --root="$pkgdir"/ --optimize=1
+ cd pifpaf-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
}
package_python2-pifpaf() {
@@ -60,8 +61,8 @@
depends=('python2-pbr' 'python2-cliff' 'python2-stevedore' 'python2-six' 'python2-fixtures'
'python2-xattr' 'python2-jinja')
- cd "$srcdir"/pifpaf-py2
- python2 setup.py install --root="$pkgdir"/ --optimize=1
+ cd pifpaf-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
mv "$pkgdir"/usr/bin/pifpaf{,2}
}
More information about the arch-commits
mailing list