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

Felix Yan fyan at archlinux.org
Fri Oct 30 10:35:09 UTC 2015


    Date: Friday, October 30, 2015 @ 11:35:09
  Author: fyan
Revision: 145298

upgpkg: python-pytest-benchmark 3.0.0rc1-1

Modified:
  python-pytest-benchmark/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-10-30 09:59:10 UTC (rev 145297)
+++ PKGBUILD	2015-10-30 10:35:09 UTC (rev 145298)
@@ -4,7 +4,7 @@
 pkgbase=python-pytest-benchmark
 pkgname=('python-pytest-benchmark' 'python2-pytest-benchmark')
 _pypiname=pytest-benchmark
-pkgver=3.0.0a1
+pkgver=3.0.0rc1
 pkgrel=1
 pkgdesc='A py.test fixture for benchmarking code'
 arch=('any')
@@ -11,7 +11,9 @@
 license=('BSD')
 url='https://github.com/ionelmc/pytest-benchmark'
 makedepends=('python-pytest' 'python2-pytest' 'python2-statistics' 'git')
-checkdepends=('python-pytest-cov' 'python2-pytest-cov')
+checkdepends=('python-pytest-cov' 'python2-pytest-cov' 'python-pygal' 'python2-pygal'
+              'python-freezegun' 'python2-freezegun' 'mercurial' 'python-aspectlib'
+              'python2-aspectlib' 'python-pytest-xdist' 'python2-pytest-xdist')
 source=("git+https://github.com/ionelmc/pytest-benchmark.git#tag=v$pkgver")
 md5sums=('SKIP')
 
@@ -27,18 +29,16 @@
   python2 setup.py build
 }
 
-check() {(
+check() {
   # Hack entry points by installing it
 
   cd "$srcdir/$_pypiname"
   python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages:$PYTHONPATH" py.test
+  LC_CTYPE=en_US.UTF-8 PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages:$PYTHONPATH" py.test tests/
 
   cd "$srcdir/$_pypiname-py2"
   python2 setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
-  ) || warning "Tests failed"
-  # We don't have pygal for now.
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2 tests/
 }
 
 package_python-pytest-benchmark() {



More information about the arch-commits mailing list