commit: 2579f4ef002e57ea4466e306b84bcc381d6560c5 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Feb 24 07:10:54 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Feb 24 09:03:35 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2579f4ef
dev-python/tox: Bump to 4.45.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/tox/Manifest | 2 + dev-python/tox/tox-4.45.0.ebuild | 92 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) diff --git a/dev-python/tox/Manifest b/dev-python/tox/Manifest index 933b090d94f7..a6da8eab1129 100644 --- a/dev-python/tox/Manifest +++ b/dev-python/tox/Manifest @@ -4,3 +4,5 @@ DIST tox-4.35.0.tar.gz 205701 BLAKE2B 7f6a89a8ec975c31d06c091b59baba81c827a4f91e DIST tox-4.35.0.tar.gz.provenance 9138 BLAKE2B e21ef76a38268db69cef238659b72c2fe9838d769801e124f29c4d32aba21a69cd17f9cf8cfb87a6d272e7997b7c21dee9a244118139ca4f64a8a539813b6292 SHA512 cafe0f3160eff68a84a177e46c8c2ad8c0b8e5f1cce9271f73d2e814ed5af2c989d184d8e47a6d8495d5238c14ed74cc8cc5dd95ae2159862e058fcc30a510a0 DIST tox-4.44.0.tar.gz 243605 BLAKE2B f3f3ef2c684bd34594217260e9fbf08f570168e86837096478f6b5ca8fe0183ff1cd64643a4b6657f2b167f2d186e042c066b3cae512a392620a1e58904775a4 SHA512 0ad609830eb04d8a706a4bdff73d11d4ee5047e45668dbea471d8089993cbdd7af9f2647e80d6324f881795c133372eee339016e1f9963966b164e2cd526ced6 DIST tox-4.44.0.tar.gz.provenance 9338 BLAKE2B c3fc90c8aa23b2572313772a82a8359b68ff7865143663856bb2457462620b00f1ee7c12535ae510ce4182e09b3fb36ab67926b8940ae54502606043cae18393 SHA512 ced0661c129082981d6e4397349b6c14023f5ac35e2fead9eb988e68fdc78ad18dae4c93f162b53ea239b6b24da3a8207fb47c84d63b4acdbeba0fa5b96da713 +DIST tox-4.45.0.tar.gz 246134 BLAKE2B 7ee9b9be82cff1db2f3eab812d36544874054a2b7aa59e35909875be737ab7c412e1911f4dc329c6f967e1b28a5d39482255ee6397ad3deaf9aff49feacb13d1 SHA512 f5e7cc6f9edc1a0fce2a98508fa1baf7d80f980568162a302b34993f829e42f4db7df6b0ebb886c4629def70ad73ee09e9d789232222b6c8119d9426a954e81c +DIST tox-4.45.0.tar.gz.provenance 9326 BLAKE2B cfdbb40a5aadaa5ef0f28757eb6bcc6fc9d099fd6cb38f87c86bd7c407d29b3845a16d0b9e0da1196815b7a6ec318c12824c2fb7815926889f4fde3a392086ef SHA512 2331c0af9cdd29311e62fb299a0d0d5adc79115662e398cfffb61596bdf63d96481dd0e95dde7331ff7ea089fc1db8dc34eca47d5cabcbc48384daf92190bb11 diff --git a/dev-python/tox/tox-4.45.0.ebuild b/dev-python/tox/tox-4.45.0.ebuild new file mode 100644 index 000000000000..d424cd21751c --- /dev/null +++ b/dev-python/tox/tox-4.45.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= +}
