Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / python-redis
Commits: f689c3c5 by Carl Smedstad at 2024-09-28T23:19:14+02:00 upgpkg: 5.1.0-1: Upstream release https://github.com/redis/redis-py/releases/tag/v5.1.0 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,10 +1,11 @@ pkgbase = python-redis pkgdesc = The Python interface to the Redis key-value store - pkgver = 5.0.8 + pkgver = 5.1.0 pkgrel = 1 url = https://github.com/redis/redis-py arch = any license = MIT + checkdepends = python-coverage checkdepends = python-cryptography checkdepends = python-hiredis checkdepends = python-numpy @@ -24,7 +25,7 @@ pkgbase = python-redis optdepends = python-hiredis: faster performance via hiredis optdepends = python-pyopenssl: OCSP certificate validation optdepends = python-requests: OCSP certificate validation - source = python-redis::git+https://github.com/redis/redis-py#tag=v5.0.8 - b2sums = f93dcd011b5a88bfe13000b84bb980dd278ef8b454d30d66933887a60d8fd4c0956a45da9b42a0a8984d6dda61808a3607b63aad17f4f48484653c54147d3d48 + source = python-redis::git+https://github.com/redis/redis-py#tag=v5.1.0 + b2sums = 33452e10abbc440e8a948cee3f23c925b596146126491d808dbddee22aa669898be9c0175787b83a70e4c9582236c4b9f144cf833b4b05333a039402138fc38f pkgname = python-redis ===================================== PKGBUILD ===================================== @@ -5,7 +5,7 @@ # Contributor: Pierre Gueth <[email protected]> pkgname=python-redis -pkgver=5.0.8 +pkgver=5.1.0 pkgrel=1 pkgdesc='The Python interface to the Redis key-value store' arch=('any') @@ -22,13 +22,8 @@ makedepends=( 'python-setuptools' 'python-wheel' ) -optdepends=( - 'python-cryptography: OCSP certificate validation' - 'python-hiredis: faster performance via hiredis' - 'python-pyopenssl: OCSP certificate validation' - 'python-requests: OCSP certificate validation' -) checkdepends=( + 'python-coverage' 'python-cryptography' 'python-hiredis' 'python-numpy' @@ -38,18 +33,29 @@ checkdepends=( 'python-requests' 'redis' ) +optdepends=( + 'python-cryptography: OCSP certificate validation' + 'python-hiredis: faster performance via hiredis' + 'python-pyopenssl: OCSP certificate validation' + 'python-requests: OCSP certificate validation' +) source=("$pkgname::git+$url#tag=v$pkgver") -b2sums=('f93dcd011b5a88bfe13000b84bb980dd278ef8b454d30d66933887a60d8fd4c0956a45da9b42a0a8984d6dda61808a3607b63aad17f4f48484653c54147d3d48') +b2sums=('33452e10abbc440e8a948cee3f23c925b596146126491d808dbddee22aa669898be9c0175787b83a70e4c9582236c4b9f144cf833b4b05333a039402138fc38f') -build() { +prepare() { cd "$pkgname" + # Compatibiltiy with recent python-pytest-asyncio. + sed -i 's/@pytest.mark.asyncio(forbid_global_loop=True)/@pytest.mark.asyncio/g' \ + tests/test_asyncio/test_scripting.py +} +build() { + cd "$pkgname" python -m build --wheel --no-isolation } check() { cd "$pkgname" - # shellcheck disable=SC2317 _teardown() { redis-cli -p 6379 shutdown @@ -118,7 +124,7 @@ check() { --deselect=tests/test_timeseries.py # Tests that freezes, unsure of why. - --deselect tests/test_asyncio/test_cluster.py::TestRedisClusterObj::test_address_remap + --deselect=tests/test_asyncio/test_cluster.py::TestRedisClusterObj::test_address_remap ) # Run standalone test suite - targets the Redis server running :6379 and the @@ -137,7 +143,6 @@ check() { package() { cd "$pkgname" - python -m installer --destdir="$pkgdir" dist/*.whl - install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE + install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-redis/-/commit/f689c3c592f3698d30b6f5ae615312ce8c881643 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-redis/-/commit/f689c3c592f3698d30b6f5ae615312ce8c881643 You're receiving this email because of your account on gitlab.archlinux.org.
