Date: Saturday, April 8, 2023 @ 22:23:20 Author: dvzrv Revision: 1443005
upgpkg: python-ansible-compat 3.0.1-2: Rebuild against Python 3.11. Disable more broken tests: https://github.com/ansible/ansible-compat/issues/229 Modified: python-ansible-compat/trunk/PKGBUILD ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-08 22:23:13 UTC (rev 1443004) +++ PKGBUILD 2023-04-08 22:23:20 UTC (rev 1443005) @@ -3,14 +3,30 @@ _name=ansible-compat pkgname=python-ansible-compat pkgver=3.0.1 -pkgrel=1 +pkgrel=2 pkgdesc="Functions that help interacting with various versions of Ansible" arch=(any) url="https://github.com/ansible-community/ansible-compat" license=(MIT) -depends=(ansible-core python-jsonschema python-packaging python-pyyaml python-subprocess-tee) -makedepends=(python-build python-installer python-setuptools python-setuptools-scm python-wheel) -checkdepends=(python-pytest python-pytest-mock) +depends=( + ansible-core + python + python-jsonschema + python-packaging + python-pyyaml + python-subprocess-tee +) +makedepends=( + python-build + python-installer + python-setuptools + python-setuptools-scm + python-wheel +) +checkdepends=( + python-pytest + python-pytest-mock +) source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz) sha256sums=('d7dc5e4b7fade9b7375c568a24475b7be81024cac2a20caef3260ef0b51287b4') b2sums=('a1d08311e1b61d8387ef82db65581df4ab7cb4a2520bff9173845fa5b9fe18d173afd4306874967fb40c007546f36d78349a503bd09ae14257a38a59e1cbb22f') @@ -21,6 +37,22 @@ } check() { + local pytest_options=( + # 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])") cd $_name-$pkgver @@ -27,8 +59,7 @@ # install to temporary location, as importlib is used python -m installer --destdir=test_dir dist/*.whl export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH" - # disable broken tests: https://github.com/ansible/ansible-compat/issues/210 - pytest -vv -c /dev/null -k 'not test_prerun_reqs_v1 and not test_prerun_reqs_v2' + pytest -vv -c /dev/null "${pytest_options[@]}" } package() {
