[arch-commits] Commit in python-hypothesis/repos/community-any (PKGBUILD PKGBUILD)
Filipe Laíns
ffy00 at gemini.archlinux.org
Sun Sep 4 20:15:47 UTC 2022
Date: Sunday, September 4, 2022 @ 20:15:47
Author: ffy00
Revision: 1292893
archrelease: copy trunk to community-any
Added:
python-hypothesis/repos/community-any/PKGBUILD
(from rev 1292892, python-hypothesis/trunk/PKGBUILD)
Deleted:
python-hypothesis/repos/community-any/PKGBUILD
----------+
PKGBUILD | 108 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 54 insertions(+), 54 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-04 20:15:43 UTC (rev 1292892)
+++ PKGBUILD 2022-09-04 20:15:47 UTC (rev 1292893)
@@ -1,54 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-hypothesis
-pkgver=6.54.4
-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-build' 'python-installer' 'python-setuptools' 'python-wheel')
-checkdepends=('python-pytest' 'flake8' 'python-pytz' 'python-numpy' 'python-faker' 'python-exceptiongroup'
- '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=('7e5b70cc2df874163205e3d35f3f5e6a71319e779b35f1596c69222373e9b766a143ccf37aa1699de6b98827978e44ccbca0b1e30e6ffe29c8b68c83bb3af869')
-
-prepare() {
- mv hypothesis-hypothesis-python-$pkgver hypothesis-$pkgver
-}
-
-build() {
- cd hypothesis-$pkgver/hypothesis-python
-
- python -m build -nw
-}
-
-check() {
- 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.10/site-packages:$PWD/examples/example_hypothesis_entrypoint" \
- PATH="$PWD/tmp_install/usr/bin:$PATH" \
- pytest --ignore tmp_install || echo "Tests failed"
-}
-
-package() {
- cd hypothesis-$pkgver/hypothesis-python
-
- python -m installer -d "$pkgdir" dist/*.whl
-
- # It's only present when tests are enabled, so adding -f
- rm -rf "$pkgdir"/usr/lib/python*/site-packages/tests
-}
Copied: python-hypothesis/repos/community-any/PKGBUILD (from rev 1292892, python-hypothesis/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-04 20:15:47 UTC (rev 1292893)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-hypothesis
+pkgver=6.54.4
+pkgrel=2
+pkgdesc="Advanced Quickcheck style testing library for Python"
+arch=('any')
+license=('MPL')
+url="https://hypothesis.readthedocs.org"
+depends=('python-attrs' 'python-sortedcontainers' 'python-exceptiongroup')
+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-build' 'python-installer' 'python-setuptools' 'python-wheel')
+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=('7e5b70cc2df874163205e3d35f3f5e6a71319e779b35f1596c69222373e9b766a143ccf37aa1699de6b98827978e44ccbca0b1e30e6ffe29c8b68c83bb3af869')
+
+prepare() {
+ mv hypothesis-hypothesis-python-$pkgver hypothesis-$pkgver
+}
+
+build() {
+ cd hypothesis-$pkgver/hypothesis-python
+
+ python -m build -nw
+}
+
+check() {
+ 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.10/site-packages:$PWD/examples/example_hypothesis_entrypoint" \
+ PATH="$PWD/tmp_install/usr/bin:$PATH" \
+ pytest --ignore tmp_install || echo "Tests failed"
+}
+
+package() {
+ cd hypothesis-$pkgver/hypothesis-python
+
+ python -m installer -d "$pkgdir" dist/*.whl
+
+ # It's only present when tests are enabled, so adding -f
+ rm -rf "$pkgdir"/usr/lib/python*/site-packages/tests
+}
More information about the arch-commits
mailing list