1 |
commit: 311068c535fedfbf2e84bb48dc0aaf6cd767ba01 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 31 11:53:51 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 31 11:54:56 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=311068c5 |
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 | 3 - |
13 |
dev-python/setuptools/setuptools-65.6.3-r1.ebuild | 130 ---------------------- |
14 |
dev-python/setuptools/setuptools-66.0.0.ebuild | 127 --------------------- |
15 |
dev-python/setuptools/setuptools-66.1.1.ebuild | 127 --------------------- |
16 |
4 files changed, 387 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest |
19 |
index 36277830e5cb..d78b5c61ef73 100644 |
20 |
--- a/dev-python/setuptools/Manifest |
21 |
+++ b/dev-python/setuptools/Manifest |
22 |
@@ -1,5 +1,2 @@ |
23 |
-DIST setuptools-65.6.3.tar.gz 2617699 BLAKE2B 0b64efcb5280f18e9d5660a10bca34d9864255279e4747cad99e3adf99ee33c0d174f0b61ef897894e7083ecfbaea16d59a195e3572c8083a4a8d811fe0c2702 SHA512 d0acfdc838454ffedabc4cc14c745071e07cc05e0a598c8bf83824788a8630d5516009e81213ae2a709f54298e754bd391cad205e7111363b64c853bd124aef3 |
24 |
DIST setuptools-65.7.0.tar.gz 2618315 BLAKE2B a0989c3fd0ab476d69885d022eccf1a89dc670a17d0b3e73bbe4ffb530e26a838fcd1cfffc4c2720ddd19cb8ba45d42bc31441f1e3bbc32fa71850d208f37cc8 SHA512 0eb2d9de9ef2565cf012db7d68ee18359a1432dd42ecd3fb7d490f73d57b0e7ba2a67e0401f66051127e913f29c2e221e88c0cbf523b0ac9abe7f00b6ab1ded8 |
25 |
-DIST setuptools-66.0.0.tar.gz 2642508 BLAKE2B 3d8dc8d365a4dd41334ed203dd18fe44eb024b560fa82f522c98058d60020a33eec4d1c7767289f0368dc77d5533898b34479e4792b388bab73180bffe8034ed SHA512 107717c61a47299dbb5baffe5948875abc26e6900121726aef7a6042b7156dd13031bbc69c5b930c0d3d2ee99c64741451383826e1d6fb65c12b026620a72ce1 |
26 |
-DIST setuptools-66.1.1.tar.gz 2644145 BLAKE2B 96198ae1832ab1b42f01178df7d17031bb8bb7f0c72f6f0f5f48f09735157b738e6914a088bfd00540f29cc684172cf2e1a85f803371a9bc2fbf3772d340dfc4 SHA512 b36da1623e2034dae9561ebcb3189b335fa65e844def584d172632a1af4aef4061567bbc801ec9125423030f03cf84a6d578a0283084866b8c21de3237feb650 |
27 |
DIST setuptools-67.0.0.tar.gz 2474556 BLAKE2B 470ddb7ba0cba6a8ea677a101a4639701bee7ace860df2616e097e9bb479275877e8904ec4f62c33fcd6c05b3aaac48bb7bf2360cc839eccde4231c9befc6fed SHA512 d006f417920f2bceae0f1d4ecfabbcec5d20866b0de92c002a8fdc0366b9206e3d59fd2b30886b4f71e437dc86b411a9653f7c809dcc2cfb12869571840ff9bf |
28 |
|
29 |
diff --git a/dev-python/setuptools/setuptools-65.6.3-r1.ebuild b/dev-python/setuptools/setuptools-65.6.3-r1.ebuild |
30 |
deleted file mode 100644 |
31 |
index 924ec384fd0e..000000000000 |
32 |
--- a/dev-python/setuptools/setuptools-65.6.3-r1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,130 +0,0 @@ |
35 |
-# Copyright 1999-2023 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
39 |
-EAPI=7 |
40 |
- |
41 |
-# please bump dev-python/ensurepip-setuptools along with this package! |
42 |
- |
43 |
-DISTUTILS_USE_PEP517=standalone |
44 |
-PYTHON_TESTED=( python3_{9..11} pypy3 ) |
45 |
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) |
46 |
-PYTHON_REQ_USE="xml(+)" |
47 |
- |
48 |
-inherit distutils-r1 multiprocessing |
49 |
- |
50 |
-DESCRIPTION="Collection of extensions to Distutils" |
51 |
-HOMEPAGE=" |
52 |
- https://github.com/pypa/setuptools/ |
53 |
- https://pypi.org/project/setuptools/ |
54 |
-" |
55 |
-SRC_URI=" |
56 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
57 |
-" |
58 |
- |
59 |
-LICENSE="MIT" |
60 |
-SLOT="0" |
61 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" |
62 |
-IUSE="test" |
63 |
-RESTRICT="!test? ( test )" |
64 |
- |
65 |
-RDEPEND=" |
66 |
- >=dev-python/appdirs-1.4.4-r2[${PYTHON_USEDEP}] |
67 |
- >=dev-python/jaraco-text-3.7.0-r1[${PYTHON_USEDEP}] |
68 |
- >=dev-python/more-itertools-8.12.0-r1[${PYTHON_USEDEP}] |
69 |
- >=dev-python/nspektr-0.3.0[${PYTHON_USEDEP}] |
70 |
- >=dev-python/ordered-set-4.0.2-r1[${PYTHON_USEDEP}] |
71 |
- <dev-python/packaging-22[${PYTHON_USEDEP}] |
72 |
- >=dev-python/packaging-21.3-r2[${PYTHON_USEDEP}] |
73 |
- >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] |
74 |
- $(python_gen_cond_dep ' |
75 |
- >=dev-python/importlib_metadata-4.11.1[${PYTHON_USEDEP}] |
76 |
- ' 3.8 3.9) |
77 |
- $(python_gen_cond_dep ' |
78 |
- >=dev-python/importlib_resources-5.4.0-r3[${PYTHON_USEDEP}] |
79 |
- ' 3.8) |
80 |
-" |
81 |
-BDEPEND=" |
82 |
- ${RDEPEND} |
83 |
- >=dev-python/wheel-0.37.1-r1[${PYTHON_USEDEP}] |
84 |
- test? ( |
85 |
- $(python_gen_cond_dep ' |
86 |
- dev-python/build[${PYTHON_USEDEP}] |
87 |
- >=dev-python/ini2toml-0.9[${PYTHON_USEDEP}] |
88 |
- >=dev-python/filelock-3.4.0[${PYTHON_USEDEP}] |
89 |
- >=dev-python/jaraco-envs-2.2[${PYTHON_USEDEP}] |
90 |
- >=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}] |
91 |
- dev-python/pip[${PYTHON_USEDEP}] |
92 |
- dev-python/pip-run[${PYTHON_USEDEP}] |
93 |
- dev-python/pytest[${PYTHON_USEDEP}] |
94 |
- dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
95 |
- dev-python/pytest-timeout[${PYTHON_USEDEP}] |
96 |
- dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
97 |
- dev-python/pytest-xdist[${PYTHON_USEDEP}] |
98 |
- >=dev-python/tomli-w-1.0.0[${PYTHON_USEDEP}] |
99 |
- >=dev-python/virtualenv-20[${PYTHON_USEDEP}] |
100 |
- dev-python/wheel[${PYTHON_USEDEP}] |
101 |
- ' "${PYTHON_TESTED[@]}") |
102 |
- ) |
103 |
-" |
104 |
-PDEPEND=" |
105 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] |
106 |
- dev-python/setuptools_scm[${PYTHON_USEDEP}] |
107 |
-" |
108 |
- |
109 |
-DOCS=( {CHANGES,README}.rst ) |
110 |
- |
111 |
-src_prepare() { |
112 |
- local PATCHES=( |
113 |
- # TODO: remove this when we're 100% PEP517 mode |
114 |
- "${FILESDIR}"/setuptools-62.4.0-py-compile.patch |
115 |
- ) |
116 |
- |
117 |
- distutils-r1_src_prepare |
118 |
- |
119 |
- # remove bundled dependencies, setuptools will switch to system deps |
120 |
- # automatically |
121 |
- rm -r */_vendor || die |
122 |
- |
123 |
- # remove the ugly */extern hack that breaks on unvendored deps |
124 |
- rm -r */extern || die |
125 |
- find -name '*.py' -exec sed \ |
126 |
- -e 's:from \w*[.]\+extern ::' -e 's:\w*[.]\+extern[.]::' \ |
127 |
- -i {} + || die |
128 |
- |
129 |
- export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
130 |
-} |
131 |
- |
132 |
-python_test() { |
133 |
- local -x SETUPTOOLS_USE_DISTUTILS=stdlib |
134 |
- |
135 |
- if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then |
136 |
- return |
137 |
- fi |
138 |
- |
139 |
- local EPYTEST_DESELECT=( |
140 |
- # network |
141 |
- # TODO: see if PRE_BUILT_SETUPTOOLS_* helps |
142 |
- setuptools/tests/config/test_apply_pyprojecttoml.py::test_apply_pyproject_equivalent_to_setupcfg |
143 |
- setuptools/tests/integration/test_pip_install_sdist.py::test_install_sdist |
144 |
- setuptools/tests/test_build_meta.py::test_legacy_editable_install |
145 |
- setuptools/tests/test_distutils_adoption.py |
146 |
- setuptools/tests/test_editable_install.py |
147 |
- setuptools/tests/test_setuptools.py::test_its_own_wheel_does_not_contain_tests |
148 |
- setuptools/tests/test_virtualenv.py::test_clean_env_install |
149 |
- setuptools/tests/test_virtualenv.py::test_no_missing_dependencies |
150 |
- setuptools/tests/test_virtualenv.py::test_test_command_install_requirements |
151 |
- # TODO |
152 |
- setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_basic |
153 |
- setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_ignore_errors |
154 |
- setuptools/tests/test_extern.py::test_distribution_picklable |
155 |
- # expects bundled deps in virtualenv |
156 |
- setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_in_sdist |
157 |
- setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_not_in_wheel |
158 |
- setuptools/tests/test_editable_install.py::test_editable_with_pyproject |
159 |
- # fails if python-xlib is installed |
160 |
- setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts |
161 |
- ) |
162 |
- |
163 |
- epytest -n "$(makeopts_jobs)" setuptools |
164 |
-} |
165 |
|
166 |
diff --git a/dev-python/setuptools/setuptools-66.0.0.ebuild b/dev-python/setuptools/setuptools-66.0.0.ebuild |
167 |
deleted file mode 100644 |
168 |
index 4e9a19e91a47..000000000000 |
169 |
--- a/dev-python/setuptools/setuptools-66.0.0.ebuild |
170 |
+++ /dev/null |
171 |
@@ -1,127 +0,0 @@ |
172 |
-# Copyright 1999-2023 Gentoo Authors |
173 |
-# Distributed under the terms of the GNU General Public License v2 |
174 |
- |
175 |
-# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
176 |
-EAPI=7 |
177 |
- |
178 |
-# please bump dev-python/ensurepip-setuptools along with this package! |
179 |
- |
180 |
-DISTUTILS_USE_PEP517=standalone |
181 |
-PYTHON_TESTED=( python3_{9..11} pypy3 ) |
182 |
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) |
183 |
-PYTHON_REQ_USE="xml(+)" |
184 |
- |
185 |
-inherit distutils-r1 multiprocessing |
186 |
- |
187 |
-DESCRIPTION="Collection of extensions to Distutils" |
188 |
-HOMEPAGE=" |
189 |
- https://github.com/pypa/setuptools/ |
190 |
- https://pypi.org/project/setuptools/ |
191 |
-" |
192 |
-SRC_URI=" |
193 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
194 |
-" |
195 |
- |
196 |
-LICENSE="MIT" |
197 |
-SLOT="0" |
198 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" |
199 |
-IUSE="test" |
200 |
-RESTRICT="!test? ( test )" |
201 |
- |
202 |
-RDEPEND=" |
203 |
- >=dev-python/jaraco-text-3.7.0-r1[${PYTHON_USEDEP}] |
204 |
- >=dev-python/more-itertools-8.12.0-r1[${PYTHON_USEDEP}] |
205 |
- >=dev-python/nspektr-0.3.0[${PYTHON_USEDEP}] |
206 |
- >=dev-python/ordered-set-4.0.2-r1[${PYTHON_USEDEP}] |
207 |
- <dev-python/packaging-22[${PYTHON_USEDEP}] |
208 |
- >=dev-python/packaging-21.3-r2[${PYTHON_USEDEP}] |
209 |
- >=dev-python/platformdirs-2.6.2-r1[${PYTHON_USEDEP}] |
210 |
- >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] |
211 |
- $(python_gen_cond_dep ' |
212 |
- >=dev-python/importlib_metadata-4.11.1[${PYTHON_USEDEP}] |
213 |
- ' 3.9) |
214 |
-" |
215 |
-BDEPEND=" |
216 |
- ${RDEPEND} |
217 |
- >=dev-python/wheel-0.37.1-r1[${PYTHON_USEDEP}] |
218 |
- test? ( |
219 |
- $(python_gen_cond_dep ' |
220 |
- dev-python/build[${PYTHON_USEDEP}] |
221 |
- >=dev-python/ini2toml-0.9[${PYTHON_USEDEP}] |
222 |
- >=dev-python/filelock-3.4.0[${PYTHON_USEDEP}] |
223 |
- >=dev-python/jaraco-envs-2.2[${PYTHON_USEDEP}] |
224 |
- >=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}] |
225 |
- dev-python/pip[${PYTHON_USEDEP}] |
226 |
- dev-python/pip-run[${PYTHON_USEDEP}] |
227 |
- dev-python/pytest[${PYTHON_USEDEP}] |
228 |
- dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
229 |
- dev-python/pytest-timeout[${PYTHON_USEDEP}] |
230 |
- dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
231 |
- dev-python/pytest-xdist[${PYTHON_USEDEP}] |
232 |
- >=dev-python/tomli-w-1.0.0[${PYTHON_USEDEP}] |
233 |
- >=dev-python/virtualenv-20[${PYTHON_USEDEP}] |
234 |
- dev-python/wheel[${PYTHON_USEDEP}] |
235 |
- ' "${PYTHON_TESTED[@]}") |
236 |
- ) |
237 |
-" |
238 |
-PDEPEND=" |
239 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] |
240 |
- dev-python/setuptools_scm[${PYTHON_USEDEP}] |
241 |
-" |
242 |
- |
243 |
-DOCS=( {CHANGES,README}.rst ) |
244 |
- |
245 |
-src_prepare() { |
246 |
- local PATCHES=( |
247 |
- # TODO: remove this when we're 100% PEP517 mode |
248 |
- "${FILESDIR}"/setuptools-62.4.0-py-compile.patch |
249 |
- ) |
250 |
- |
251 |
- distutils-r1_src_prepare |
252 |
- |
253 |
- # remove bundled dependencies, setuptools will switch to system deps |
254 |
- # automatically |
255 |
- rm -r */_vendor || die |
256 |
- |
257 |
- # remove the ugly */extern hack that breaks on unvendored deps |
258 |
- rm -r */extern || die |
259 |
- find -name '*.py' -exec sed \ |
260 |
- -e 's:from \w*[.]\+extern ::' -e 's:\w*[.]\+extern[.]::' \ |
261 |
- -i {} + || die |
262 |
- |
263 |
- export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
264 |
-} |
265 |
- |
266 |
-python_test() { |
267 |
- local -x SETUPTOOLS_USE_DISTUTILS=stdlib |
268 |
- |
269 |
- if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then |
270 |
- return |
271 |
- fi |
272 |
- |
273 |
- local EPYTEST_DESELECT=( |
274 |
- # network |
275 |
- # TODO: see if PRE_BUILT_SETUPTOOLS_* helps |
276 |
- setuptools/tests/config/test_apply_pyprojecttoml.py::test_apply_pyproject_equivalent_to_setupcfg |
277 |
- setuptools/tests/integration/test_pip_install_sdist.py::test_install_sdist |
278 |
- setuptools/tests/test_build_meta.py::test_legacy_editable_install |
279 |
- setuptools/tests/test_distutils_adoption.py |
280 |
- setuptools/tests/test_editable_install.py |
281 |
- setuptools/tests/test_setuptools.py::test_its_own_wheel_does_not_contain_tests |
282 |
- setuptools/tests/test_virtualenv.py::test_clean_env_install |
283 |
- setuptools/tests/test_virtualenv.py::test_no_missing_dependencies |
284 |
- setuptools/tests/test_virtualenv.py::test_test_command_install_requirements |
285 |
- # TODO |
286 |
- setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_basic |
287 |
- setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_ignore_errors |
288 |
- setuptools/tests/test_extern.py::test_distribution_picklable |
289 |
- # expects bundled deps in virtualenv |
290 |
- setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_in_sdist |
291 |
- setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_not_in_wheel |
292 |
- setuptools/tests/test_editable_install.py::test_editable_with_pyproject |
293 |
- # fails if python-xlib is installed |
294 |
- setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts |
295 |
- ) |
296 |
- |
297 |
- epytest -n "$(makeopts_jobs)" setuptools |
298 |
-} |
299 |
|
300 |
diff --git a/dev-python/setuptools/setuptools-66.1.1.ebuild b/dev-python/setuptools/setuptools-66.1.1.ebuild |
301 |
deleted file mode 100644 |
302 |
index 4e9a19e91a47..000000000000 |
303 |
--- a/dev-python/setuptools/setuptools-66.1.1.ebuild |
304 |
+++ /dev/null |
305 |
@@ -1,127 +0,0 @@ |
306 |
-# Copyright 1999-2023 Gentoo Authors |
307 |
-# Distributed under the terms of the GNU General Public License v2 |
308 |
- |
309 |
-# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
310 |
-EAPI=7 |
311 |
- |
312 |
-# please bump dev-python/ensurepip-setuptools along with this package! |
313 |
- |
314 |
-DISTUTILS_USE_PEP517=standalone |
315 |
-PYTHON_TESTED=( python3_{9..11} pypy3 ) |
316 |
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) |
317 |
-PYTHON_REQ_USE="xml(+)" |
318 |
- |
319 |
-inherit distutils-r1 multiprocessing |
320 |
- |
321 |
-DESCRIPTION="Collection of extensions to Distutils" |
322 |
-HOMEPAGE=" |
323 |
- https://github.com/pypa/setuptools/ |
324 |
- https://pypi.org/project/setuptools/ |
325 |
-" |
326 |
-SRC_URI=" |
327 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
328 |
-" |
329 |
- |
330 |
-LICENSE="MIT" |
331 |
-SLOT="0" |
332 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" |
333 |
-IUSE="test" |
334 |
-RESTRICT="!test? ( test )" |
335 |
- |
336 |
-RDEPEND=" |
337 |
- >=dev-python/jaraco-text-3.7.0-r1[${PYTHON_USEDEP}] |
338 |
- >=dev-python/more-itertools-8.12.0-r1[${PYTHON_USEDEP}] |
339 |
- >=dev-python/nspektr-0.3.0[${PYTHON_USEDEP}] |
340 |
- >=dev-python/ordered-set-4.0.2-r1[${PYTHON_USEDEP}] |
341 |
- <dev-python/packaging-22[${PYTHON_USEDEP}] |
342 |
- >=dev-python/packaging-21.3-r2[${PYTHON_USEDEP}] |
343 |
- >=dev-python/platformdirs-2.6.2-r1[${PYTHON_USEDEP}] |
344 |
- >=dev-python/tomli-2.0.1[${PYTHON_USEDEP}] |
345 |
- $(python_gen_cond_dep ' |
346 |
- >=dev-python/importlib_metadata-4.11.1[${PYTHON_USEDEP}] |
347 |
- ' 3.9) |
348 |
-" |
349 |
-BDEPEND=" |
350 |
- ${RDEPEND} |
351 |
- >=dev-python/wheel-0.37.1-r1[${PYTHON_USEDEP}] |
352 |
- test? ( |
353 |
- $(python_gen_cond_dep ' |
354 |
- dev-python/build[${PYTHON_USEDEP}] |
355 |
- >=dev-python/ini2toml-0.9[${PYTHON_USEDEP}] |
356 |
- >=dev-python/filelock-3.4.0[${PYTHON_USEDEP}] |
357 |
- >=dev-python/jaraco-envs-2.2[${PYTHON_USEDEP}] |
358 |
- >=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}] |
359 |
- dev-python/pip[${PYTHON_USEDEP}] |
360 |
- dev-python/pip-run[${PYTHON_USEDEP}] |
361 |
- dev-python/pytest[${PYTHON_USEDEP}] |
362 |
- dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
363 |
- dev-python/pytest-timeout[${PYTHON_USEDEP}] |
364 |
- dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
365 |
- dev-python/pytest-xdist[${PYTHON_USEDEP}] |
366 |
- >=dev-python/tomli-w-1.0.0[${PYTHON_USEDEP}] |
367 |
- >=dev-python/virtualenv-20[${PYTHON_USEDEP}] |
368 |
- dev-python/wheel[${PYTHON_USEDEP}] |
369 |
- ' "${PYTHON_TESTED[@]}") |
370 |
- ) |
371 |
-" |
372 |
-PDEPEND=" |
373 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}] |
374 |
- dev-python/setuptools_scm[${PYTHON_USEDEP}] |
375 |
-" |
376 |
- |
377 |
-DOCS=( {CHANGES,README}.rst ) |
378 |
- |
379 |
-src_prepare() { |
380 |
- local PATCHES=( |
381 |
- # TODO: remove this when we're 100% PEP517 mode |
382 |
- "${FILESDIR}"/setuptools-62.4.0-py-compile.patch |
383 |
- ) |
384 |
- |
385 |
- distutils-r1_src_prepare |
386 |
- |
387 |
- # remove bundled dependencies, setuptools will switch to system deps |
388 |
- # automatically |
389 |
- rm -r */_vendor || die |
390 |
- |
391 |
- # remove the ugly */extern hack that breaks on unvendored deps |
392 |
- rm -r */extern || die |
393 |
- find -name '*.py' -exec sed \ |
394 |
- -e 's:from \w*[.]\+extern ::' -e 's:\w*[.]\+extern[.]::' \ |
395 |
- -i {} + || die |
396 |
- |
397 |
- export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} |
398 |
-} |
399 |
- |
400 |
-python_test() { |
401 |
- local -x SETUPTOOLS_USE_DISTUTILS=stdlib |
402 |
- |
403 |
- if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then |
404 |
- return |
405 |
- fi |
406 |
- |
407 |
- local EPYTEST_DESELECT=( |
408 |
- # network |
409 |
- # TODO: see if PRE_BUILT_SETUPTOOLS_* helps |
410 |
- setuptools/tests/config/test_apply_pyprojecttoml.py::test_apply_pyproject_equivalent_to_setupcfg |
411 |
- setuptools/tests/integration/test_pip_install_sdist.py::test_install_sdist |
412 |
- setuptools/tests/test_build_meta.py::test_legacy_editable_install |
413 |
- setuptools/tests/test_distutils_adoption.py |
414 |
- setuptools/tests/test_editable_install.py |
415 |
- setuptools/tests/test_setuptools.py::test_its_own_wheel_does_not_contain_tests |
416 |
- setuptools/tests/test_virtualenv.py::test_clean_env_install |
417 |
- setuptools/tests/test_virtualenv.py::test_no_missing_dependencies |
418 |
- setuptools/tests/test_virtualenv.py::test_test_command_install_requirements |
419 |
- # TODO |
420 |
- setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_basic |
421 |
- setuptools/tests/config/test_setupcfg.py::TestConfigurationReader::test_ignore_errors |
422 |
- setuptools/tests/test_extern.py::test_distribution_picklable |
423 |
- # expects bundled deps in virtualenv |
424 |
- setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_in_sdist |
425 |
- setuptools/tests/config/test_apply_pyprojecttoml.py::TestMeta::test_example_file_not_in_wheel |
426 |
- setuptools/tests/test_editable_install.py::test_editable_with_pyproject |
427 |
- # fails if python-xlib is installed |
428 |
- setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts |
429 |
- ) |
430 |
- |
431 |
- epytest -n "$(makeopts_jobs)" setuptools |
432 |
-} |