[arch-commits] Commit in python-hypothesis/trunk (PKGBUILD)
Filipe Laíns
ffy00 at gemini.archlinux.org
Sat Sep 3 18:17:22 UTC 2022
Date: Saturday, September 3, 2022 @ 18:17:21
Author: ffy00
Revision: 1292661
upgpkg: python-hypothesis 6.54.4-1
Modified:
python-hypothesis/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-03 17:57:39 UTC (rev 1292660)
+++ PKGBUILD 2022-09-03 18:17:21 UTC (rev 1292661)
@@ -1,7 +1,7 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=python-hypothesis
-pkgver=6.17.1
+pkgver=6.54.4
pkgrel=1
pkgdesc="Advanced Quickcheck style testing library for Python"
arch=('any')
@@ -15,13 +15,13 @@
'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'
+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=('6418f850b6642337d11bee7d78f82d061af1dd3a2e59dcda1e87ef88f99bda23ccbd6e6cb6cce00275380ddf125c77102bf88ae6a3884d754ef9f7cf9b68e4f5')
+sha512sums=('7e5b70cc2df874163205e3d35f3f5e6a71319e779b35f1596c69222373e9b766a143ccf37aa1699de6b98827978e44ccbca0b1e30e6ffe29c8b68c83bb3af869')
prepare() {
mv hypothesis-hypothesis-python-$pkgver hypothesis-$pkgver
@@ -29,11 +29,13 @@
build() {
cd hypothesis-$pkgver/hypothesis-python
- python setup.py build
+
+ 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
@@ -44,8 +46,9 @@
package() {
cd hypothesis-$pkgver/hypothesis-python
- python setup.py install --root="$pkgdir" --optimize=1
+ python -m installer -d "$pkgdir" dist/*.whl
+
# It's only present when tests are enabled, so adding -f
- rm -rf "$pkgdir"/usr/lib/python3.10/site-packages/tests
+ rm -rf "$pkgdir"/usr/lib/python*/site-packages/tests
}
More information about the arch-commits
mailing list