Date: Thursday, April 13, 2023 @ 17:24:41 Author: dvzrv Revision: 1445920
upgpkg: python-ansible-compat 3.0.1-3: Rebuild to fix tests by providing absolute test dir. Modified: python-ansible-compat/trunk/PKGBUILD ----------+ PKGBUILD | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-13 17:24:11 UTC (rev 1445919) +++ PKGBUILD 2023-04-13 17:24:41 UTC (rev 1445920) @@ -3,7 +3,7 @@ _name=ansible-compat pkgname=python-ansible-compat pkgver=3.0.1 -pkgrel=2 +pkgrel=3 pkgdesc="Functions that help interacting with various versions of Ansible" arch=(any) url="https://github.com/ansible-community/ansible-compat" @@ -38,20 +38,10 @@ check() { local pytest_options=( + -vv # disable broken tests: https://github.com/ansible/ansible-compat/issues/210 --deselect test/test_runtime.py::test_prerun_reqs_v1 --deselect test/test_runtime.py::test_prerun_reqs_v2 - # even more broken tests with Python 3.11: https://github.com/ansible/ansible-compat/issues/229 - --deselect test/test_runtime.py::test_prepare_environment_with_collections - --deselect test/test_runtime.py::test_require_collection_wrong_version - --deselect test/test_runtime.py::test_require_collection - --deselect test/test_runtime.py::test_install_collection - --deselect test/test_runtime.py::test_install_collection_dest - --deselect test/test_runtime.py::test_upgrade_collection - --deselect test/test_runtime.py::test_require_collection_no_cache_dir - --deselect test/test_runtime.py::test_install_collection_from_disk[normal] - --deselect test/test_runtime.py::test_install_collection_from_disk[deep] - --deselect test/test_runtime_example.py::test_runtime_example ) local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])") @@ -58,8 +48,8 @@ cd $_name-$pkgver # install to temporary location, as importlib is used python -m installer --destdir=test_dir dist/*.whl - export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH" - pytest -vv -c /dev/null "${pytest_options[@]}" + export PYTHONPATH="$PWD/test_dir/$_site_packages:$PYTHONPATH" + pytest "${pytest_options[@]}" } package() {
