python3-pytest-httpserver: use bsdtar for tests

This commit is contained in:
Michal Vasilek 2023-01-29 12:31:59 +01:00
parent 0c7d5d7d95
commit 2258976a21
1 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,7 @@ pkgname=python3-pytest-httpserver
version=1.0.5 version=1.0.5
revision=2 revision=2
build_style=python3-pep517 build_style=python3-pep517
hostmakedepends="python3-poetry-core python3-pip" hostmakedepends="python3-poetry-core"
depends="python3-pytest python3-Werkzeug" depends="python3-pytest python3-Werkzeug"
checkdepends="${depends} python3-MarkupSafe python3-requests" checkdepends="${depends} python3-MarkupSafe python3-requests"
short_desc="HTTP server for pytest" short_desc="HTTP server for pytest"
@ -15,8 +15,11 @@ distfiles="https://github.com/csernazs/pytest-httpserver/archive/refs/tags/${ver
checksum=932843df9fa584e6a664b2e7a21dec4ddf9507c235a78853f21e00b111352395 checksum=932843df9fa584e6a664b2e7a21dec4ddf9507c235a78853f21e00b111352395
do_check() { do_check() {
python3 -m pip install --no-deps --target test dist/pytest_httpserver-${version}-py3-none-any.whl rm -rf tmp # remove artifacts from previous unsuccessful check run
PYTHONPATH=test python3 -m pytest tests mkdir tmp
bsdtar xf dist/pytest_httpserver-$version-py3-none-any.whl -C tmp
PYTHONPATH=tmp pytest tests
rm -rf tmp
} }
post_install() { post_install() {