Commit 6b2c53ae authored by Duncan Bellamy's avatar Duncan Bellamy Committed by Leo
Browse files

testing/py3-dnsrobocert: build using pyproject2setuppy

* enable tests
* fix py3-coloredlogs dependency
parent ed5887b9
Pipeline #85848 passed with stages
in 1 minute and 49 seconds
......@@ -2,7 +2,7 @@
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-dnsrobocert
pkgver=3.9.1
pkgrel=0
pkgrel=1
pkgdesc="A tool to manage your DNS-challenged TLS certificates"
url="https://dnsrobocert.readthedocs.io/en/latest/"
arch="noarch !mips64" # blocked by py3-boto3
......@@ -14,7 +14,7 @@ depends="
py3-cffi
py3-cryptography
py3-colorama
py3-colored-logs
py3-coloredlogs
py3-dnspython
py3-dns-lexicon
py3-jsonschema
......@@ -31,18 +31,26 @@ depends="
py3-yaml
py3-zeep
"
makedepends="py3-poetry-core py3-pip"
#tests require pinned versions of dependencies from poetry.lock
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/adferrand/dnsrobocert/archive/v$pkgver.tar.gz"
makedepends="pyproject2setuppy"
checkdepends="pebble py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/adferrand/dnsrobocert/archive/v$pkgver.tar.gz
pebble.patch
"
builddir="$srcdir/dnsrobocert-$pkgver"
build() {
python3 -m pip wheel ./ --no-deps -w dist
python3 -m pyproject2setuppy.main build
}
check() {
PYTHONPATH=build/lib pytest
}
package() {
python3 -m pip install --no-deps --prefix=/usr --root="$pkgdir" dist/dnsrobocert-$pkgver-py3-none-any.whl
python3 -m pyproject2setuppy.main install --prefix=/usr --root="$pkgdir"
}
sha512sums="55f13f7c867772651a1160ed44babb439acbc66e7e5c240f6294361e0012745e69f60243025aac07496ad56e75944973a61a8eb2640530bdc1122b38ae196136 py3-dnsrobocert-3.9.1.tar.gz"
sha512sums="
55f13f7c867772651a1160ed44babb439acbc66e7e5c240f6294361e0012745e69f60243025aac07496ad56e75944973a61a8eb2640530bdc1122b38ae196136 py3-dnsrobocert-3.9.1.tar.gz
3a8f2d9a74a35aea2e5eebcede656d2861382c975dc94560eca4f94cd8b13f1bb4a98b5b667cb5937ef9123a8f1da20dcef58a8ffc903e93e979d928bca9f9b1 pebble.patch
"
use alpine pebble instead of downloading
--- a/test/integration_tests/dnsrobocert_test.py
+++ b/test/integration_tests/dnsrobocert_test.py
@@ -87,7 +87,9 @@
workspace = tmp_path / "workspace"
os.mkdir(str(workspace))
- pebble_path, challtestsrv_path, pebble_config_path = _fetch(str(workspace))
+ pebble_path = "/usr/bin/pebble"
+ challtestsrv_path = "/usr/bin/pebble-challtestsrv"
+ pebble_config_path = _build_pebble_config(str(workspace))
environ = os.environ.copy()
environ["PEBBLE_VA_NOSLEEP"] = "1"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment