Skip to content
Snippets Groups Projects
Commit a56bc4cc authored by Duncan Bellamy's avatar Duncan Bellamy :speech_balloon: Committed by alice
Browse files

community/py3-jaraco.envs: run tests in venv

parent de0982bf
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,6 @@ checkdepends=" ...@@ -23,7 +23,6 @@ checkdepends="
py3-virtualenv py3-virtualenv
" "
source="https://pypi.python.org/packages/source/j/jaraco.envs/jaraco.envs-$pkgver.tar.gz" source="https://pypi.python.org/packages/source/j/jaraco.envs/jaraco.envs-$pkgver.tar.gz"
options="!check" # Tests not usable in env
builddir="$srcdir/jaraco.envs-$pkgver" builddir="$srcdir/jaraco.envs-$pkgver"
build() { build() {
...@@ -33,13 +32,13 @@ build() { ...@@ -33,13 +32,13 @@ build() {
} }
check() { check() {
python3 -m installer -d testenv dist/jaraco.envs-$pkgver-py3-none-any.whl python3 -m venv --clear --without-pip --system-site-packages testenv
local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')" testenv/bin/python3 -m installer dist/*.whl
PYTHONPATH="$PWD/testenv/$sitedir" pytest testenv/bin/python3 -m pytest
} }
package() { package() {
python3 -m installer -d "$pkgdir" dist/jaraco.envs-$pkgver-py3-none-any.whl python3 -m installer -d "$pkgdir" dist/*.whl
} }
sha512sums=" sha512sums="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment