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