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

Felix Yan fyan at archlinux.org
Fri Mar 25 05:07:52 UTC 2016


    Date: Friday, March 25, 2016 @ 06:07:51
  Author: fyan
Revision: 168331

upgpkg: python-flaky 3.1.1-1

Modified:
  python-flaky/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-03-25 04:30:32 UTC (rev 168330)
+++ PKGBUILD	2016-03-25 05:07:51 UTC (rev 168331)
@@ -4,7 +4,7 @@
 pkgbase=python-flaky
 pkgname=('python-flaky' 'python2-flaky')
 _pypiname=flaky
-pkgver=3.1.0
+pkgver=3.1.1
 pkgrel=1
 pkgdesc='Plugin for nose or py.test that automatically reruns flaky tests'
 arch=('any')
@@ -17,14 +17,14 @@
 md5sums=('SKIP')
 
 prepare() {
-  cp -a "${srcdir}/${_pypiname}"{,-py2}
+  cp -a flaky{,-py2}
 }
 
 build() {
-  cd "$srcdir/$_pypiname"
+  cd "$srcdir"/flaky
   python setup.py build
 
-  cd "$srcdir/$_pypiname-py2"
+  cd "$srcdir"/flaky-py2
   python2 setup.py build
 }
 
@@ -31,7 +31,7 @@
 check() {
   # Hack entry points by installing it
 
-  cd "$srcdir/$_pypiname"
+  cd "$srcdir"/flaky
   python setup.py install --root="$PWD/tmp_install" --optimize=1
   (
     export PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages:$PYTHONPATH"
@@ -42,7 +42,7 @@
     py.test --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py
   )
 
-  cd "$srcdir/$_pypiname-py2"
+  cd "$srcdir"/flaky-py2
   python2 setup.py install --root="$PWD/tmp_install" --optimize=1
   (
     export PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH"
@@ -57,7 +57,7 @@
 package_python-flaky() {
   depends=('python')
 
-  cd "$srcdir/$_pypiname"
+  cd "$srcdir"/flaky
   python setup.py install --root="$pkgdir"/ --optimize=1
 }
 
@@ -64,7 +64,7 @@
 package_python2-flaky() {
   depends=('python2')
 
-  cd "$srcdir/$_pypiname-py2"
+  cd "$srcdir"/flaky-py2
   python2 setup.py install --root="$pkgdir"/ --optimize=1
 }
 



More information about the arch-commits mailing list