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

Felix Yan felixonmars at archlinux.org
Wed Oct 21 19:38:46 UTC 2020


    Date: Wednesday, October 21, 2020 @ 19:38:46
  Author: felixonmars
Revision: 728296

upgpkg: python-hypothesis 5.37.0-1

Modified:
  python-hypothesis/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-21 19:38:29 UTC (rev 728295)
+++ PKGBUILD	2020-10-21 19:38:46 UTC (rev 728296)
@@ -1,7 +1,7 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-hypothesis
-pkgver=5.36.1
+pkgver=5.37.0
 pkgrel=1
 pkgdesc="Advanced Quickcheck style testing library for Python"
 arch=('any')
@@ -18,9 +18,9 @@
 checkdepends=('python-pytest' 'flake8' 'python-pytz' 'python-numpy' 'python-faker'
               'python-flaky' 'python-django' 'python-mock' 'python-pandas' 'python-dpcontracts'
               'python-pytest-xdist' 'python-lark-parser' 'python-pexpect' 'python-coverage'
-              'python-typing_extensions' 'python-black')
+              'python-typing_extensions' 'python-black' 'python-fakeredis')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-$pkgver.tar.gz")
-sha512sums=('97d0446ba5660c189e60b47b8f782818525fcc1c5c1d64eec997b85d5ae47fc7d52771439b5c249002380ffe7d95696728f81efe513993ff90c8e192e2ceca8d')
+sha512sums=('66e6f7a8ae11e9a8c8da79aa433d151733e07038ea37f211773972596bedaa227e8492fe7b9f363ea92ffcfd8c3e5a0a5364e04be22aab010a20544d3abcc93a')
 
 prepare() {
   mv hypothesis-hypothesis-python-$pkgver hypothesis-$pkgver
@@ -32,9 +32,15 @@
 }
 
 check() {
+  # tests/numpy/test_lazy_import.py: https://github.com/HypothesisWorks/hypothesis/issues/2411
+
   cd hypothesis-$pkgver/hypothesis-python
   python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" PATH="$PWD/tmp_install/usr/bin:$PATH" pytest
+  python examples/example_hypothesis_entrypoint/setup.py install --root="$PWD/tmp_install" --optimize=1
+
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PWD/examples/example_hypothesis_entrypoint" \
+  PATH="$PWD/tmp_install/usr/bin:$PATH" \
+    pytest --ignore tests/numpy/test_lazy_import.py --ignore tmp_install
 }
 
 package() {



More information about the arch-commits mailing list