Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tox/
Date: Fri, 29 Jan 2021 09:00:31
Message-Id: 1611910817.a5b15c5cbb6188aefa2e8301cc8bd326f6dfd8b8.mgorny@gentoo
1 commit: a5b15c5cbb6188aefa2e8301cc8bd326f6dfd8b8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 29 08:42:42 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 29 09:00:17 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5b15c5c
7
8 dev-python/tox: Bump to 3.21.3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/tox/Manifest | 1 +
13 dev-python/tox/tox-3.21.3.ebuild | 76 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 77 insertions(+)
15
16 diff --git a/dev-python/tox/Manifest b/dev-python/tox/Manifest
17 index 7cb7de763aa..b5afa37cd9f 100644
18 --- a/dev-python/tox/Manifest
19 +++ b/dev-python/tox/Manifest
20 @@ -2,3 +2,4 @@ DIST tox-3.20.1.tar.gz 297516 BLAKE2B 2a13059bce229f30670e247b17ffd03d4b0d907b2f
21 DIST tox-3.21.0.tar.gz 300962 BLAKE2B 360aedb86ef1f918e73f726af238d8fdb20c3217b45ef068ec833b14e17af018c1115a2df43b441b9a4af802c4aee2fcaa9bac8f519028dd05b112902c47b2ce SHA512 50041660839cc081d491f867db74c6e95c93b81b2264785b3ccf7b80fbf3a1250028755ddc4243a285ebd005e12f897001d6ea7efd45d0278ce3cb14f7021572
22 DIST tox-3.21.1.tar.gz 301387 BLAKE2B 3b15a17cfa8f2df1c8c3558cacde81d818cbc72b3dd0c4e4868d2fedace61c85ed484ad08e8abec10c0bef4062e623c75e4bf1122b4d15151b741057ea90fba3 SHA512 c3feaf1832db2b16df444d52ea774602c9a68eabd379c86483d33716f414df901b5e95ea9d63dd7c2f4338227cb5d9ee521a56f2dbb0d9c7d21221f49d1fc335
23 DIST tox-3.21.2.tar.gz 301587 BLAKE2B 81d19e45a1d53000a2e9f956ed7b934f0f1926b4270ddced997ddc8b77a1f05388e0907d379dbabaafd5e6fdcd7031d5e87f206fff385759318a89a5f3eebf58 SHA512 beb551f49af1f8661931f241cf73fa77a37a8061ade7d41b415a2fcecd4d5dd1ba7d3e3add248d3bc14627468fa896f3f4f532305bbc36d112d226b1961fd191
24 +DIST tox-3.21.3.tar.gz 301828 BLAKE2B d777a858c07d94b9239ecf8286bebc5b4efe1a79cd15b37dd2a717df06cb189d4ef3126da0523719289f8fb410965c4f9c06b02c56dfa5af6ad4fb6a60c6514f SHA512 1975efcab6af938058642a85675907dadc17bd14f881c074087b221cd22d42bd1fcd577bcbef134a499c9a5b2ee583af2b557657fbfb7db30261ff9d394cf82b
25
26 diff --git a/dev-python/tox/tox-3.21.3.ebuild b/dev-python/tox/tox-3.21.3.ebuild
27 new file mode 100644
28 index 00000000000..c21ec8453e9
29 --- /dev/null
30 +++ b/dev-python/tox/tox-3.21.3.ebuild
31 @@ -0,0 +1,76 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DISTUTILS_USE_SETUPTOOLS=rdepend
38 +PYTHON_COMPAT=( python3_{7..9} pypy3 )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="virtualenv-based automation of test activities"
43 +HOMEPAGE="https://tox.readthedocs.io https://github.com/tox-dev/tox https://pypi.org/project/tox/"
44 +SRC_URI="https://github.com/tox-dev/tox/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
49 +# doc disabled because of missing deps in tree
50 +IUSE="test"
51 +RESTRICT="!test? ( test )"
52 +
53 +RDEPEND="
54 + dev-python/filelock[${PYTHON_USEDEP}]
55 + $(python_gen_cond_dep '
56 + >=dev-python/importlib_metadata-1.1[${PYTHON_USEDEP}]
57 + ' python3_{5,6,7} pypy3)
58 + dev-python/packaging[${PYTHON_USEDEP}]
59 + >=dev-python/pluggy-0.12[${PYTHON_USEDEP}]
60 + dev-python/pip[${PYTHON_USEDEP}]
61 + dev-python/py[${PYTHON_USEDEP}]
62 + >=dev-python/six-1.14[${PYTHON_USEDEP}]
63 + dev-python/toml[${PYTHON_USEDEP}]
64 + >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]"
65 +# TODO: figure out how to make tests work without the package being
66 +# installed first.
67 +BDEPEND="
68 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
69 + test? (
70 + ${RDEPEND}
71 + >=dev-python/flaky-3.4.0[${PYTHON_USEDEP}]
72 + >=dev-python/freezegun-0.3.11[${PYTHON_USEDEP}]
73 + >=dev-python/pytest-4.0.0[${PYTHON_USEDEP}]
74 + dev-python/pytest-mock[${PYTHON_USEDEP}]
75 + )"
76 +
77 +src_configure() {
78 + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
79 +}
80 +
81 +python_test() {
82 + local deselect=(
83 + # broken without Internet
84 + tests/unit/session/test_provision.py::test_provision_non_canonical_dep
85 + tests/integration/test_provision_int.py::test_provision_interrupt_child
86 +
87 + # expects python2 to exist
88 + tests/unit/interpreters/test_interpreters.py::test_tox_get_python_executable
89 +
90 + # broken without tox installed first
91 + # TODO: figure out how to make importlib_metadata work
92 + tests/unit/test_z_cmdline.py::test_tox_console_script
93 + tests/unit/test_z_cmdline.py::test_tox_quickstart_script
94 + )
95 +
96 + [[ ${EPYTHON} != pypy3 ]] && deselect+=(
97 + # TODO?
98 + tests/unit/interpreters/test_interpreters.py::test_find_alias_on_path
99 +
100 + # broken without tox installed first
101 + # TODO: why it can't import itself?
102 + tests/integration/test_parallel_interrupt.py::test_parallel_interrupt
103 + )
104 +
105 + distutils_install_for_testing --via-root
106 + pytest -vv --no-network ${deselect[@]/#/--deselect } || die "Testsuite failed under ${EPYTHON}"
107 +}