commit: 1d289fc2c4286e90b660891b7f65e8bcaf03e6b4 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Feb 25 03:12:48 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Feb 25 03:39:35 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d289fc2
dev-python/tox: Bump to 4.46.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/tox/Manifest | 2 + dev-python/tox/tox-4.46.0.ebuild | 91 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/dev-python/tox/Manifest b/dev-python/tox/Manifest index a6da8eab1129..68fcaa2eaf16 100644 --- a/dev-python/tox/Manifest +++ b/dev-python/tox/Manifest @@ -6,3 +6,5 @@ DIST tox-4.44.0.tar.gz 243605 BLAKE2B f3f3ef2c684bd34594217260e9fbf08f570168e868 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 +DIST tox-4.46.0.tar.gz 249296 BLAKE2B fdc12cff02ec234383221604c03e2d495b7975336e8d9a484da02e4ca6f69a9bf94feb2dac289e79ed2dc0221f0d9d6054bf4eeb7bda5f5e314283211f5f09f2 SHA512 501ca9c3033c65ce2e0a1be6f22d6c96651b9865e471c326020dfa904652f34ae03b58b0d6012ea3e905e5783d1610830168fe4032c0056f22a6b891036a46b1 +DIST tox-4.46.0.tar.gz.provenance 9373 BLAKE2B 89756e65dd4ce39994a726735b96022f18bc1643c67d67f8e0a798c7b901182616521c8700ccfea0f1f0d6719932e2dd44b0166f7419bfd3d4ff5523bdb56b86 SHA512 6fd3a70b0fa0a0732e51d0b186e0bb15658751767a992166919b8f68b56c50c106ac56af40206eaa31bb7e3dca5270ba800607cf0fd4961b77892b7f887e4ffd diff --git a/dev-python/tox/tox-4.46.0.ebuild b/dev-python/tox/tox-4.46.0.ebuild new file mode 100644 index 000000000000..db7f704313d7 --- /dev/null +++ b/dev-python/tox/tox-4.46.0.ebuild @@ -0,0 +1,91 @@ +# 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/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= +}
