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, 30 Jan 2021 21:00:37
Message-Id: 1612040430.40ce7e923ae7e606a5347c30db8a3295dd171fe9.mgorny@gentoo
1 commit: 40ce7e923ae7e606a5347c30db8a3295dd171fe9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 30 20:13:40 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 30 21:00:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40ce7e92
7
8 dev-python/pytest-cov: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest-cov/Manifest | 1 -
13 .../pytest-cov-2.8.1-disable-broken-tests.patch | 20 ---------
14 .../files/pytest-cov-2.8.1-latest-setuptools.patch | 40 -----------------
15 .../files/pytest-cov-2.8.1-python38.patch | 52 ----------------------
16 dev-python/pytest-cov/pytest-cov-2.8.1.ebuild | 51 ---------------------
17 5 files changed, 164 deletions(-)
18
19 diff --git a/dev-python/pytest-cov/Manifest b/dev-python/pytest-cov/Manifest
20 index 59e6aad0125..7328fa1a0df 100644
21 --- a/dev-python/pytest-cov/Manifest
22 +++ b/dev-python/pytest-cov/Manifest
23 @@ -1,4 +1,3 @@
24 DIST pytest-cov-2.10.1.tar.gz 56822 BLAKE2B 45eba205a2c6687882445d3554cedc04ad556854f5eac8eb0fab7fda84cdf2736b034dfdceb664293d1add153a5271403eb94585a863676ccfef9ab09727d165 SHA512 2dd575141754a417f34b414ba7e07291c273abdc63a6b7dc72d317c6ec10076b83c2ad78eeefdda7cee1fd6f56932d838602da4dd760a1c0d12095be94c22568
25 DIST pytest-cov-2.11.0.tar.gz 59018 BLAKE2B f2ecaff439e701c3b7d029e4c51cb019d5222a083815ae5771341b0fa0f1b658f921a6eab75c0b568b630cc7ca75887f25ae7fb6fcaa9c2e8dc419397c4c799a SHA512 001f4975d7ad1a573354074366f983887ec9035bcc29afe9bd1ae2654fab520b8f479c5037936e6131749e5205077e937304e73d366cb43460db1f24a58b02be
26 DIST pytest-cov-2.11.1.tar.gz 59143 BLAKE2B 21aeffbc9ccbe6a7c69a08fe3f0013204eb039c6dc9ddbb364a74ad10764e16ce7be0154e27beaab2c8f9b2a972131c4c2421c4aa4557efc18318556056a421b SHA512 19c465f5972ee0ee3b9a2f1a656fdf5457622cb449f73a6f707d377a617807dadda997a6875f0c081bc4c4f7039559c6e7ce820b818db42dfd053c016e1c3b4e
27 -DIST pytest-cov-2.8.1.tar.gz 47661 BLAKE2B 590fd50b69d01a71b20982d8cdbed0698ebe24c290d791bb44c96aa1aaaf77cf1f379d565eb775864c6945facf6d271115236cb44b95e4a4c9bb7cc6fd591acf SHA512 769a17c2095dbe990df148a0105c9e3dc88ac2265ac77ac31448dab6abf6d8cc0d54f5c6ff01fd708bd38700bfea93f57d3bb702bd9bb0a708257d094b2376ec
28
29 diff --git a/dev-python/pytest-cov/files/pytest-cov-2.8.1-disable-broken-tests.patch b/dev-python/pytest-cov/files/pytest-cov-2.8.1-disable-broken-tests.patch
30 deleted file mode 100644
31 index 660db5e5943..00000000000
32 --- a/dev-python/pytest-cov/files/pytest-cov-2.8.1-disable-broken-tests.patch
33 +++ /dev/null
34 @@ -1,20 +0,0 @@
35 -diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
36 -index e79e9aa..e5ef2c1 100644
37 ---- a/tests/test_pytest_cov.py
38 -+++ b/tests/test_pytest_cov.py
39 -@@ -820,6 +820,7 @@ parallel = true
40 - assert result.ret == 0
41 -
42 -
43 -+@×××××××××××.skip(reason="test is broken")
44 - def test_central_subprocess_change_cwd_with_pythonpath(testdir, monkeypatch):
45 - stuff = testdir.mkdir('stuff')
46 - parent_script = stuff.join('parent_script.py')
47 -@@ -951,6 +952,7 @@ def test_invalid_coverage_source(testdir):
48 - assert not matching_lines
49 -
50 -
51 -+@×××××××××××.skip(reason="test is broken")
52 - @pytest.mark.skipif("'dev' in pytest.__version__")
53 - @pytest.mark.skipif('sys.platform == "win32" and platform.python_implementation() == "PyPy"')
54 - def test_dist_missing_data(testdir):
55
56 diff --git a/dev-python/pytest-cov/files/pytest-cov-2.8.1-latest-setuptools.patch b/dev-python/pytest-cov/files/pytest-cov-2.8.1-latest-setuptools.patch
57 deleted file mode 100644
58 index 8a9618c3fd9..00000000000
59 --- a/dev-python/pytest-cov/files/pytest-cov-2.8.1-latest-setuptools.patch
60 +++ /dev/null
61 @@ -1,40 +0,0 @@
62 -diff --git a/setup.py b/setup.py
63 -index 1305b23..3a5803e 100644
64 ---- a/setup.py
65 -+++ b/setup.py
66 -@@ -29,7 +29,7 @@ def read(*names, **kwargs):
67 -
68 -
69 - class BuildWithPTH(build):
70 -- def run(self):
71 -+ def run(self, **kwargs):
72 - build.run(self)
73 - path = join(dirname(__file__), 'src', 'pytest-cov.pth')
74 - dest = join(self.build_lib, basename(path))
75 -@@ -37,7 +37,7 @@ class BuildWithPTH(build):
76 -
77 -
78 - class EasyInstallWithPTH(easy_install):
79 -- def run(self):
80 -+ def run(self, **kwargs):
81 - easy_install.run(self)
82 - path = join(dirname(__file__), 'src', 'pytest-cov.pth')
83 - dest = join(self.install_dir, basename(path))
84 -@@ -45,7 +45,7 @@ class EasyInstallWithPTH(easy_install):
85 -
86 -
87 - class InstallLibWithPTH(install_lib):
88 -- def run(self):
89 -+ def run(self, **kwargs):
90 - install_lib.run(self)
91 - path = join(dirname(__file__), 'src', 'pytest-cov.pth')
92 - dest = join(self.install_dir, basename(path))
93 -@@ -57,7 +57,7 @@ class InstallLibWithPTH(install_lib):
94 -
95 -
96 - class DevelopWithPTH(develop):
97 -- def run(self):
98 -+ def run(self, **kwargs):
99 - develop.run(self)
100 - path = join(dirname(__file__), 'src', 'pytest-cov.pth')
101 - dest = join(self.install_dir, basename(path))
102
103 diff --git a/dev-python/pytest-cov/files/pytest-cov-2.8.1-python38.patch b/dev-python/pytest-cov/files/pytest-cov-2.8.1-python38.patch
104 deleted file mode 100644
105 index 6292672b619..00000000000
106 --- a/dev-python/pytest-cov/files/pytest-cov-2.8.1-python38.patch
107 +++ /dev/null
108 @@ -1,52 +0,0 @@
109 -diff --git a/tests/test_pytest_cov.py b/tests/test_pytest_cov.py
110 -index e79e9aa..198478b 100644
111 ---- a/tests/test_pytest_cov.py
112 -+++ b/tests/test_pytest_cov.py
113 -@@ -662,6 +662,7 @@ def test_fail(p):
114 - ])
115 -
116 -
117 -+@×××××××××××.skipif("sys.hexversion >= 0x3080000", reason="Seems buggy on python3.8")
118 - @pytest.mark.skipif('sys.platform == "win32" or platform.python_implementation() == "PyPy"')
119 - def test_dist_combine_racecondition(testdir):
120 - script = testdir.makepyfile("""
121 -@@ -1018,6 +1019,7 @@ def test_funcarg_not_active(testdir):
122 - assert result.ret == 0
123 -
124 -
125 -+@×××××××××××.skipif("sys.hexversion >= 0x3080000", reason="https://bugs.python.org/issue38227")
126 - @pytest.mark.skipif("sys.version_info[0] < 3", reason="no context manager api on Python 2")
127 - @pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows")
128 - @pytest.mark.skipif('platform.python_implementation() == "PyPy"', reason="often deadlocks on PyPy")
129 -@@ -1059,6 +1061,7 @@ def test_run_target():
130 - assert result.ret == 0
131 -
132 -
133 -+@×××××××××××.skipif("sys.hexversion >= 0x3080000", reason="https://bugs.python.org/issue38227")
134 - @pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows")
135 - @pytest.mark.skipif('platform.python_implementation() == "PyPy"', reason="often deadlocks on PyPy")
136 - def test_multiprocessing_pool_terminate(testdir):
137 -@@ -1141,6 +1144,7 @@ def test_run_target():
138 - assert result.ret == 0
139 -
140 -
141 -+@×××××××××××.skipif("sys.hexversion >= 0x3080000", reason="https://bugs.python.org/issue38227")
142 - @pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows")
143 - def test_multiprocessing_process(testdir):
144 - pytest.importorskip('multiprocessing.util')
145 -@@ -1171,6 +1175,7 @@ def test_run_target():
146 - assert result.ret == 0
147 -
148 -
149 -+@×××××××××××.skipif("sys.hexversion >= 0x3080000", reason="https://bugs.python.org/issue38227")
150 - @pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows")
151 - def test_multiprocessing_process_no_source(testdir):
152 - pytest.importorskip('multiprocessing.util')
153 -@@ -1201,6 +1206,7 @@ def test_run_target():
154 - assert result.ret == 0
155 -
156 -
157 -+@×××××××××××.skipif("sys.hexversion >= 0x3080000", reason="https://bugs.python.org/issue38227")
158 - @pytest.mark.skipif('sys.platform == "win32"', reason="multiprocessing support is broken on Windows")
159 - def test_multiprocessing_process_with_terminate(testdir):
160 - pytest.importorskip('multiprocessing.util')
161
162 diff --git a/dev-python/pytest-cov/pytest-cov-2.8.1.ebuild b/dev-python/pytest-cov/pytest-cov-2.8.1.ebuild
163 deleted file mode 100644
164 index 960f0686259..00000000000
165 --- a/dev-python/pytest-cov/pytest-cov-2.8.1.ebuild
166 +++ /dev/null
167 @@ -1,51 +0,0 @@
168 -# Copyright 1999-2020 Gentoo Authors
169 -# Distributed under the terms of the GNU General Public License v2
170 -
171 -EAPI=7
172 -
173 -DISTUTILS_USE_SETUPTOOLS=rdepend
174 -PYTHON_COMPAT=( python3_{6..9} pypy3 )
175 -
176 -inherit distutils-r1
177 -
178 -DESCRIPTION="py.test plugin for coverage reporting"
179 -HOMEPAGE="https://github.com/pytest-dev/pytest-cov https://pypi.org/project/pytest-cov/"
180 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
181 -
182 -LICENSE="MIT"
183 -SLOT="0"
184 -KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86"
185 -IUSE="test"
186 -RESTRICT="!test? ( test )"
187 -
188 -RDEPEND="
189 - >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
190 - >=dev-python/pytest-3.6[${PYTHON_USEDEP}]
191 - >=dev-python/coverage-4.4[${PYTHON_USEDEP}]
192 -"
193 -DEPEND="
194 - test? (
195 - dev-python/virtualenv[${PYTHON_USEDEP}]
196 - dev-python/fields[${PYTHON_USEDEP}]
197 - >=dev-python/process-tests-2.0.2[${PYTHON_USEDEP}]
198 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
199 - )
200 -"
201 -
202 -PATCHES=(
203 - # Bug 597708
204 - "${FILESDIR}/${PN}-2.8.1-disable-broken-tests.patch"
205 - "${FILESDIR}/${PN}-2.8.1-latest-setuptools.patch"
206 - # https://github.com/pytest-dev/pytest-cov/issues/365
207 - "${FILESDIR}/pytest-cov-2.8.1-python38.patch"
208 -)
209 -
210 -distutils_enable_sphinx docs \
211 - dev-python/sphinx-py3doc-enhanced-theme
212 -
213 -python_test() {
214 - distutils_install_for_testing
215 - PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}" \
216 - PYTEST_PLUGINS=${PN/-/_} \
217 - pytest -vv || die "Tests failed under ${EPYTHON}"
218 -}