Сравнение tox-3.28.0 с tox-4.11.3

/usr/portage/dev-python/tox/tox-4.11.3.ebuild 2023-10-09 14:52:30.392368373 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
DISTUTILS_USE_PEP517=setuptools
7
PYTHON_COMPAT=( python3_{9..11} pypy3 )
6
DISTUTILS_USE_PEP517=hatchling
7
PYTHON_COMPAT=( python3_{10..11} pypy3 )
8 8

  
9
inherit distutils-r1
9
inherit distutils-r1 pypi
10 10

  
11 11
DESCRIPTION="virtualenv-based automation of test activities"
12 12
HOMEPAGE="
......
14 14
	https://github.com/tox-dev/tox/
15 15
	https://pypi.org/project/tox/
16 16
"
17
SRC_URI="
18
	https://github.com/tox-dev/tox/archive/${PV}.tar.gz
19
		-> ${P}.gh.tar.gz
20
"
21 17

  
22 18
LICENSE="MIT"
23 19
SLOT="0"
24
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
20
KEYWORDS="amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86"
25 21

  
26 22
RDEPEND="
23
	dev-python/cachetools[${PYTHON_USEDEP}]
24
	dev-python/chardet[${PYTHON_USEDEP}]
25
	dev-python/colorama[${PYTHON_USEDEP}]
27 26
	dev-python/filelock[${PYTHON_USEDEP}]
28 27
	dev-python/packaging[${PYTHON_USEDEP}]
29
	>=dev-python/pluggy-0.12[${PYTHON_USEDEP}]
30
	dev-python/py[${PYTHON_USEDEP}]
31
	>=dev-python/six-1.14[${PYTHON_USEDEP}]
32
	>=dev-python/virtualenv-20.1.0[${PYTHON_USEDEP}]
33
	dev-python/pip[${PYTHON_USEDEP}]
28
	dev-python/platformdirs[${PYTHON_USEDEP}]
29
	dev-python/pluggy[${PYTHON_USEDEP}]
30
	dev-python/pyproject-api[${PYTHON_USEDEP}]
34 31
	$(python_gen_cond_dep '
35
		>=dev-python/tomli-1.0.0[${PYTHON_USEDEP}]
36
	' 3.8 3.9 3.10)
32
		dev-python/tomli[${PYTHON_USEDEP}]
33
	' 3.{9..10})
34
	dev-python/virtualenv[${PYTHON_USEDEP}]
37 35
"
38 36
BDEPEND="
39
	dev-python/setuptools-scm[${PYTHON_USEDEP}]
37
	dev-python/hatch-vcs[${PYTHON_USEDEP}]
40 38
	test? (
41
		>=dev-python/flaky-3.4.0[${PYTHON_USEDEP}]
42
		>=dev-python/freezegun-0.3.11[${PYTHON_USEDEP}]
39
		dev-python/build[${PYTHON_USEDEP}]
40
		dev-python/distlib[${PYTHON_USEDEP}]
41
		dev-python/flaky[${PYTHON_USEDEP}]
42
		dev-python/psutil[${PYTHON_USEDEP}]
43 43
		dev-python/pytest-mock[${PYTHON_USEDEP}]
44
		dev-python/pytest-xdist[${PYTHON_USEDEP}]
45
		dev-python/re-assert[${PYTHON_USEDEP}]
46
		$(python_gen_cond_dep '
47
			dev-python/time-machine[${PYTHON_USEDEP}]
48
		' 'python*')
44 49
	)
45 50
"
46 51

  
47 52
distutils_enable_tests pytest
48 53

  
49
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
54
src_prepare() {
55
	# upstream lower bounds are meaningless
56
	sed -i -e 's:>=[0-9.]*::' pyproject.toml || die
57
	distutils-r1_src_prepare
58
}
50 59

  
51 60
python_test() {
52
	local EPYTEST_DESELECT=(
53
		# broken without Internet
54
		tests/unit/session/test_provision.py::test_provision_non_canonical_dep
55
		tests/integration/test_provision_int.py::test_provision_interrupt_child
61
	# devpi_process is not packaged, and has lots of dependencies
62
	cat > "${T}"/devpi_process.py <<-EOF || die
63
		def IndexServer(*args, **kwargs): raise NotImplementedError()
64
	EOF
56 65

  
57
		# expects python2 to exist
58
		tests/unit/interpreters/test_interpreters.py::test_tox_get_python_executable
66
	local -x PYTHONPATH=${T}:${PYTHONPATH}
67
	local EPYTEST_DESELECT=(
68
		# Internet
69
		tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_build_wheel_external
70
	)
71
	local EPYTEST_IGNORE=(
72
		# requires devpi*
73
		tests/test_provision.py
59 74
	)
60 75

  
61
	[[ ${EPYTHON} != pypy3 ]] && EPYTEST_DESELECT+=(
62
		# capfd doesn't seem to work for some non-obvious reason
63
		tests/unit/test_z_cmdline.py::TestSession::test_summary_status
64
		tests/unit/session/test_provision.py::test_provision_bad_requires
65

  
66
		# TODO?
67
		tests/unit/interpreters/test_interpreters.py::test_find_alias_on_path
76
	[[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
77
		'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[explicit-True-True]'
78
		'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[requirements-True-True]'
79
		'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[constraints-True-True]'
80
		'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[explicit+requirements-True-True]'
81
		'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[requirements_indirect-True-True]'
82
		'tests/tox_env/python/pip/test_pip_install.py::test_constrain_package_deps[requirements_constraints_indirect-True-True]'
68 83
	)
69 84

  
70
	epytest --no-network
85
	epytest
86

  
87
	# tox leaves a *humonogous* tempdir which easily leads to ENOSPC
88
	# when running in parallel with other packages
89
	rm -r "${T}"/pytest* || die
71 90
}
Спасибо!