1 |
commit: 3cae20670d1f167c0d467bfded7836a8381277f8 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 25 11:34:05 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 25 12:18:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cae2067 |
7 |
|
8 |
dev-python/setuptools: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/setuptools/Manifest | 4 -- |
13 |
.../files/setuptools-46.2.0-test-warning.patch | 82 ---------------------- |
14 |
dev-python/setuptools/setuptools-46.1.3.ebuild | 66 ----------------- |
15 |
dev-python/setuptools/setuptools-46.2.0.ebuild | 71 ------------------- |
16 |
dev-python/setuptools/setuptools-46.3.0.ebuild | 67 ------------------ |
17 |
dev-python/setuptools/setuptools-46.3.1.ebuild | 67 ------------------ |
18 |
6 files changed, 357 deletions(-) |
19 |
|
20 |
diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest |
21 |
index 43ec872c82c..b559fac4d6a 100644 |
22 |
--- a/dev-python/setuptools/Manifest |
23 |
+++ b/dev-python/setuptools/Manifest |
24 |
@@ -1,7 +1,3 @@ |
25 |
DIST setuptools-44.0.0.zip 858893 BLAKE2B 02ba2a838487ba9e80d9ca3b8598cecbec4d286f2734be439d2b73f3f7f0ca80e80ea71a0c2322093deb548503c82d6eb32b1585992979b053f14f49baa00baa SHA512 bb48e7763d258e654472bc416d16ec8708eefa95d1eb03cb6e81b623fd636cefc51a0bd67887084ab0214e256e2030a8f655184c3b59ad6937abab6a6178f3a1 |
26 |
DIST setuptools-44.1.0.zip 858569 BLAKE2B f59f154e121502a731e51294ccd293d60ffccadacf51e23b53bf7ceba38858948b86783238061136c827ac3373ea7ea8e6253d4bb53f3f1dd69284568ec65a68 SHA512 4dfb0f42d334b835758e865a26ecd1e725711fa2b9c38ddc273b8b3849fba04527bc97436d11ba1e98f1a42922aa0f0b9032e32998273c705fac6e10735eacbf |
27 |
-DIST setuptools-46.1.3.zip 862431 BLAKE2B 89d65360e15b22f535312627723ad61df84dce3ee9d5850dd0c60dace0f8c04a502ac6246afe1add1e4fbd0e0dc9530afc8bfd2a4cf058f93cde2ff4184e21f2 SHA512 7f8f99313ce2af2cbfa86ff9a3135bc3445804e9323a375b498d20dad7f8fc819481da0c2a057160397e98b6178c1eb453a093652cfdfe7896c9d31732f7ad8c |
28 |
-DIST setuptools-46.2.0.zip 865117 BLAKE2B 490387146003e07a5391afa798d1e45a76e9afc81c3e0c484005b3b0bff15f172db2016907199fe2216a4e17379987a53d58149d285be6dcfe7c37a64ce7c359 SHA512 d8d89a99c6a3be0a343d6a0e17117ba00393188d69c8995a5dbe9a7772c002fc301a53963288231e3f8053ffda4cafd5406edb2f4650f2036c665f8e3eb5822e |
29 |
-DIST setuptools-46.3.0.zip 864654 BLAKE2B ce916b8f84f777a4baf6dd7458d5a74d7afbc0ede3a60238ce1e6ddf8b4c9837cd88508d4af4577be446d811fc9b997e9361775abaf9308bc9af6f66ca173bfb SHA512 57bc3e1a585a99d9434ed55af037a71665ee7e76ac9dbf19c87260b3d4331183f9eb3c7389c3455407f379ba28a74e90e27346afc614003ae259ab92e3dc16ec |
30 |
-DIST setuptools-46.3.1.zip 864714 BLAKE2B 538ede10db4e82d75eec613f909df7d9de8d2821fea74167c30d80fd6c9bf964345ac2054d74d673a2257d32a022e719a0f14db81bfcb6355fe700eace96df2e SHA512 084210cc57021eeafbed92b6419f91eb100a53f3425579331bcf1b6bae314371c3881e5f4680d923a4d4dbe8e94d881d87b3c7aa4ad60500bec68bad399caa6d |
31 |
DIST setuptools-46.4.0.zip 865912 BLAKE2B 452d36132f5648c79c7e1616a93ff6a39ab2f64b2864ee397b4f57e7f72c47d418ff274f5decd35b0591b09800ad2a7cbd71c283550bd0e60a4d85744a57d4ec SHA512 31e58fd1d682089a45d23aa07c3c2c4c952ca016fa4c3416b2cba979d8b57369f80baef98ce857912e506e87d6cb456497a1ce1c75a0cdf1ee25d4e753b58726 |
32 |
|
33 |
diff --git a/dev-python/setuptools/files/setuptools-46.2.0-test-warning.patch b/dev-python/setuptools/files/setuptools-46.2.0-test-warning.patch |
34 |
deleted file mode 100644 |
35 |
index e27db9a41da..00000000000 |
36 |
--- a/dev-python/setuptools/files/setuptools-46.2.0-test-warning.patch |
37 |
+++ /dev/null |
38 |
@@ -1,82 +0,0 @@ |
39 |
-From 56bcce894e99059a8abda29d8b919b0bee7fd1b9 Mon Sep 17 00:00:00 2001 |
40 |
-From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@×××××××.cz> |
41 |
-Date: Tue, 12 May 2020 13:33:04 +0200 |
42 |
-Subject: [PATCH] Reuse @ack_2to3 in TestDevelop.test_2to3_user_mode |
43 |
- |
44 |
-Fixes https://github.com/pypa/setuptools/issues/2100 |
45 |
---- |
46 |
- changelog.d/2105.misc.rst | 1 + |
47 |
- setuptools/tests/__init__.py | 4 +++- |
48 |
- setuptools/tests/test_develop.py | 2 ++ |
49 |
- setuptools/tests/test_test.py | 4 +--- |
50 |
- 4 files changed, 7 insertions(+), 4 deletions(-) |
51 |
- create mode 100644 changelog.d/2105.misc.rst |
52 |
- |
53 |
-diff --git a/changelog.d/2105.misc.rst b/changelog.d/2105.misc.rst |
54 |
-new file mode 100644 |
55 |
-index 000000000..75eaf2cb3 |
56 |
---- /dev/null |
57 |
-+++ b/changelog.d/2105.misc.rst |
58 |
-@@ -0,0 +1 @@ |
59 |
-+Filter ``2to3`` deprecation warnings from ``TestDevelop.test_2to3_user_mode``. |
60 |
-diff --git a/setuptools/tests/__init__.py b/setuptools/tests/__init__.py |
61 |
-index 9c77b51f8..6377d7857 100644 |
62 |
---- a/setuptools/tests/__init__.py |
63 |
-+++ b/setuptools/tests/__init__.py |
64 |
-@@ -6,7 +6,7 @@ |
65 |
- |
66 |
- |
67 |
- __all__ = [ |
68 |
-- 'fail_on_ascii', 'py2_only', 'py3_only' |
69 |
-+ 'fail_on_ascii', 'py2_only', 'py3_only', 'ack_2to3' |
70 |
- ] |
71 |
- |
72 |
- |
73 |
-@@ -16,3 +16,5 @@ |
74 |
- |
75 |
- py2_only = pytest.mark.skipif(not PY2, reason="Test runs on Python 2 only") |
76 |
- py3_only = pytest.mark.skipif(not PY3, reason="Test runs on Python 3 only") |
77 |
-+ |
78 |
-+ack_2to3 = pytest.mark.filterwarnings('ignore:2to3 support is deprecated') |
79 |
-diff --git a/setuptools/tests/test_develop.py b/setuptools/tests/test_develop.py |
80 |
-index 792975fd1..bb89a865b 100644 |
81 |
---- a/setuptools/tests/test_develop.py |
82 |
-+++ b/setuptools/tests/test_develop.py |
83 |
-@@ -17,6 +17,7 @@ |
84 |
- |
85 |
- from setuptools.command.develop import develop |
86 |
- from setuptools.dist import Distribution |
87 |
-+from setuptools.tests import ack_2to3 |
88 |
- from . import contexts |
89 |
- from . import namespaces |
90 |
- |
91 |
-@@ -65,6 +66,7 @@ class TestDevelop: |
92 |
- @pytest.mark.skipif( |
93 |
- in_virtualenv or in_venv, |
94 |
- reason="Cannot run when invoked in a virtualenv or venv") |
95 |
-+ @ack_2to3 |
96 |
- def test_2to3_user_mode(self, test_env): |
97 |
- settings = dict( |
98 |
- name='foo', |
99 |
-diff --git a/setuptools/tests/test_test.py b/setuptools/tests/test_test.py |
100 |
-index 0f77d8ff3..892fd120d 100644 |
101 |
---- a/setuptools/tests/test_test.py |
102 |
-+++ b/setuptools/tests/test_test.py |
103 |
-@@ -10,6 +10,7 @@ |
104 |
- |
105 |
- from setuptools.command.test import test |
106 |
- from setuptools.dist import Distribution |
107 |
-+from setuptools.tests import ack_2to3 |
108 |
- |
109 |
- from .textwrap import DALS |
110 |
- |
111 |
-@@ -73,9 +74,6 @@ def quiet_log(): |
112 |
- log.set_verbosity(0) |
113 |
- |
114 |
- |
115 |
--ack_2to3 = pytest.mark.filterwarnings('ignore:2to3 support is deprecated') |
116 |
-- |
117 |
-- |
118 |
- @pytest.mark.usefixtures('sample_test', 'quiet_log') |
119 |
- @ack_2to3 |
120 |
- def test_test(capfd): |
121 |
|
122 |
diff --git a/dev-python/setuptools/setuptools-46.1.3.ebuild b/dev-python/setuptools/setuptools-46.1.3.ebuild |
123 |
deleted file mode 100644 |
124 |
index cec7f007492..00000000000 |
125 |
--- a/dev-python/setuptools/setuptools-46.1.3.ebuild |
126 |
+++ /dev/null |
127 |
@@ -1,66 +0,0 @@ |
128 |
-# Copyright 1999-2020 Gentoo Authors |
129 |
-# Distributed under the terms of the GNU General Public License v2 |
130 |
- |
131 |
-EAPI=7 |
132 |
-DISTUTILS_USE_SETUPTOOLS=no |
133 |
-PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) |
134 |
-PYTHON_REQ_USE="xml(+)" |
135 |
- |
136 |
-inherit distutils-r1 |
137 |
- |
138 |
-DESCRIPTION="Collection of extensions to Distutils" |
139 |
-HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" |
140 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
141 |
- |
142 |
-LICENSE="MIT" |
143 |
-SLOT="0" |
144 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
145 |
-IUSE="test" |
146 |
-RESTRICT="!test? ( test )" |
147 |
- |
148 |
-BDEPEND=" |
149 |
- app-arch/unzip |
150 |
- test? ( |
151 |
- dev-python/mock[${PYTHON_USEDEP}] |
152 |
- dev-python/pip[${PYTHON_USEDEP}] |
153 |
- >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}] |
154 |
- dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
155 |
- dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
156 |
- dev-python/wheel[${PYTHON_USEDEP}] |
157 |
- ) |
158 |
-" |
159 |
-PDEPEND=" |
160 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" |
161 |
- |
162 |
-# Force in-source build because build system modifies sources. |
163 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
164 |
- |
165 |
-DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) |
166 |
- |
167 |
-python_prepare_all() { |
168 |
- # disable tests requiring a network connection |
169 |
- rm setuptools/tests/test_packageindex.py || die |
170 |
- |
171 |
- # don't run integration tests |
172 |
- rm setuptools/tests/test_integration.py || die |
173 |
- |
174 |
- # xpass-es for me |
175 |
- sed -i -e '/xfail.*710/d' setuptools/tests/test_archive_util.py || die |
176 |
- |
177 |
- # avoid pointless dep on flake8 |
178 |
- sed -i -e 's:--flake8::' pytest.ini || die |
179 |
- |
180 |
- distutils-r1_python_prepare_all |
181 |
-} |
182 |
- |
183 |
-python_test() { |
184 |
- distutils_install_for_testing |
185 |
- # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg |
186 |
- # It tries to sandbox the test in a tempdir |
187 |
- HOME="${PWD}" pytest -vv --disable-warnings ${PN} || die "Tests failed under ${EPYTHON}" |
188 |
-} |
189 |
- |
190 |
-python_install() { |
191 |
- export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 |
192 |
- distutils-r1_python_install |
193 |
-} |
194 |
|
195 |
diff --git a/dev-python/setuptools/setuptools-46.2.0.ebuild b/dev-python/setuptools/setuptools-46.2.0.ebuild |
196 |
deleted file mode 100644 |
197 |
index ef030388abe..00000000000 |
198 |
--- a/dev-python/setuptools/setuptools-46.2.0.ebuild |
199 |
+++ /dev/null |
200 |
@@ -1,71 +0,0 @@ |
201 |
-# Copyright 1999-2020 Gentoo Authors |
202 |
-# Distributed under the terms of the GNU General Public License v2 |
203 |
- |
204 |
-EAPI=7 |
205 |
-DISTUTILS_USE_SETUPTOOLS=no |
206 |
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) |
207 |
-PYTHON_REQ_USE="xml(+)" |
208 |
- |
209 |
-inherit distutils-r1 |
210 |
- |
211 |
-DESCRIPTION="Collection of extensions to Distutils" |
212 |
-HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" |
213 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
214 |
- |
215 |
-LICENSE="MIT" |
216 |
-SLOT="0" |
217 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
218 |
-IUSE="test" |
219 |
-RESTRICT="!test? ( test )" |
220 |
- |
221 |
-BDEPEND=" |
222 |
- app-arch/unzip |
223 |
- test? ( |
224 |
- dev-python/mock[${PYTHON_USEDEP}] |
225 |
- dev-python/pip[${PYTHON_USEDEP}] |
226 |
- >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}] |
227 |
- dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
228 |
- dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
229 |
- dev-python/wheel[${PYTHON_USEDEP}] |
230 |
- ) |
231 |
-" |
232 |
-PDEPEND=" |
233 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" |
234 |
- |
235 |
-# Force in-source build because build system modifies sources. |
236 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
237 |
- |
238 |
-DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) |
239 |
- |
240 |
-PATCHES=( |
241 |
- "${FILESDIR}"/${P}-test-warning.patch |
242 |
-) |
243 |
- |
244 |
-python_prepare_all() { |
245 |
- # disable tests requiring a network connection |
246 |
- rm setuptools/tests/test_packageindex.py || die |
247 |
- |
248 |
- # don't run integration tests |
249 |
- rm setuptools/tests/test_integration.py || die |
250 |
- |
251 |
- # xpass-es for me on py3 |
252 |
- sed -e '/xfail.*710/s:(:(six.PY2, :' \ |
253 |
- -i setuptools/tests/test_archive_util.py || die |
254 |
- |
255 |
- # avoid pointless dep on flake8 |
256 |
- sed -i -e 's:--flake8::' pytest.ini || die |
257 |
- |
258 |
- distutils-r1_python_prepare_all |
259 |
-} |
260 |
- |
261 |
-python_test() { |
262 |
- distutils_install_for_testing |
263 |
- # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg |
264 |
- # It tries to sandbox the test in a tempdir |
265 |
- HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}" |
266 |
-} |
267 |
- |
268 |
-python_install() { |
269 |
- export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 |
270 |
- distutils-r1_python_install |
271 |
-} |
272 |
|
273 |
diff --git a/dev-python/setuptools/setuptools-46.3.0.ebuild b/dev-python/setuptools/setuptools-46.3.0.ebuild |
274 |
deleted file mode 100644 |
275 |
index 8562f41ff11..00000000000 |
276 |
--- a/dev-python/setuptools/setuptools-46.3.0.ebuild |
277 |
+++ /dev/null |
278 |
@@ -1,67 +0,0 @@ |
279 |
-# Copyright 1999-2020 Gentoo Authors |
280 |
-# Distributed under the terms of the GNU General Public License v2 |
281 |
- |
282 |
-EAPI=7 |
283 |
-DISTUTILS_USE_SETUPTOOLS=no |
284 |
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) |
285 |
-PYTHON_REQ_USE="xml(+)" |
286 |
- |
287 |
-inherit distutils-r1 |
288 |
- |
289 |
-DESCRIPTION="Collection of extensions to Distutils" |
290 |
-HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" |
291 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
292 |
- |
293 |
-LICENSE="MIT" |
294 |
-SLOT="0" |
295 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
296 |
-IUSE="test" |
297 |
-RESTRICT="!test? ( test )" |
298 |
- |
299 |
-BDEPEND=" |
300 |
- app-arch/unzip |
301 |
- test? ( |
302 |
- dev-python/mock[${PYTHON_USEDEP}] |
303 |
- dev-python/pip[${PYTHON_USEDEP}] |
304 |
- >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}] |
305 |
- dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
306 |
- dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
307 |
- dev-python/wheel[${PYTHON_USEDEP}] |
308 |
- ) |
309 |
-" |
310 |
-PDEPEND=" |
311 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" |
312 |
- |
313 |
-# Force in-source build because build system modifies sources. |
314 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
315 |
- |
316 |
-DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) |
317 |
- |
318 |
-python_prepare_all() { |
319 |
- # disable tests requiring a network connection |
320 |
- rm setuptools/tests/test_packageindex.py || die |
321 |
- |
322 |
- # don't run integration tests |
323 |
- rm setuptools/tests/test_integration.py || die |
324 |
- |
325 |
- # xpass-es for me on py3 |
326 |
- sed -e '/xfail.*710/s:(:(six.PY2, :' \ |
327 |
- -i setuptools/tests/test_archive_util.py || die |
328 |
- |
329 |
- # avoid pointless dep on flake8 |
330 |
- sed -i -e 's:--flake8::' pytest.ini || die |
331 |
- |
332 |
- distutils-r1_python_prepare_all |
333 |
-} |
334 |
- |
335 |
-python_test() { |
336 |
- distutils_install_for_testing |
337 |
- # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg |
338 |
- # It tries to sandbox the test in a tempdir |
339 |
- HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}" |
340 |
-} |
341 |
- |
342 |
-python_install() { |
343 |
- export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 |
344 |
- distutils-r1_python_install |
345 |
-} |
346 |
|
347 |
diff --git a/dev-python/setuptools/setuptools-46.3.1.ebuild b/dev-python/setuptools/setuptools-46.3.1.ebuild |
348 |
deleted file mode 100644 |
349 |
index 8562f41ff11..00000000000 |
350 |
--- a/dev-python/setuptools/setuptools-46.3.1.ebuild |
351 |
+++ /dev/null |
352 |
@@ -1,67 +0,0 @@ |
353 |
-# Copyright 1999-2020 Gentoo Authors |
354 |
-# Distributed under the terms of the GNU General Public License v2 |
355 |
- |
356 |
-EAPI=7 |
357 |
-DISTUTILS_USE_SETUPTOOLS=no |
358 |
-PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) |
359 |
-PYTHON_REQ_USE="xml(+)" |
360 |
- |
361 |
-inherit distutils-r1 |
362 |
- |
363 |
-DESCRIPTION="Collection of extensions to Distutils" |
364 |
-HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" |
365 |
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
366 |
- |
367 |
-LICENSE="MIT" |
368 |
-SLOT="0" |
369 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
370 |
-IUSE="test" |
371 |
-RESTRICT="!test? ( test )" |
372 |
- |
373 |
-BDEPEND=" |
374 |
- app-arch/unzip |
375 |
- test? ( |
376 |
- dev-python/mock[${PYTHON_USEDEP}] |
377 |
- dev-python/pip[${PYTHON_USEDEP}] |
378 |
- >=dev-python/pytest-3.7.0[${PYTHON_USEDEP}] |
379 |
- dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
380 |
- dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
381 |
- dev-python/wheel[${PYTHON_USEDEP}] |
382 |
- ) |
383 |
-" |
384 |
-PDEPEND=" |
385 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" |
386 |
- |
387 |
-# Force in-source build because build system modifies sources. |
388 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
389 |
- |
390 |
-DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) |
391 |
- |
392 |
-python_prepare_all() { |
393 |
- # disable tests requiring a network connection |
394 |
- rm setuptools/tests/test_packageindex.py || die |
395 |
- |
396 |
- # don't run integration tests |
397 |
- rm setuptools/tests/test_integration.py || die |
398 |
- |
399 |
- # xpass-es for me on py3 |
400 |
- sed -e '/xfail.*710/s:(:(six.PY2, :' \ |
401 |
- -i setuptools/tests/test_archive_util.py || die |
402 |
- |
403 |
- # avoid pointless dep on flake8 |
404 |
- sed -i -e 's:--flake8::' pytest.ini || die |
405 |
- |
406 |
- distutils-r1_python_prepare_all |
407 |
-} |
408 |
- |
409 |
-python_test() { |
410 |
- distutils_install_for_testing |
411 |
- # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg |
412 |
- # It tries to sandbox the test in a tempdir |
413 |
- HOME="${PWD}" pytest -vv ${PN} || die "Tests failed under ${EPYTHON}" |
414 |
-} |
415 |
- |
416 |
-python_install() { |
417 |
- export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 |
418 |
- distutils-r1_python_install |
419 |
-} |