dev-python/tox: Bump to 4.49.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-03-07 06:38:13 +01:00
parent f851df3cde
commit aa5d74bf66
2 changed files with 94 additions and 0 deletions

View File

@@ -18,3 +18,5 @@ DIST tox-4.47.3.tar.gz 254468 BLAKE2B 868819d8f062971f76b5f9cb53c6492cfb56b25253
DIST tox-4.47.3.tar.gz.provenance 9570 BLAKE2B d35cc8eb2b0d708a3cc7c70a52b4d92dd9fe2f5132bde33a2354d9ac2ca1b1aca40e2fe232579052df6b3a329fcda5181a2fedff76fe98f830918ea994d189ff SHA512 e9429d43078d9fafe49e6b787968592b674703fa77a70de1ed07479f12c2135090512024badee2d9e262a25abc266ebe11d628443a43dd8e1d0c85920c505bc8
DIST tox-4.48.1.tar.gz 257985 BLAKE2B 9378ad6c0d69b8987012f9c0d0d0dcbf492eb135b5154f7ed0da51fc4bf5ee1689c122638a3fc4607b085ac4be47592a3e5d4ebfba1744ab0b99b5a057ebddf3 SHA512 f6cdfebea7a4efbed8bc6f18c3afa41d4f17977681addf3985ed92d1428bdff5648c2de122a42314d1636317def87a5a3146ccd339e80c52cde6c337f3fe43bd
DIST tox-4.48.1.tar.gz.provenance 9515 BLAKE2B 75543389a831d934733ffccee59304ebfa91b1ba5af1d851684e3cc43eb12755f1d285cbe13b9196901fa68ba7d678abaa830e0e62d1b0aedc9319eb4f0ad2c3 SHA512 0680194ab81e55b3da1515f5b376eae4074aa93480f89ecaa056cea68c61a67322a0304bec9a434bad1730c3bc1d44fe3854958a315cec60fd2ec3ec1e710138
DIST tox-4.49.0.tar.gz 259917 BLAKE2B dd874dab7ee3a28ae24214fbcb511f81c665167372867b4e730ac1dfa4c30c706e8477404a88e6f200e2940d0b5ccc02a4948dadc4e45ad9b24b41e3d3f71ba1 SHA512 3301a150242f650c386c04c828e8f2fdae97e39e9ebc0bd39af4f569ccb127bf3f560702243da65c731d83100c806bb0cfe388bad372503aad0947b45ffb6768
DIST tox-4.49.0.tar.gz.provenance 9429 BLAKE2B 55d47539cd4808d2181a8fb45e71f53d99ae7e7b92dcbf306df55db3417eb38c976ebf49d581b24dbf774b01e83fd2da58d9dfa83539b838c552aded557e3218 SHA512 eaee797fb46886bf0c82ffb414e8e8ee78f5a2435e26b75546f4aced20736e6054135da47736ff2658c959321d76e60138cbc3aaa2e74cd1898d41eee423a56b

View File

@@ -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/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/tomli-w[${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=
}