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, 26 Dec 2020 08:26:49
Message-Id: 1608971202.b5a36a48b024f59854b53789b9eeb6475fb9af96.mgorny@gentoo
1 commit: b5a36a48b024f59854b53789b9eeb6475fb9af96
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 26 08:25:00 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 26 08:26:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5a36a48
7
8 dev-python/tox: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/tox/tox-3.20.1.ebuild | 70 ----------------------------------------
13 1 file changed, 70 deletions(-)
14
15 diff --git a/dev-python/tox/tox-3.20.1.ebuild b/dev-python/tox/tox-3.20.1.ebuild
16 deleted file mode 100644
17 index 8fcf947120f..00000000000
18 --- a/dev-python/tox/tox-3.20.1.ebuild
19 +++ /dev/null
20 @@ -1,70 +0,0 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -DISTUTILS_USE_SETUPTOOLS=rdepend
27 -PYTHON_COMPAT=( python3_{6..9} pypy3 )
28 -
29 -inherit distutils-r1
30 -
31 -DESCRIPTION="virtualenv-based automation of test activities"
32 -HOMEPAGE="https://tox.readthedocs.io https://github.com/tox-dev/tox https://pypi.org/project/tox/"
33 -SRC_URI="https://github.com/tox-dev/tox/archive/${PV}.tar.gz -> ${P}.tar.gz"
34 -
35 -LICENSE="MIT"
36 -SLOT="0"
37 -KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 sparc x86"
38 -# doc disabled because of missing deps in tree
39 -IUSE="test"
40 -RESTRICT="!test? ( test )"
41 -
42 -RDEPEND="
43 - dev-python/filelock[${PYTHON_USEDEP}]
44 - $(python_gen_cond_dep '
45 - >=dev-python/importlib_metadata-1.1[${PYTHON_USEDEP}]
46 - ' python3_{5,6,7} pypy3)
47 - dev-python/packaging[${PYTHON_USEDEP}]
48 - >=dev-python/pluggy-0.12[${PYTHON_USEDEP}]
49 - dev-python/pip[${PYTHON_USEDEP}]
50 - dev-python/py[${PYTHON_USEDEP}]
51 - >=dev-python/six-1.14[${PYTHON_USEDEP}]
52 - dev-python/toml[${PYTHON_USEDEP}]
53 - >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]"
54 -# TODO: figure out how to make tests work without the package being
55 -# installed first.
56 -BDEPEND="
57 - dev-python/setuptools_scm[${PYTHON_USEDEP}]
58 - test? (
59 - ${RDEPEND}
60 - >=dev-python/flaky-3.4.0[${PYTHON_USEDEP}]
61 - >=dev-python/freezegun-0.3.11[${PYTHON_USEDEP}]
62 - dev-python/pathlib2[${PYTHON_USEDEP}]
63 - >=dev-python/pytest-4.0.0[${PYTHON_USEDEP}]
64 - dev-python/pytest-mock[${PYTHON_USEDEP}]
65 - =dev-python/tox-${PV}-${PR}[${PYTHON_USEDEP}]
66 - )"
67 -
68 -src_prepare() {
69 - distutils-r1_src_prepare
70 -
71 - # broken without internet
72 - sed -i -e 's:test_provision_non_canonical_dep:_&:' \
73 - tests/unit/session/test_provision.py || die
74 - sed -i -e 's:test_provision_interrupt_child:_&:' \
75 - tests/integration/test_provision_int.py || die
76 - # broken with our mock version (?)
77 - sed -i -e 's:test_create_KeyboardInterrupt:_&:' \
78 - tests/unit/test_venv.py || die
79 - # broken with Gentoo Python layout
80 - sed -i -e 's:test_tox_get_python_executable:_&:' \
81 - -e 's:test_find_alias_on_path:_&:' \
82 - tests/unit/interpreters/test_interpreters.py || die
83 -
84 - export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
85 -}
86 -
87 -python_test() {
88 - distutils_install_for_testing
89 - pytest -vv --no-network || die "Testsuite failed under ${EPYTHON}"
90 -}