From 6cb92eb77bc655d05736763e229c2b34726ecad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 7 Oct 2025 04:21:31 +0200 Subject: [PATCH] dev-python/ansible-compat: Bump to 25.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/ansible-compat/Manifest | 1 + .../ansible-compat-25.8.2.ebuild | 66 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 dev-python/ansible-compat/ansible-compat-25.8.2.ebuild diff --git a/dev-python/ansible-compat/Manifest b/dev-python/ansible-compat/Manifest index 6ab78d71622b9..709e95c82c5a7 100644 --- a/dev-python/ansible-compat/Manifest +++ b/dev-python/ansible-compat/Manifest @@ -1,2 +1,3 @@ DIST ansible_compat-25.6.0.tar.gz 88447 BLAKE2B 6431b22bc50d09f865d39046df55fd2a3fe03576cb640f0febc8f108b0ff7b190ef3014904e56f8cd50f37fd6db61da4cd71ab8d52619f8f4c42bac6344b95ed SHA512 3f60f0f6035c17eafa976d77cf811553ce018c3857ded05921a7f3378856cc1e8e5945a57080755cfa86deac52de67bd085834b334d597afc257b78c249f4ad8 DIST ansible_compat-25.8.1.tar.gz 90142 BLAKE2B 39c98e2e4f7fe9da00543b1ba2fce24e303c25aa269c1a4f86ed96a7e29ebb9f31fa40516fba78017e940ddcea5f6fba95bf0b4eccebc77fd0c13d282bf6df97 SHA512 b0bc8ef6f614e7c41becba6090ebd4a5c09bb9ac957a56652eb59d18eb2d03398e149af21071883a7b236e0ee724b354322a043f8d45c23b4db6d1864f871130 +DIST ansible_compat-25.8.2.tar.gz 190581 BLAKE2B a20ebf6b595a8933d02b88c1f9f8efae8e7ffac3378bed3c50fd8fbf74a73663c5406fde7f05f0a923ba7ce75d920f3bf58e347cb7650cec77cb974ed805e45c SHA512 78beb54d3ad65e02e7009834b5690b118c6743274fa5fd31941e63a7f99d3b7ac2fcbce0fa80d45212a6bcf4365628e731cb139a6af14360c0552e9a759d6336 diff --git a/dev-python/ansible-compat/ansible-compat-25.8.2.ebuild b/dev-python/ansible-compat/ansible-compat-25.8.2.ebuild new file mode 100644 index 0000000000000..19799b9793b16 --- /dev/null +++ b/dev-python/ansible-compat/ansible-compat-25.8.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517="setuptools" +PYTHON_COMPAT=( python3_{11..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-25.0[${PYTHON_USEDEP}] + >=dev-python/pyyaml-6.0.2[${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,plus} ) +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= +}