diff options
Diffstat (limited to 'community/py3-requests-cache/APKBUILD')
-rw-r--r-- | community/py3-requests-cache/APKBUILD | 52 |
1 files changed, 31 insertions, 21 deletions
diff --git a/community/py3-requests-cache/APKBUILD b/community/py3-requests-cache/APKBUILD index 4e841366c64..9bca9927d31 100644 --- a/community/py3-requests-cache/APKBUILD +++ b/community/py3-requests-cache/APKBUILD @@ -1,51 +1,61 @@ # Contributor: Philipp Glaum <p@pglaum.de> # Maintainer: Bart Ribbers <bribbers@disroot.org> pkgname=py3-requests-cache -pkgver=0.8.1 -pkgrel=0 +pkgver=1.0.1 +pkgrel=1 pkgdesc="Persistent cache for requests library" -url="https://github.com/reclosedev/requests-cache" +url="https://github.com/requests-cache/requests-cache" arch="noarch" license="BSD-3-Clause" depends=" + py3-attrs + py3-cattrs + py3-platformdirs py3-requests - py3-responses py3-url-normalize - python3 + py3-urllib3 + " +makedepends=" + py3-gpep517 + py3-poetry-core + py3-wheel " -makedepends="py3-setuptools" checkdepends=" - py3-cattrs - py3-ujson py3-itsdangerous py3-mock + py3-mongo + py3-msgpack + py3-orjson py3-pytest + py3-pytest-xdist py3-requests-mock + py3-responses + py3-rich py3-timeout-decorator + py3-ujson + py3-yaml " -source="https://pypi.python.org/packages/source/r/requests-cache/requests-cache-$pkgver.tar.gz" +subpackages="$pkgname-pyc" +source="$pkgname-$pkgver.tar.gz::https://github.com/requests-cache/requests-cache/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/requests-cache-$pkgver" -prepare() { - default_prepare - - # Invoke python3 - sed -i "s|os.system('python %s' % test)|os.system('python3 %s' % test)|" setup.py -} - build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - # integration tests skipped as they require running databases - pytest --ignore tests/integration + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest -n auto --ignore tests/integration } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } sha512sums=" -5e457af960f3a1e68b3f771b1048582da50f367730b437de64271c5802e39f073e797ef68cac6d86f6d093dd0ceab3891c209b106ec381c58cda447eccbd084a requests-cache-0.8.1.tar.gz +ec5788e31f60fd95e575d01af1163f981757972db6557d7a62da2ca0719e84262cf66cdd9b40c73cca540b92d6b7f6beba1aa42bedba528734c61edf5013ec3d py3-requests-cache-1.0.1.tar.gz " |