From 559e9ced7afbefa934690c09585ee301b9147dd8 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 1 Nov 2024 10:09:19 -0400 Subject: [PATCH] backports/py3-flask-limiter: bump pkgrel --- backports/py3-flask-limiter/APKBUILD | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/backports/py3-flask-limiter/APKBUILD b/backports/py3-flask-limiter/APKBUILD index 9555218..afeb6cf 100644 --- a/backports/py3-flask-limiter/APKBUILD +++ b/backports/py3-flask-limiter/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: lauren n. liberda pkgname=py3-flask-limiter pkgver=3.7.0 -pkgrel=0 +pkgrel=1 pkgdesc="Rate Limiting extension for Flask" url="https://github.com/alisaifee/flask-limiter" arch="noarch" @@ -14,7 +14,7 @@ depends=" py3-rich python3 " -makedepends="py3-setuptools" +makedepends="py3-setuptools py3-gpep517" checkdepends=" py3-flask-restful py3-flask-restx @@ -23,7 +23,6 @@ checkdepends=" py3-pytest py3-pytest-cov " -options="!check" # tests depend on unpackaged modules subpackages="$pkgname-pyc" source=" https://github.com/alisaifee/flask-limiter/archive/refs/tags/$pkgver/flask-limiter-$pkgver.tar.gz @@ -31,17 +30,23 @@ source=" our-std-is-good-enough.patch " builddir="$srcdir/flask-limiter-$pkgver" +options="!check" # tests depend on unpackaged modules build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - pytest + python3 -m venv --clear --without-pip --system-site-packages .testenv + gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl + .testenv/bin/python3 -m pytest } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + gpep517 install-wheel --destdir "$pkgdir" \ + .dist/*.whl } sha512sums="