dev-python/ansible-compat: Bump to 26.8.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-08-13 04:14:40 +02:00
parent 40a0f4b46c
commit 2e793d265b
2 changed files with 69 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST ansible_compat-26.6.0.tar.gz 233940 BLAKE2B f3fe1f5652afd74c742fbdab02a39a16fea8322bd4cf633bd1e4d3007ecd95ac280675e8c1f3cca6e2cc7b2fc546bf517102ea742a7e8893b7af2dea3d5d9fdc SHA512 f6c7b17a5832ca6f91fcd0e97d48324f3e7af7f2a50ac5d888824ae5d75ca5e20aa2aac4bb63347e284c3ec1cb2508401db31a3bb097a52322a0f259c830e4d0
DIST ansible_compat-26.6.0.tar.gz.provenance 9711 BLAKE2B 4a8753db64c293d3e2f61f7f947caaa765f7069edb133669293492d407fde977d6f50bb1e6e95b63b029e22d08724e57d280bebe8634279045a7381cc4cc1750 SHA512 8c874671e04f51015d567cd967105b62af629d0d7685b0f0049f5eb7d6fc18a1412df4898f638ad8ede289cc1ea05b21e6c8ae06a2e5fe6809cea509eba110e4
DIST ansible_compat-26.8.0.tar.gz 235350 BLAKE2B 46baa7e4e61086410d0b981afc976b20564b3d9af4aa306fce12b1ea6e60a5492b53159bf75bfeb67b1cbc7276131141816ba09f9f9a9aab01b7ac7a39ef0660 SHA512 69d480228dedb8ff13ae7cdf3e3ae7ab51b573bc0e15fed9665938de21e77f27f47777ff3fc1d08258183c7bbe7ab95ba5df4c378249da6cb0b914e0f5d6bc4f
DIST ansible_compat-26.8.0.tar.gz.provenance 9948 BLAKE2B 67c87276c9a8e0c6091f4da62d51853b3c4caaeb0142ee40e671e9c4aed3b592df35da35b74f8393b33824cb7d7a50432b4767636fb947beb2ffd0c5de181dd2 SHA512 ecb9ab99400cc0f15b9648b4d00b37c075c3bfbea621304c72e39032c068b34591a135b97e197a7f3b102bffc09616db5485ffccbc3916fe5919f2e973dc61e6

View File

@@ -0,0 +1,67 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517="setuptools"
PYPI_VERIFY_REPO=https://github.com/ansible/ansible-compat
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 pypi
DESCRIPTION="Contains functions that facilitate working with various versions of Ansible"
HOMEPAGE="
https://pypi.org/project/ansible-compat/
https://github.com/ansible/ansible-compat/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv"
RDEPEND="
>=app-admin/ansible-core-2.18.6[${PYTHON_USEDEP}]
>=dev-python/jsonschema-4.23.0[${PYTHON_USEDEP}]
>=dev-python/packaging-22.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-6.0.1[${PYTHON_USEDEP}]
>=dev-python/subprocess-tee-0.4.1[${PYTHON_USEDEP}]
"
BDEPEND="
>=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}]
"
EPYTEST_PLUGINS=( pytest-mock )
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
# remove stupid upstream version block
sed -i -e 's:2.20.0dev0:0:' src/ansible_compat/prerun.py || die
}
python_test() {
local EPYTEST_DESELECT=(
# All these tests attempt to connect to galaxy.ansible.com
test/test_runtime.py::test_install_collection
test/test_runtime.py::test_install_collection_dest
test/test_runtime.py::test_prepare_environment_with_collections
test/test_runtime.py::test_prerun_reqs_v1
test/test_runtime.py::test_prerun_reqs_v2
test/test_runtime.py::test_require_collection_no_cache_dir
test/test_runtime.py::test_require_collection_wrong_version
test/test_runtime.py::test_require_collection
test/test_runtime.py::test_upgrade_collection
test/test_runtime_example.py::test_runtime
'test/test_runtime.py::test_load_plugins[modules]'
# pip, failing due to internets
test/test_runtime_scan_path.py::test_scan_sys_path
test/test_runtime_scan_path.py::test_ro_venv
# internets?
test/test_runtime.py::test_runtime_has_playbook
# TODO
test/test_prerun.py::test_get_cache_dir_relative
)
epytest -o addopts=
}