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/pytest-cov/files/, dev-python/pytest-cov/
Date: Sat, 28 Mar 2020 18:49:10
Message-Id: 1585421306.84c5be23e827cd487c484f647308f1d521e86382.mgorny@gentoo
1 commit: 84c5be23e827cd487c484f647308f1d521e86382
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 28 18:32:39 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 28 18:48:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84c5be23
7
8 dev-python/pytest-cov: Remove redundant versions
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest-cov/Manifest | 2 -
13 .../files/fix-for-deprecation-warnings.patch | 16 ------
14 .../pytest-cov-2.6.1-disable-broken-tests.patch | 22 --------
15 dev-python/pytest-cov/pytest-cov-2.3.1.ebuild | 60 ----------------------
16 dev-python/pytest-cov/pytest-cov-2.6.1.ebuild | 58 ---------------------
17 5 files changed, 158 deletions(-)
18
19 diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest
20 index 80209ad865e..89a5464f923 100644
21 --- a/dev-python/pytest-cov/Manifest
22 +++ b/dev-python/pytest-cov/Manifest
23 @@ -1,3 +1 @@
24 -DIST pytest-cov-2.3.1.tar.gz 35378 BLAKE2B 758846db0b06ef9534823d3458ad6211b0cfc14b551a6e1737573a5c1c5bb59c23b26d3448ff8a67d65a4293ce75dd8c79d4916d3d9a7db5021db6b907152230 SHA512 79770beb53fbb43b5d68311c2efd0accbfd890ab6dad299da8c1c0b3d26b54d984807313b1507900cda7004bfb50fedc0bd4341cfcfce47849a4f24fc8184f11
25 -DIST pytest-cov-2.6.1.tar.gz 35307 BLAKE2B 11974ff70ed5609d7db3c4c35f5b528b0ec36b48cfaf06974a090127706e0964841347592ac3f1e086f46800857ee10c05404045b6a4b467ffa278c2ee1e1957 SHA512 2dfd16e013d8bfbe5d14990f419291b651dd11560328a7e59b5449016d51b17f84d4ee3866fda866c3530389d206b1c4c67c84b23f097281c3963ffd19ea8caa
26 DIST pytest-cov-2.8.1.tar.gz 47661 BLAKE2B 590fd50b69d01a71b20982d8cdbed0698ebe24c290d791bb44c96aa1aaaf77cf1f379d565eb775864c6945facf6d271115236cb44b95e4a4c9bb7cc6fd591acf SHA512 769a17c2095dbe990df148a0105c9e3dc88ac2265ac77ac31448dab6abf6d8cc0d54f5c6ff01fd708bd38700bfea93f57d3bb702bd9bb0a708257d094b2376ec
27
28 diff --git a/dev-python/pytest-cov/files/fix-for-deprecation-warnings.patch b/dev-python/pytest-cov/files/fix-for-deprecation-warnings.patch
29 deleted file mode 100644
30 index a555ca53fc9..00000000000
31 --- a/dev-python/pytest-cov/files/fix-for-deprecation-warnings.patch
32 +++ /dev/null
33 @@ -1,16 +0,0 @@
34 -diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
35 -index 6cbf341..614e53c 100644
36 ---- a/tests/test_pytest_cov.py
37 -+++ b/tests/test_pytest_cov.py
38 -@@ -337,7 +337,10 @@ def test_central_nonspecific(testdir):
39 - ])
40 -
41 - # multi-module coverage report
42 -- assert any(line.startswith('TOTAL ') for line in result.stdout.lines[-4:])
43 -+ # Fix test failure due to pytest deprecation warnings being
44 -+ # added to the expected output. Look in entire output lines instead.
45 -+ # assert any(line.startswith('TOTAL ') for line in result.stdout.lines[-4:])
46 -+ assert any(line.startswith('TOTAL ') for line in result.stdout.lines[-10:])
47 -
48 - assert result.ret == 0
49 -
50
51 diff --git a/dev-python/pytest-cov/files/pytest-cov-2.6.1-disable-broken-tests.patch b/dev-python/pytest-cov/files/pytest-cov-2.6.1-disable-broken-tests.patch
52 deleted file mode 100644
53 index 1d8e36b451b..00000000000
54 --- a/dev-python/pytest-cov/files/pytest-cov-2.6.1-disable-broken-tests.patch
55 +++ /dev/null
56 @@ -1,22 +0,0 @@
57 -diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
58 -index 2896ac9..5f753e8 100644
59 ---- a/tests/test_pytest_cov.py
60 -+++ b/tests/test_pytest_cov.py
61 -@@ -699,7 +699,7 @@ parallel = true
62 - assert result.ret == 0
63 -
64 -
65 --def test_central_subprocess_change_cwd_with_pythonpath(testdir, monkeypatch):
66 -+def xtest_central_subprocess_change_cwd_with_pythonpath(testdir, monkeypatch):
67 - stuff = testdir.mkdir('stuff')
68 - parent_script = stuff.join('parent_script.py')
69 - parent_script.write(SCRIPT_PARENT_CHANGE_CWD_IMPORT_CHILD)
70 -@@ -829,7 +829,7 @@ def test_invalid_coverage_source(testdir):
71 -
72 -
73 - @pytest.mark.skipif("'dev' in pytest.__version__")
74 --def test_dist_missing_data(testdir):
75 -+def xtest_dist_missing_data(testdir):
76 - venv_path = os.path.join(str(testdir.tmpdir), 'venv')
77 - virtualenv.create_environment(venv_path)
78 - if sys.platform == 'win32':
79
80 diff --git a/dev-python/pytest-cov/pytest-cov-2.3.1.ebuild b/dev-python/pytest-cov/pytest-cov-2.3.1.ebuild
81 deleted file mode 100644
82 index f3edac31813..00000000000
83 --- a/dev-python/pytest-cov/pytest-cov-2.3.1.ebuild
84 +++ /dev/null
85 @@ -1,60 +0,0 @@
86 -# Copyright 1999-2020 Gentoo Authors
87 -# Distributed under the terms of the GNU General Public License v2
88 -
89 -EAPI=6
90 -
91 -PYTHON_COMPAT=( python2_7 python3_6 pypy3 )
92 -
93 -inherit distutils-r1
94 -
95 -DESCRIPTION="py.test plugin for coverage reporting"
96 -HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.org/project/pytest-cov/"
97 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
98 -
99 -LICENSE="MIT"
100 -SLOT="0"
101 -KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ppc ppc64 s390 sparc x86"
102 -IUSE="doc test"
103 -RESTRICT="!test? ( test )"
104 -
105 -RDEPEND="
106 - >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
107 - >=dev-python/pytest-2.7.3[${PYTHON_USEDEP}]
108 - >=dev-python/cov-core-1.14.0[${PYTHON_USEDEP}]
109 - >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}]
110 - doc? (
111 - dev-python/sphinx[${PYTHON_USEDEP}]
112 - dev-python/sphinx-py3doc-enhanced-theme[${PYTHON_USEDEP}]
113 - )
114 -"
115 -DEPEND="
116 - dev-python/setuptools[${PYTHON_USEDEP}]
117 - test? (
118 - dev-python/virtualenv[${PYTHON_USEDEP}]
119 - dev-python/process-tests[${PYTHON_USEDEP}]
120 - || (
121 - >=dev-python/pytest-2.8.0[${PYTHON_USEDEP}]
122 - dev-python/pytest-cache[${PYTHON_USEDEP}]
123 - )
124 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
125 - )
126 -"
127 -
128 -PATCHES=(
129 - "${FILESDIR}/fix-for-deprecation-warnings.patch"
130 -)
131 -
132 -python_compile_all() {
133 - use doc && sphinx-build -b html docs _build/html
134 -}
135 -
136 -python_test() {
137 - PYTHONPATH="${S}/tests:${BUILD_DIR}/lib" \
138 - PYTEST_PLUGINS=${PN/-/_} \
139 - py.test -v -v -x || die "Tests failed under ${EPYTHON}"
140 -}
141 -
142 -python_install_all() {
143 - use doc && HTML_DOCS=( _build/html/. )
144 - distutils-r1_python_install_all
145 -}
146
147 diff --git a/dev-python/pytest-cov/pytest-cov-2.6.1.ebuild b/dev-python/pytest-cov/pytest-cov-2.6.1.ebuild
148 deleted file mode 100644
149 index 2afc94aafe0..00000000000
150 --- a/dev-python/pytest-cov/pytest-cov-2.6.1.ebuild
151 +++ /dev/null
152 @@ -1,58 +0,0 @@
153 -# Copyright 1999-2020 Gentoo Authors
154 -# Distributed under the terms of the GNU General Public License v2
155 -
156 -EAPI=7
157 -
158 -PYTHON_COMPAT=( python2_7 python3_{6,7} pypy3 )
159 -
160 -inherit distutils-r1
161 -
162 -DESCRIPTION="py.test plugin for coverage reporting"
163 -HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.org/project/pytest-cov/"
164 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
165 -
166 -LICENSE="MIT"
167 -SLOT="0"
168 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
169 -IUSE="doc test"
170 -RESTRICT="!test? ( test )"
171 -
172 -RDEPEND="
173 - >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
174 - >=dev-python/pytest-3.6[${PYTHON_USEDEP}]
175 - >=dev-python/coverage-4.4[${PYTHON_USEDEP}]
176 - doc? (
177 - dev-python/sphinx[${PYTHON_USEDEP}]
178 - dev-python/sphinx-py3doc-enhanced-theme[${PYTHON_USEDEP}]
179 - )
180 -"
181 -DEPEND="
182 - dev-python/setuptools[${PYTHON_USEDEP}]
183 - test? (
184 - dev-python/virtualenv[${PYTHON_USEDEP}]
185 - dev-python/fields[${PYTHON_USEDEP}]
186 - dev-python/process-tests[${PYTHON_USEDEP}]
187 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
188 - )
189 -"
190 -
191 -PATCHES=(
192 - # Bug 597708
193 - "${FILESDIR}/${PN}-2.6.1-disable-broken-tests.patch"
194 -)
195 -
196 -python_compile_all() {
197 - use doc && sphinx-build -b html docs _build/html
198 -}
199 -
200 -python_test() {
201 - distutils_install_for_testing
202 - PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}" \
203 - PYTEST_PLUGINS=${PN/-/_} \
204 - pytest -vv || die "Tests failed under ${EPYTHON}"
205 -}
206 -
207 -python_install_all() {
208 - use doc && HTML_DOCS=( _build/html/. )
209 - distutils-r1_python_install_all
210 -}