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, 03 May 2020 10:24:27
Message-Id: 1588501450.b0223b0898a01fccce9d5bd138c9346ae442382e.mgorny@gentoo
1 commit: b0223b0898a01fccce9d5bd138c9346ae442382e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 3 07:00:44 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun May 3 10:24:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0223b08
7
8 dev-python/tox: Bump to 3.15.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.15.0.ebuild | 74 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/dev-python/tox/Manifest b/dev-python/tox/Manifest
17 index 3df077b0ec5..496932953f6 100644
18 --- a/dev-python/tox/Manifest
19 +++ b/dev-python/tox/Manifest
20 @@ -3,4 +3,5 @@ DIST tox-3.12.1.tar.gz 283964 BLAKE2B b7cb2394a721f281552d1f614a6059f7025390a4ea
21 DIST tox-3.14.4.tar.gz 289600 BLAKE2B 413782a524b70b4e301f5a4bda9c763dc7e670d7fe7785ce288b54d8a4940db0b8fed5f075c3f2cdea1d2242e35fa50765de1cd5ea544d1f433faa9a31894d61 SHA512 94e71d06ea62c275651e574359ffa224702eb4062398b44dff9504ce9e55df94d9227fc7cdbf02bc3d44244c29f29b8d3bdef3a66d94ad2dba6971860444ae7d
22 DIST tox-3.14.5.tar.gz 290075 BLAKE2B 7e412e85981fe11cba4dc6a4ab3df824678b11fe59bd7d909361029f30e407ffe62a24967e5a447cc643500dfb61326d47fb276bb669311780ac49aa2075fe09 SHA512 cbd0e4c53bb82a302016f380a246e9a9630b8f0c6631195af2dfa12c090cc76c3d9da8362e11c42e74bacbb3f9be504eb67e07de1d2cbac7b5f05341ea2970c4
23 DIST tox-3.14.6.tar.gz 290396 BLAKE2B e71efc910adcbb3e80d8945aac248541edbba04e3309b008a5cc67d0d93d9b8676d249c45e82e2c91c2c17946e0cc8f71be7714da2d9ac6651816e4f8f262be0 SHA512 0f517141db52bfc5a728e102dcaaa95a88b21a669c59e730376953f8d14b3d162e0b49272fb4078e90aa6f4244c91caaaec9fdf31497331f26d58861762a8dcc
24 +DIST tox-3.15.0.tar.gz 291890 BLAKE2B 9c42c587332eafcfd02d2d8a42588af6253baf9f62e82eb8a8bf10da291b4868b1fe319e38a583bc67bb26ab868b8a123feccd5bd008ce618ceb46d3121c68d2 SHA512 cb21574301d953b361eb5e1d89eefe22e68ae5871036f03d5753ee97c888cadde548d62a50622dd65b3c488143bbbdf8d309bafa3b6a4807871c9e78b6fcdb9c
25 DIST tox-3.2.1.tar.gz 268827 BLAKE2B 764835d04fb0c17f32eb8e2041b83f90d6a729b781a5b5b95e9ecb1162f1c29ed595d4a6369524b390a31853b8003485b27a3a12d63e84f49e92675f1a9bee13 SHA512 79f5a1c8f6e818fbb8444754e3767d880fc1fdfe63b46c518d37440fe2b2f3ce572865aff83d9492c24486fded49893cc31bd9b11254bac4db507260304bc76f
26
27 diff --git a/dev-python/tox/tox-3.15.0.ebuild b/dev-python/tox/tox-3.15.0.ebuild
28 new file mode 100644
29 index 00000000000..17f2cb7f0ce
30 --- /dev/null
31 +++ b/dev-python/tox/tox-3.15.0.ebuild
32 @@ -0,0 +1,74 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +DISTUTILS_USE_SETUPTOOLS=rdepend
39 +PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="virtualenv-based automation of test activities"
44 +HOMEPAGE="https://tox.readthedocs.io https://github.com/tox-dev/tox https://pypi.org/project/tox/"
45 +SRC_URI="https://github.com/tox-dev/tox/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
50 +
51 +# doc disabled because of missing deps in tree
52 +IUSE="test"
53 +RESTRICT="!test? ( test )"
54 +
55 +RDEPEND="
56 + dev-python/filelock[${PYTHON_USEDEP}]
57 + $(python_gen_cond_dep '
58 + >=dev-python/importlib_metadata-1.1[${PYTHON_USEDEP}]
59 + ' python3_{5,6,7} pypy3)
60 + dev-python/packaging[${PYTHON_USEDEP}]
61 + <dev-python/pluggy-1.0[${PYTHON_USEDEP}]
62 + >=dev-python/pluggy-0.12[${PYTHON_USEDEP}]
63 + dev-python/pip[${PYTHON_USEDEP}]
64 + dev-python/py[${PYTHON_USEDEP}]
65 + >=dev-python/six-1.14[${PYTHON_USEDEP}]
66 + dev-python/toml[${PYTHON_USEDEP}]
67 + >=dev-python/virtualenv-16.0.0[${PYTHON_USEDEP}]"
68 +# TODO: figure out how to make tests work without the package being
69 +# installed first.
70 +BDEPEND="
71 + test? (
72 + ${RDEPEND}
73 + >=dev-python/flaky-3.4.0[${PYTHON_USEDEP}]
74 + <dev-python/flaky-4
75 + >=dev-python/freezegun-0.3.11[${PYTHON_USEDEP}]
76 + dev-python/pathlib2[${PYTHON_USEDEP}]
77 + >=dev-python/pytest-4.0.0[${PYTHON_USEDEP}]
78 + <dev-python/pytest-mock-2.0[${PYTHON_USEDEP}]
79 + =dev-python/tox-${PV}-${PR}[${PYTHON_USEDEP}]
80 + )"
81 +
82 +PATCHES=(
83 + "${FILESDIR}/${PN}-3.9.0-strip-setuptools_scm.patch"
84 +)
85 +
86 +src_prepare() {
87 + distutils-r1_src_prepare
88 +
89 + # broken without internet
90 + sed -i -e 's:test_provision_non_canonical_dep:_&:' \
91 + tests/unit/session/test_provision.py || die
92 + sed -i -e 's:test_provision_interrupt_child:_&:' \
93 + tests/integration/test_provision_int.py || die
94 + # broken with our mock version (?)
95 + sed -i -e 's:test_create_KeyboardInterrupt:_&:' \
96 + tests/unit/test_venv.py || die
97 + # broken with Gentoo Python layout
98 + sed -i -e 's:test_tox_get_python_executable:_&:' \
99 + -e 's:test_find_alias_on_path:_&:' \
100 + tests/unit/interpreters/test_interpreters.py || die
101 +}
102 +
103 +python_test() {
104 + distutils_install_for_testing
105 + pytest -vv --no-network || die "Testsuite failed under ${EPYTHON}"
106 +}