Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages /
python-pytest-randomly
Commits:
a46866fe by Jelle van der Waa at 2024-03-02T15:03:26+01:00
Don't hardcode python version
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -23,7 +23,8 @@ check() {
python -m installer -d tmp_install dist/*.whl
# tests/test_pytest_randomly.py::test_model_bakery requires
python-model-bakery which is not packaged
# tests/test_pytest_randomly.py::test_entrypoint_injection: TODO
- PYTHONPATH="$PWD/tmp_install/usr/lib/python3.11/site-packages" \
+ local python_version=$(python -c 'import sys; print(".".join(map(str,
sys.version_info[:2])))')
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python${python_version}/site-packages" \
pytest --deselect tests/test_pytest_randomly.py::test_model_bakery \
--deselect tests/test_pytest_randomly.py::test_entrypoint_injection
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-randomly/-/commit/a46866fe43e99c1499b0d492d172e983db544a86
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-randomly/-/commit/a46866fe43e99c1499b0d492d172e983db544a86
You're receiving this email because of your account on gitlab.archlinux.org.