aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2023-06-12 15:54:41 +0000
committerpsykose <alice@ayaya.dev>2023-06-12 17:54:41 +0200
commit88aae9a0e47c35ab5cea6e161ca9e5fb7356e724 (patch)
tree93dee645038c7e4b533ab0e4dddeab51de7742bf
parent622863ff1907ee53053edf150f1ca524c99becd3 (diff)
community/py3-cachecontrol: upgrade to 0.13.1
-rw-r--r--community/py3-cachecontrol/APKBUILD36
1 files changed, 27 insertions, 9 deletions
diff --git a/community/py3-cachecontrol/APKBUILD b/community/py3-cachecontrol/APKBUILD
index 6c04b62b5fe..ec607f8a526 100644
--- a/community/py3-cachecontrol/APKBUILD
+++ b/community/py3-cachecontrol/APKBUILD
@@ -2,31 +2,49 @@
# Maintainer:
pkgname=py3-cachecontrol
_realname=cachecontrol
-pkgver=0.12.11
-pkgrel=2
+pkgver=0.13.1
+pkgrel=0
pkgdesc="httplib2 caching for requests"
url="https://github.com/ionrock/cachecontrol"
arch="noarch"
license="Apache-2.0"
-depends="python3 py3-requests py3-msgpack py3-lockfile"
-makedepends="py3-setuptools"
-checkdepends="py3-pytest py3-mock py3-cherrypy py3-redis py3-lockfile"
+depends="
+ py3-msgpack
+ py3-requests
+ "
+makedepends="
+ py3-flit-core
+ py3-gpep517
+ "
+checkdepends="
+ py3-cherrypy
+ py3-filelock
+ py3-lockfile
+ py3-mock
+ py3-pytest-xdist
+ py3-redis
+ "
subpackages="$pkgname-pyc"
source="https://github.com/ionrock/$_realname/archive/refs/tags/v$pkgver/py3-cachecontrol-$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"
build() {
- python3 setup.py build
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
}
check() {
- PYTHONPATH=build/lib pytest
+ python3 -m venv --clear --without-pip --system-site-packages .testenv
+ .testenv/bin/python3 -m installer .dist/*.whl
+ .testenv/bin/python3 -m pytest -n auto
}
package() {
- python3 setup.py install --skip-build --root="$pkgdir"
+ python3 -m installer -d "$pkgdir" \
+ .dist/*.whl
}
sha512sums="
-be1c91f58edda36192f1267a8fdfdc50685ff57da5d84f5348b608982327993333f18f5c318a20cf258b16d2bc83272ba58317e8c4c44a84d5d1f93b522dfc8b py3-cachecontrol-0.12.11.tar.gz
+a4647d1223f45d7ebbddea5c73eade6ffa297eceffccf9a44a9800a4ddf19cc866260af96bafc63e08a58f05360a6aae30eb569834509d0186bcf5acfbcb9a4e py3-cachecontrol-0.13.1.tar.gz
"