commit: 132b8ab20696b58c05ddd9d7e68c6b60266d584c Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed Mar 4 03:28:32 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Wed Mar 4 03:42:57 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=132b8ab2
dev-python/tox: Bump to 4.47.2 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/tox/Manifest | 2 + dev-python/tox/tox-4.47.2.ebuild | 91 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) diff --git a/dev-python/tox/Manifest b/dev-python/tox/Manifest index 7dc3056645e1..3394a7cba1ef 100644 --- a/dev-python/tox/Manifest +++ b/dev-python/tox/Manifest @@ -12,3 +12,5 @@ DIST tox-4.46.3.tar.gz 250933 BLAKE2B 028c1d2b5035439bbcd3b0b5b33a9c4aaf533e6760 DIST tox-4.46.3.tar.gz.provenance 9334 BLAKE2B 1bc4a799991d69a42c1ae2fd4edcc92d3f56e0bf0872dc7fa2b8abd4b8760ab25245d1e46932b08c43cdacd31fcda40f58c1fc7029d0bb032622876a6cc7299b SHA512 29b31df2e9928c13859570a5c830d180411f4c826f7e652979d48ee361272079c538c8d5b1ac793b0b03ff5ec3411a1a120afc3b05b513a8be7e703672eba6f3 DIST tox-4.47.0.tar.gz 253965 BLAKE2B b350f0afb6c8b14f5f47dada12fcf8f1dc7123ec9a58a0e94628d0209966aac0671f1541507a6f45697f6b40c358832fa93ad4ac5db9d7dea54a9393a2494f8d SHA512 10f2c8309157c6120f3fd4761e141754466783b93d623cbeed7407baf02df36f0238c48b0ceca0ef258d5d385d4e218be895076528214106362cb144916158cb DIST tox-4.47.0.tar.gz.provenance 9186 BLAKE2B b6739f9fab74e4bfcfa7d45b6c6c30dbb1814d527f04702cd474dd7f7dfa9e1d4b85ad32f6009837117f5f175399f9141bc08473823911996386407680491766 SHA512 3dbe8be3613f59faff73756b016bff21066e954f81319966c72c147ee5893b6e02e0e433596b046cc3743d8c9a1f774e9b0210aa3f7adb3ca21e645bd5b41ece +DIST tox-4.47.2.tar.gz 254303 BLAKE2B 4a755856797958873a02b9acaa49bb1a5c14f9ee32dcc769fe256d7b7044bf041f52e77926caa998c27259c242e710317875d35459d5f93bf2fdb65e60cd440b SHA512 08aa6a7ca5ae14cc8d6c26ac5e577f3100399a6852fe9dd3fd482c4c40dd3be617deea9c9d6dee9c7fa85c88e0ffa07c96ec09ef389c63be9506d6e6d9558b27 +DIST tox-4.47.2.tar.gz.provenance 9233 BLAKE2B a48cf1c2e06002618bde93a8c976e4aff994960c654dd67889712f572f000b6b3dce9b045576e268f504efb8cfa41144f0e22c27843b9a32c94c0b7bef4e1f08 SHA512 00bc756b89fea938f0c94e933d93f938f30717cbf93adb72ea44bcff63512048dbbb90da53d3506c1a074f6de79884e9235cd362fb3ea42109e9f517be8478e5 diff --git a/dev-python/tox/tox-4.47.2.ebuild b/dev-python/tox/tox-4.47.2.ebuild new file mode 100644 index 000000000000..db7f704313d7 --- /dev/null +++ b/dev-python/tox/tox-4.47.2.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= +}
