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