backports/py3-flask-limiter: bump pkgrel

This commit is contained in:
Antoine Martin 2024-11-01 10:09:19 -04:00 committed by Antoine Martin
parent b970b53d5b
commit 559e9ced7a

View file

@ -2,7 +2,7 @@
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
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="