backports/py3-flask-limiter: bump pkgrel
This commit is contained in:
parent
b970b53d5b
commit
559e9ced7a
1 changed files with 11 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
||||||
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
||||||
pkgname=py3-flask-limiter
|
pkgname=py3-flask-limiter
|
||||||
pkgver=3.7.0
|
pkgver=3.7.0
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="Rate Limiting extension for Flask"
|
pkgdesc="Rate Limiting extension for Flask"
|
||||||
url="https://github.com/alisaifee/flask-limiter"
|
url="https://github.com/alisaifee/flask-limiter"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
|
@ -14,7 +14,7 @@ depends="
|
||||||
py3-rich
|
py3-rich
|
||||||
python3
|
python3
|
||||||
"
|
"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="
|
checkdepends="
|
||||||
py3-flask-restful
|
py3-flask-restful
|
||||||
py3-flask-restx
|
py3-flask-restx
|
||||||
|
@ -23,7 +23,6 @@ checkdepends="
|
||||||
py3-pytest
|
py3-pytest
|
||||||
py3-pytest-cov
|
py3-pytest-cov
|
||||||
"
|
"
|
||||||
options="!check" # tests depend on unpackaged modules
|
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="
|
source="
|
||||||
https://github.com/alisaifee/flask-limiter/archive/refs/tags/$pkgver/flask-limiter-$pkgver.tar.gz
|
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
|
our-std-is-good-enough.patch
|
||||||
"
|
"
|
||||||
builddir="$srcdir/flask-limiter-$pkgver"
|
builddir="$srcdir/flask-limiter-$pkgver"
|
||||||
|
options="!check" # tests depend on unpackaged modules
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
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() {
|
package() {
|
||||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
|
Loading…
Reference in a new issue