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="
py3-virtualenv
"
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"
build() {
......@@ -33,13 +32,13 @@ build() {
}
check() {
python3 -m installer -d testenv dist/jaraco.envs-$pkgver-py3-none-any.whl
local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
PYTHONPATH="$PWD/testenv/$sitedir" pytest
python3 -m venv --clear --without-pip --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" dist/jaraco.envs-$pkgver-py3-none-any.whl
python3 -m installer -d "$pkgdir" dist/*.whl
}
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