commit: 112dd5385f092356a920b805d77a520c66bdf499 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Feb 20 02:32:03 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Fri Feb 20 02:59:08 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=112dd538
dev-python/tox: Bump to 4.41.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/tox/Manifest | 2 + dev-python/tox/tox-4.41.0.ebuild | 92 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) diff --git a/dev-python/tox/Manifest b/dev-python/tox/Manifest index 410c703e75c0..135179c1b95d 100644 --- a/dev-python/tox/Manifest +++ b/dev-python/tox/Manifest @@ -16,3 +16,5 @@ DIST tox-4.38.0.tar.gz 215498 BLAKE2B d7fa0df218c205bf90d213fab3de5c729750db4ef8 DIST tox-4.38.0.tar.gz.provenance 9232 BLAKE2B 49593ac7877b6feee78ec58944f19c622a56a431266d8101d7dc2fd779626f4f1a5e204a2acf4a413207b6c930dbc2ab9dd5cbea9adb07e37480e7a0e1e040db SHA512 9e03320bd129dada7771f8cf8a8a5e51afd9c2a893d70607ccd8fe07e003cff603b775029fad209558e8dfce22b002a87353253cb331f7c098ab761fbb58621e DIST tox-4.39.0.tar.gz 221354 BLAKE2B e1a648abbf8b3ac10915fad3f89542b99d3140157035b55e96c532880c4a8f1e48605e7ab99f7eb40dd807bd48f754e4a202b37929f6f3b4e9c0301cfcc00b05 SHA512 a7ebdc2cb06f73b9ff84971e39811553f48b1191146116b5ebd3f59b5f9027e1cd968aac0064f9d2e267c7f0a0c28c79f75305f55bef247e8d0fdec77c7442e9 DIST tox-4.39.0.tar.gz.provenance 9240 BLAKE2B e12c7db4f636960052c52ae8590635838c22905aaec6cd163c4a951d201b5d509028973d4247954d5ee33ff70a8cd577b41bd4864c75b3388aee56e1bc9186b1 SHA512 0a91eb44d63f071a997853891ca2edceae719d8002308dd733780350abb501465777aff1e44a027a44cd8ae09ccf25eac57ab74d99c57adf4427121e53c255ad +DIST tox-4.41.0.tar.gz 228941 BLAKE2B f295d6b6b547cf350fa7ddc6e9215b0ac8713d912382651a64f4e9289d3b7790cefc57465c105afd09abbe32a30de5a1f37721532413210dae6b3be3b697cb2c SHA512 5803952a1912445791e1ce49e304b501ec0d519067e6946134531381097a50b5e3f4fde08bd8abd34cfc385a548fc1349a0874bf07b3d6a47839fb96cb866df7 +DIST tox-4.41.0.tar.gz.provenance 9142 BLAKE2B dad45f1f36c296d64a13a56c77b3edde9377c013a81ab34fb170d6200e2054a6ab62532a076306519645dec82e1755a0ecac99a0f27cb668867205f08758eabd SHA512 93cd8cf47cc2cf4e5fb8267dfed311ad9257a8608878a88d1b9891dcba294a60982ffbf88a980844bba0f4ae01b1d11686ac97d5e71631f1685576bb42a4ec71 diff --git a/dev-python/tox/tox-4.41.0.ebuild b/dev-python/tox/tox-4.41.0.ebuild new file mode 100644 index 000000000000..d424cd21751c --- /dev/null +++ b/dev-python/tox/tox-4.41.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYPI_VERIFY_REPO=https://github.com/tox-dev/tox +PYTHON_COMPAT=( python3_{11..14} pypy3_11 ) + +inherit distutils-r1 pypi + +DESCRIPTION="virtualenv-based automation of test activities" +HOMEPAGE=" + https://tox.readthedocs.io/ + https://github.com/tox-dev/tox/ + https://pypi.org/project/tox/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/cachetools[${PYTHON_USEDEP}] + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/colorama[${PYTHON_USEDEP}] + dev-python/filelock[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/platformdirs[${PYTHON_USEDEP}] + dev-python/pluggy[${PYTHON_USEDEP}] + dev-python/pyproject-api[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/hatch-vcs[${PYTHON_USEDEP}] + test? ( + dev-python/build[${PYTHON_USEDEP}] + dev-python/distlib[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/re-assert[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/time-machine[${PYTHON_USEDEP}] + ' 'python*') + ) +" + +EPYTEST_PLUGINS=( pytest-{mock,rerunfailures,timeout,xdist} ) +# xdist seems to mess up state between successive implementation runs +distutils_enable_tests pytest + +src_prepare() { + # upstream lower bounds are meaningless + sed -i -e 's:>=[0-9.]*::' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + # devpi_process is not packaged, and has lots of dependencies + cat > "${T}"/devpi_process.py <<-EOF || die + def IndexServer(*args, **kwargs): raise NotImplementedError() + EOF + + local -x PYTHONPATH=${T}:${PYTHONPATH} + local EPYTEST_DESELECT=( + # Internet + tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_build_wheel_external + tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_run_installpkg_targz + tests/tox_env/python/virtual_env/package/test_package_pyproject.py::test_pyproject_installpkg_pep517_envs + ) + local EPYTEST_IGNORE=( + # requires devpi* + tests/test_provision.py + ) + + case ${EPYTHON} in + python*) + local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" time-machine ) + ;; + pypy3*) + EPYTEST_DESELECT+=( + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[explicit-True-True]' + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[requirements-True-True]' + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[constraints-True-True]' + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[explicit+requirements-True-True]' + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[requirements_indirect-True-True]' + 'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[requirements_constraints_indirect-True-True]' + ) + ;; + esac + + epytest -o addopts= +}
