Date: Monday, January 23, 2023 @ 08:53:04 Author: dvzrv Revision: 467221
upgpkg: python-validate-pyproject 0.10.1-2: Rebuild to remove hardcoded python interpreter version. Modified: python-validate-pyproject/trunk/PKGBUILD ----------+ PKGBUILD | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-23 08:18:42 UTC (rev 467220) +++ PKGBUILD 2023-01-23 08:53:04 UTC (rev 467221) @@ -2,7 +2,7 @@ pkgname=python-validate-pyproject pkgver=0.10.1 -pkgrel=1 +pkgrel=2 pkgdesc="Validation library and CLI tool for checking on 'pyproject.toml' files using JSON Schema" url="https://github.com/abravalheri/validate-pyproject" license=('MPL') @@ -40,11 +40,13 @@ } check() { + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + cd validate-pyproject-$pkgver python -m installer --destdir=tmp_install dist/*.whl - PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" pytest --doctest-modules --ignore src/validate_pyproject/_vendor src + PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH" pytest --doctest-modules --ignore src/validate_pyproject/_vendor src # Deselected tests requiring a installed validate-pyproject - PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" pytest --deselect tests/test_pre_compile.py --deselect tests/test_vendoring.py + PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH" pytest --deselect tests/test_pre_compile.py --deselect tests/test_vendoring.py } package() {
