[arch-commits] Commit in python-pifpaf/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Jul 19 05:04:37 UTC 2016
Date: Tuesday, July 19, 2016 @ 05:04:37
Author: felixonmars
Revision: 183099
upgpkg: python-pifpaf 0.8.1-1
Modified:
python-pifpaf/trunk/PKGBUILD
----------+
PKGBUILD | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-07-19 03:27:06 UTC (rev 183098)
+++ PKGBUILD 2016-07-19 05:04:37 UTC (rev 183099)
@@ -3,7 +3,7 @@
pkgbase=python-pifpaf
pkgname=('python-pifpaf' 'python2-pifpaf')
-pkgver=0.8.0
+pkgver=0.8.1
pkgrel=1
pkgdesc='Suite of tools and fixtures to manage daemons for testing'
arch=('any')
@@ -13,7 +13,10 @@
'python2-cliff' 'python-stevedore' 'python2-stevedore' 'python-six' 'python2-six'
'python-fixtures' 'python2-fixtures' 'python-xattr' 'python2-xattr' 'git')
checkdepends=('python-testrepository' 'python2-testrepository' 'python-requests' 'python2-requests'
- 'python-testtools' 'python2-testtools' 'python-oslotest' 'python2-oslotest')
+ 'python-testtools' 'python2-testtools' 'python-oslotest' 'python2-oslotest'
+ 'memcached' 'mongodb' 'mariadb' 'postgresql' 'redis' 'ceph')
+# 'elasticsearch': test fails
+# 'rabbitmq': test hangs
source=("git+https://github.com/jd/pifpaf.git#tag=$pkgver")
md5sums=('SKIP')
@@ -32,11 +35,15 @@
}
check() {
+ # Hack entry points by installing it
+
cd "$srcdir"/pifpaf
- python setup.py testr
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" python setup.py testr
cd "$srcdir"/pifpaf-py2
- PYTHON=python2 python2 setup.py testr
+ 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
}
package_python-pifpaf() {
More information about the arch-commits
mailing list