Date: Tuesday, October 27, 2020 @ 10:00:11 Author: felixonmars Revision: 734208
archrelease: copy trunk to community-any Added: python-hypothesis/repos/community-any/PKGBUILD (from rev 734206, python-hypothesis/trunk/PKGBUILD) Deleted: python-hypothesis/repos/community-any/PKGBUILD ----------+ PKGBUILD | 98 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 49 insertions(+), 49 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-10-27 10:00:08 UTC (rev 734207) +++ PKGBUILD 2020-10-27 10:00:11 UTC (rev 734208) @@ -1,49 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=python-hypothesis -pkgver=5.38.0 -pkgrel=1 -pkgdesc="Advanced Quickcheck style testing library for Python" -arch=('any') -license=('MPL') -url="https://hypothesis.readthedocs.org" -depends=('python-attrs' 'python-sortedcontainers') -optdepends=('python-pytz: for datetime and django module' - 'python-faker: for fakefactory and django module' - 'python-django: for django module' - 'python-numpy: for numpy module' - 'python-pytest: for pytest module' - 'python-lark-parser: for lark module') -makedepends=('python-setuptools') -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-fakeredis') -source=("$pkgname-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-$pkgver.tar.gz") -sha512sums=('2a4e57ace3c6487598353bd40a9295d8dd05c6b18493d61674bbb403a4bbd863c43af683b59da990cc5add5dedc789462337140c4d2ed7d2c16567fb254261ff') - -prepare() { - mv hypothesis-hypothesis-python-$pkgver hypothesis-$pkgver -} - -build() { - cd hypothesis-$pkgver/hypothesis-python - python setup.py build -} - -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 - 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() { - cd hypothesis-$pkgver/hypothesis-python - python setup.py install --root="$pkgdir" --optimize=1 -} Copied: python-hypothesis/repos/community-any/PKGBUILD (from rev 734206, python-hypothesis/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-10-27 10:00:11 UTC (rev 734208) @@ -0,0 +1,49 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-hypothesis +pkgver=5.38.1 +pkgrel=1 +pkgdesc="Advanced Quickcheck style testing library for Python" +arch=('any') +license=('MPL') +url="https://hypothesis.readthedocs.org" +depends=('python-attrs' 'python-sortedcontainers') +optdepends=('python-pytz: for datetime and django module' + 'python-faker: for fakefactory and django module' + 'python-django: for django module' + 'python-numpy: for numpy module' + 'python-pytest: for pytest module' + 'python-lark-parser: for lark module') +makedepends=('python-setuptools') +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-fakeredis') +source=("$pkgname-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-$pkgver.tar.gz") +sha512sums=('26db08680464710246bfa3a3dfddbe41e9480e4ce2a50bf75597aa96efe8976d3b7bcf639e2efe9a8bfec64bdfef3fec14093e14cbe8db3f1cf5dafe813a91a0') + +prepare() { + mv hypothesis-hypothesis-python-$pkgver hypothesis-$pkgver +} + +build() { + cd hypothesis-$pkgver/hypothesis-python + python setup.py build +} + +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 + 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() { + cd hypothesis-$pkgver/hypothesis-python + python setup.py install --root="$pkgdir" --optimize=1 +}