Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / python-hypothesis
Commits: 203e942b by Carl Smedstad at 2025-02-01T14:14:29+01:00 Switch to Git repository source to avoid custom vars - - - - - 87ad7f1e by Carl Smedstad at 2025-02-01T14:46:02+01:00 upgpkg: 6.124.9-1: Upstream release https://github.com/HypothesisWorks/hypothesis/releases/tag/hypothesis-python-6.124.9 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,6 +1,6 @@ pkgbase = python-hypothesis pkgdesc = Advanced Quickcheck style testing library for Python - pkgver = 6.124.7 + pkgver = 6.124.9 pkgrel = 1 url = https://hypothesis.readthedocs.org arch = any @@ -19,6 +19,7 @@ pkgbase = python-hypothesis checkdepends = python-pytest checkdepends = python-pytest-xdist checkdepends = python-pytz + makedepends = git makedepends = python-build makedepends = python-installer makedepends = python-setuptools @@ -40,8 +41,8 @@ pkgbase = python-hypothesis optdepends = python-pytz: for datetime and django module optdepends = python-redis: for redis support optdepends = python-rich: for CLI - source = hypothesis-hypothesis-python-6.124.7.tar.gz::https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-6.124.7.tar.gz - sha512sums = c9c699d830082ccfb056c42817592ad3736b3e1c2294bed889d9e581dc8d4b093a86a949b24e3fa842941daf18933c55c6a479cd6768c30cde0cecb94777a620 - b2sums = d0160dedfd78443724a7388020fa093ba95e8621403f4fa69f04c324a5be8d49b51c3cae4cca488a86046818b6762a3f9703b1963186ae82daed2c8cdf0f8f70 + source = python-hypothesis::git+https://github.com/HypothesisWorks/hypothesis#tag=hypothesis-python-6.124.9 + sha512sums = 2d8a2e25bbc5c37d92b472877d652cb4ebc94f14e0a1a2fac500e6664012d38493e69eb7bc8defe630807401c11cea00383ad9dad5248f725584a2f0464af531 + b2sums = 40cab81645daf03cd06fd2e455e03da091c6e7600c150c8c76d6f9154e1b17b2e2f4f4fe299e338cf88ec03ae005461a6f7aa9a4c0e665c88359becb6c6a0492 pkgname = python-hypothesis ===================================== PKGBUILD ===================================== @@ -3,11 +3,8 @@ # Maintainer: Carl Smedstad <car...@archlinux.org> # Contributor: Felix Yan <felixonm...@archlinux.org> -_name=hypothesis -_alt_name=$_name-python pkgname=python-hypothesis -pkgver=6.124.7 -_version=$_alt_name-$pkgver +pkgver=6.124.9 pkgrel=1 pkgdesc="Advanced Quickcheck style testing library for Python" arch=(any) @@ -20,6 +17,7 @@ depends=( python-sortedcontainers ) makedepends=( + git python-build python-installer python-setuptools @@ -57,12 +55,18 @@ optdepends=( 'python-redis: for redis support' 'python-rich: for CLI' ) -source=("$_name-$_version.tar.gz::$_url/archive/$_version.tar.gz") -sha512sums=('c9c699d830082ccfb056c42817592ad3736b3e1c2294bed889d9e581dc8d4b093a86a949b24e3fa842941daf18933c55c6a479cd6768c30cde0cecb94777a620') -b2sums=('d0160dedfd78443724a7388020fa093ba95e8621403f4fa69f04c324a5be8d49b51c3cae4cca488a86046818b6762a3f9703b1963186ae82daed2c8cdf0f8f70') +source=("$pkgname::git+$_url#tag=hypothesis-python-$pkgver") +sha512sums=('2d8a2e25bbc5c37d92b472877d652cb4ebc94f14e0a1a2fac500e6664012d38493e69eb7bc8defe630807401c11cea00383ad9dad5248f725584a2f0464af531') +b2sums=('40cab81645daf03cd06fd2e455e03da091c6e7600c150c8c76d6f9154e1b17b2e2f4f4fe299e338cf88ec03ae005461a6f7aa9a4c0e665c88359becb6c6a0492') + +prepare() { + cd $pkgname/hypothesis-python + # Fix test failing due to trailing comma diff + sed -i 's/],/]/' tests/ghostwriter/recorded/union_sequence_parameter.txt +} build() { - cd $_name-$_version/$_alt_name + cd $pkgname/hypothesis-python python -m build -nw } @@ -75,7 +79,7 @@ check() { ) local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") - cd $_name-$_version/$_alt_name + cd $pkgname/hypothesis-python # install to temporary location, as importlib is used python -m installer --destdir=test_dir dist/*.whl export PYTHONPATH="$PWD/test_dir/$site_packages" @@ -84,6 +88,6 @@ check() { } package() { - cd $_name-$_version/$_alt_name + cd $pkgname/hypothesis-python python -m installer --destdir="$pkgdir" dist/*.whl } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-hypothesis/-/compare/7c088b57038b82f474161243d7dbf484478979e8...87ad7f1e130728a9db431bca088ad8fb631db87f -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-hypothesis/-/compare/7c088b57038b82f474161243d7dbf484478979e8...87ad7f1e130728a9db431bca088ad8fb631db87f You're receiving this email because of your account on gitlab.archlinux.org.