Date: Sunday, August 8, 2021 @ 05:06:35 Author: felixonmars Revision: 994705
archrelease: copy trunk to community-any Added: python-hypothesis/repos/community-any/PKGBUILD (from rev 994704, python-hypothesis/trunk/PKGBUILD) Deleted: python-hypothesis/repos/community-any/PKGBUILD ----------+ PKGBUILD | 106 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-08-08 05:06:26 UTC (rev 994704) +++ PKGBUILD 2021-08-08 05:06:35 UTC (rev 994705) @@ -1,53 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=python-hypothesis -pkgver=6.14.5 -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' - 'python-libcst: for codemods 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' 'python-libcst') -source=("$pkgname-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-$pkgver.tar.gz") -sha512sums=('d047eea19129d5855bee5f012f5c91fe1f0de40228600fadad9c76709f951c003450f613f59848064b58f9d0e559b54b44744ae0aae689687488b6506cc8fe1a') - -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.9/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 - - # It's only present when tests are enabled, so adding -f - rm -rf "$pkgdir"/usr/lib/python3.9/site-packages/tests -} Copied: python-hypothesis/repos/community-any/PKGBUILD (from rev 994704, python-hypothesis/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-08-08 05:06:35 UTC (rev 994705) @@ -0,0 +1,53 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-hypothesis +pkgver=6.14.6 +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' + 'python-libcst: for codemods 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' 'python-libcst') +source=("$pkgname-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-$pkgver.tar.gz") +sha512sums=('fecf5af77d5f355861b6fbf3ea964a741b501a9db032c3f2ded2fb51605f2b961e2ad0633f671d6ffbc2e6ff4ca27412eb456ca7bd9a72a4a9e8b89cc79a7042') + +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.9/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 + + # It's only present when tests are enabled, so adding -f + rm -rf "$pkgdir"/usr/lib/python3.9/site-packages/tests +}