testing/py3-flask-themer: build with gpep517

This commit is contained in:
ptrcnull 2024-08-08 20:12:30 +02:00
parent c9f560165f
commit 08019a31b6

View File

@ -3,7 +3,7 @@
pkgname=py3-flask-themer
_pyname=flask-themer
pkgver=2.0.0
pkgrel=1
pkgrel=2
pkgdesc="Simple theme mechanism for Flask"
url="https://pypi.org/project/flask-themer"
arch="noarch"
@ -13,21 +13,26 @@ checkdepends="
py3-pytest
py3-pytest-cov
"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/TkTech/flask-themer/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/flask-themer-$pkgver"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH="." 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 --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="