mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/certbot-dns-njalla: build with gpep517
This commit is contained in:
parent
25eab5b618
commit
5800bd5a25
@ -2,7 +2,7 @@
|
||||
# Maintainer: Nulo <git@nulo.in>
|
||||
pkgname=certbot-dns-njalla
|
||||
pkgver=1.0.2
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Certbot plugin for using the Njalla DNS API"
|
||||
url="https://github.com/chaptergy/certbot-dns-njalla"
|
||||
# options="!check" # TODO: enable tests
|
||||
@ -14,7 +14,7 @@ depends="
|
||||
py3-dns-lexicon
|
||||
py3-dnspython
|
||||
"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="
|
||||
py3-mock
|
||||
py3-requests
|
||||
@ -22,15 +22,20 @@ checkdepends="
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/chaptergy/certbot-dns-njalla/archive/v$pkgver.tar.gz"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python -m unittest discover -p '*_test.py'
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m unittest discover -p '*_test.py'
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user