[arch-commits] Commit in python-hypothesis/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Nov 4 09:02:11 UTC 2016
Date: Friday, November 4, 2016 @ 09:02:10
Author: felixonmars
Revision: 194651
upgpkg: python-hypothesis 3.6.0-1
Modified:
python-hypothesis/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++++++++++++++++-----------
1 file changed, 19 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-11-04 07:08:01 UTC (rev 194650)
+++ PKGBUILD 2016-11-04 09:02:10 UTC (rev 194651)
@@ -3,7 +3,7 @@
pkgbase=python-hypothesis
pkgname=('python-hypothesis' 'python2-hypothesis')
-pkgver=3.4.2
+pkgver=3.6.0
pkgrel=1
pkgdesc="Advanced Quickcheck style testing library for Python"
arch=('any')
@@ -10,15 +10,20 @@
license=('MPL')
url="https://hypothesis.readthedocs.org"
makedepends=('python-setuptools' 'python2-setuptools' 'python2-enum34' 'git')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'flake8' 'python2-flake8'
- 'python-pytz' 'python2-pytz' 'python-django' 'python2-django' 'python-numpy'
- 'python2-numpy' 'python-fake-factory' 'python2-fake-factory' 'python-flaky'
- 'python2-flaky' 'python-pytest-benchmark' 'python2-pytest-benchmark')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'flake8' 'python2-flake8' 'python-pytz'
+ 'python2-pytz' 'python-numpy' 'python2-numpy' 'python-fake-factory'
+ 'python2-fake-factory' 'python-flaky' 'python2-flaky' 'python-pytest-benchmark'
+ 'python2-pytest-benchmark' 'python-django' 'python2-django')
source=("git+https://github.com/DRMacIver/hypothesis.git#tag=$pkgver")
sha512sums=('SKIP')
prepare() {
+ sed -i 's/@pytest.mark.hookwrapper/@pytest.hookimpl(hookwrapper=True)/' hypothesis/src/hypothesis/extra/pytestplugin.py
+
cp -a hypothesis{,-py2}
+
+ rm -r hypothesis/tests/py2
+ rm -r hypothesis-py2/tests/py3
}
build() {
@@ -29,17 +34,20 @@
python2 setup.py build
}
-check() {(
- # I dunno how to fix pytest w/django tests :/
-
+check() {
export LC_CTYPE=en_US.UTF-8
cd "$srcdir"/hypothesis
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python setup.py ptr
+ mv tests/django ../
+ python setup.py ptr
+ mv ../django tests/
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -m tests.django.manage test tests.django
cd "$srcdir"/hypothesis-py2
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 setup.py ptr
- ) || warning "Tests failed"
+ mv tests/django ../
+ python2 setup.py ptr
+ mv ../django tests/
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -m tests.django.manage test tests.django
}
package_python-hypothesis() {
More information about the arch-commits
mailing list