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/pip/files/, dev-python/pip/
Date: Tue, 30 Aug 2022 19:01:47
Message-Id: 1661885696.1739efddd0b5975e261453445915d7bbc0817e6e.mgorny@gentoo
1 commit: 1739efddd0b5975e261453445915d7bbc0817e6e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 30 18:54:56 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 30 18:54:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1739efdd
7
8 dev-python/pip: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pip/Manifest | 3 -
13 dev-python/pip/files/pip-21.3-no-coverage.patch | 52 ---------
14 dev-python/pip/files/pip-22.2-no-coverage.patch | 52 ---------
15 dev-python/pip/pip-22.1.2-r1.ebuild | 130 ----------------------
16 dev-python/pip/pip-22.2-r1.ebuild | 134 -----------------------
17 dev-python/pip/pip-22.2.1-r1.ebuild | 136 ------------------------
18 6 files changed, 507 deletions(-)
19
20 diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest
21 index d45ad2c97c73..a8d8eaba4a81 100644
22 --- a/dev-python/pip/Manifest
23 +++ b/dev-python/pip/Manifest
24 @@ -1,7 +1,4 @@
25 -DIST pip-22.1.2.gh.tar.gz 9346675 BLAKE2B f709f8977d467d5a3170884bb75cd2f74a2f40801ae02a3725d442e18e4073f9c4a39cd1c9d2ce3949eb888be69d151f67d0cf2d0cbad7e2ec1ec6e78150b5c7 SHA512 7dd13150023f1cca8f5e01da7688ae418b5d0b36364efcfc15374a5147c7cabd46ff1d34e6499bc8e182dc0d34a366f5fe21d8ab4de4d112d269a97200401305
26 -DIST pip-22.2.1.gh.tar.gz 9279141 BLAKE2B 61906027e36c8b3b82f3d17a59cbc995864622184c7f4099e9dfbb5082d1953dff72551558b8fe0d463d7defcd8b9403a978e4a8c7d79af5cd6b9dbbbcc9c7b5 SHA512 77996ce7e1aa4b5aab0c55dfee5e9bfe9f5f09f33cb796ce78bba7365f37ce9f1cce4eeaf5fdbeddde0819ecc6a30ffdafa6b7e25f93c672fcc8646303a7946e
27 DIST pip-22.2.2.gh.tar.gz 9279218 BLAKE2B 2179b0d3f5f05bbd678f1785b4dbc0613078c09c83b45faa62d766182dfeb564095abda809ed99f45644abcb06c125efc528aeaed3ad40ab1c9e8972e33ccbb2 SHA512 bd59e28b55475b77a8f11ea771cbad3b2602ff974e219f9a55288963a9522c9279a5b00fde40fb65cfebefae0e905d3da3c06fe50b402aa5326b25f70a98a015
28 -DIST pip-22.2.gh.tar.gz 9278410 BLAKE2B e32fe63e81593a0ec9c0110af0f07f1a47ddd3d6c660c11e9eb9142c251b7f45e3a1cc343193b123364a6a3a69490add7d4ebb368aac027c448f00f7cd163d7c SHA512 2ff3f9c2dc84c65c14c978e8c58cd3cee6cfff9753655c726763d6d7780d147479f32c47873d402ad9e0821fef940b971a7df93fabd6b998f07dea5af1251c9b
29 DIST setuptools-62.3.2-py3-none-any.whl 1225929 BLAKE2B 608952e201f749ebf557e3962ba9856d5bdcbc534f3a25598cab0d6c53282cfb3b9f007ba135497a8addf49db4c02bc4387c486d95a4529d01ce4114154ec28a SHA512 366d69dc44e326dd7549cdacd8dec481a14dce4feef4338adc38b9de5c4c338f04d61696e13ce8603be1315f2e8734100f92d3fe4b4b11843e19f550c9631978
30 DIST virtualenv-16.7.12.gh.tar.gz 8906590 BLAKE2B a1f206769e4e5797562906162e492e44c4a72720e4f88a0362dc802ce2df20c65aaab6a72dce2238445601a10fae59bd90cd362217994d30911f105afd71c5fa SHA512 0278b33fb19f6553e70ad3dcffa6ea1a455ff435b216ac9b4fadff216b2932714faa2bb6027af3058010111d8511a5c2fcd424f31c9645be361603971f111c8e
31 DIST wheel-0.36.2-py2.py3-none-any.whl 35046 BLAKE2B bc4e8dab7c74eea34d3b4a813b7eaf6295a99a396a861b6cdd76f743043e89140bad132bdd13e385e8945ce02e0798e1d3ac73fc1b23bde5b2a83e4bb4dd5cdc SHA512 6bb5119b4d3704fe1e3c1eaaa3124edab13f61b46f8a0a8e75974fac4e5b25d8b53606071a03a8d8990ad1cfe2ab247ddea260098df2c0c35ae965be47080284
32
33 diff --git a/dev-python/pip/files/pip-21.3-no-coverage.patch b/dev-python/pip/files/pip-21.3-no-coverage.patch
34 deleted file mode 100644
35 index 8292f97f9488..000000000000
36 --- a/dev-python/pip/files/pip-21.3-no-coverage.patch
37 +++ /dev/null
38 @@ -1,52 +0,0 @@
39 -From 8473691148031ed4db5bd8870fbeef9484b9c831 Mon Sep 17 00:00:00 2001
40 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
41 -Date: Sat, 23 Oct 2021 08:11:11 +0200
42 -Subject: [PATCH] Disable coverage testing support inside test venvs
43 -
44 ----
45 - tests/conftest.py | 15 ---------------
46 - 1 file changed, 15 deletions(-)
47 -
48 -diff --git a/tests/conftest.py b/tests/conftest.py
49 -index 076aeaf19..77c41dc15 100644
50 ---- a/tests/conftest.py
51 -+++ b/tests/conftest.py
52 -@@ -340,13 +340,6 @@ def wheel_install(tmpdir_factory: pytest.TempdirFactory, common_wheels: Path) ->
53 - return _common_wheel_editable_install(tmpdir_factory, common_wheels, "wheel")
54 -
55 -
56 --@××××××.fixture(scope="session")
57 --def coverage_install(
58 -- tmpdir_factory: pytest.TempdirFactory, common_wheels: Path
59 --) -> Path:
60 -- return _common_wheel_editable_install(tmpdir_factory, common_wheels, "coverage")
61 --
62 --
63 - def install_egg_link(
64 - venv: VirtualEnvironment, project_name: str, egg_info_dir: Path
65 - ) -> None:
66 -@@ -362,7 +355,6 @@ def virtualenv_template(
67 - tmpdir_factory: pytest.TempdirFactory,
68 - pip_src: Path,
69 - setuptools_install: Path,
70 -- coverage_install: Path,
71 - ) -> Iterator[VirtualEnvironment]:
72 -
73 - venv_type: VirtualEnvironmentType
74 -@@ -389,13 +381,6 @@ def virtualenv_template(
75 - [venv.bin / "python", "setup.py", "-q", "develop"], cwd=pip_editable
76 - )
77 -
78 -- # Install coverage and pth file for executing it in any spawned processes
79 -- # in this virtual environment.
80 -- install_egg_link(venv, "coverage", coverage_install)
81 -- # zz prefix ensures the file is after easy-install.pth.
82 -- with open(venv.site / "zz-coverage-helper.pth", "a") as f:
83 -- f.write("import coverage; coverage.process_startup()")
84 --
85 - # Drop (non-relocatable) launchers.
86 - for exe in os.listdir(venv.bin):
87 - if not (
88 ---
89 -2.33.1
90 -
91
92 diff --git a/dev-python/pip/files/pip-22.2-no-coverage.patch b/dev-python/pip/files/pip-22.2-no-coverage.patch
93 deleted file mode 100644
94 index 20a5fa4beabf..000000000000
95 --- a/dev-python/pip/files/pip-22.2-no-coverage.patch
96 +++ /dev/null
97 @@ -1,52 +0,0 @@
98 -From 75292c12ee2062f7d035b326b652ba6cffb8480d Mon Sep 17 00:00:00 2001
99 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
100 -Date: Sat, 23 Oct 2021 08:11:11 +0200
101 -Subject: [PATCH] Disable coverage testing support inside test venvs
102 -
103 ----
104 - tests/conftest.py | 15 ---------------
105 - 1 file changed, 15 deletions(-)
106 -
107 -diff --git a/tests/conftest.py b/tests/conftest.py
108 -index 210ff0f4e..e5c0d2ef0 100644
109 ---- a/tests/conftest.py
110 -+++ b/tests/conftest.py
111 -@@ -382,13 +382,6 @@ def wheel_install(tmpdir_factory: pytest.TempPathFactory, common_wheels: Path) -
112 - return _common_wheel_editable_install(tmpdir_factory, common_wheels, "wheel")
113 -
114 -
115 --@××××××.fixture(scope="session")
116 --def coverage_install(
117 -- tmpdir_factory: pytest.TempPathFactory, common_wheels: Path
118 --) -> Path:
119 -- return _common_wheel_editable_install(tmpdir_factory, common_wheels, "coverage")
120 --
121 --
122 - def install_egg_link(
123 - venv: VirtualEnvironment, project_name: str, egg_info_dir: Path
124 - ) -> None:
125 -@@ -404,7 +397,6 @@ def virtualenv_template(
126 - tmpdir_factory: pytest.TempPathFactory,
127 - pip_src: Path,
128 - setuptools_install: Path,
129 -- coverage_install: Path,
130 - ) -> Iterator[VirtualEnvironment]:
131 -
132 - venv_type: VirtualEnvironmentType
133 -@@ -431,13 +423,6 @@ def virtualenv_template(
134 - [os.fspath(venv.bin / "python"), "setup.py", "-q", "develop"], cwd=pip_editable
135 - )
136 -
137 -- # Install coverage and pth file for executing it in any spawned processes
138 -- # in this virtual environment.
139 -- install_egg_link(venv, "coverage", coverage_install)
140 -- # zz prefix ensures the file is after easy-install.pth.
141 -- with open(venv.site / "zz-coverage-helper.pth", "a") as f:
142 -- f.write("import coverage; coverage.process_startup()")
143 --
144 - # Drop (non-relocatable) launchers.
145 - for exe in os.listdir(venv.bin):
146 - if not (
147 ---
148 -2.35.1
149 -
150
151 diff --git a/dev-python/pip/pip-22.1.2-r1.ebuild b/dev-python/pip/pip-22.1.2-r1.ebuild
152 deleted file mode 100644
153 index 92328155e736..000000000000
154 --- a/dev-python/pip/pip-22.1.2-r1.ebuild
155 +++ /dev/null
156 @@ -1,130 +0,0 @@
157 -# Copyright 1999-2022 Gentoo Authors
158 -# Distributed under the terms of the GNU General Public License v2
159 -
160 -EAPI=8
161 -
162 -DISTUTILS_USE_PEP517=setuptools
163 -PYTHON_TESTED=( python3_{8..10} )
164 -PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_11 pypy3 )
165 -PYTHON_REQ_USE="ssl(+),threads(+)"
166 -
167 -inherit bash-completion-r1 distutils-r1 multiprocessing
168 -
169 -# setuptools & wheel .whl files are required for testing,
170 -# the exact version is not very important.
171 -SETUPTOOLS_WHL="setuptools-62.3.2-py3-none-any.whl"
172 -WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl"
173 -# upstream still requires virtualenv-16 for testing, we are now fetching
174 -# it directly to avoid blockers with virtualenv-20
175 -VENV_PV=16.7.12
176 -
177 -DESCRIPTION="The PyPA recommended tool for installing Python packages"
178 -HOMEPAGE="
179 - https://pip.pypa.io/en/stable/
180 - https://pypi.org/project/pip/
181 - https://github.com/pypa/pip/
182 -"
183 -SRC_URI="
184 - https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz
185 - test? (
186 - https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL}
187 - https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL}
188 - https://github.com/pypa/virtualenv/archive/${VENV_PV}.tar.gz
189 - -> virtualenv-${VENV_PV}.gh.tar.gz
190 - )
191 -"
192 -
193 -LICENSE="MIT"
194 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
195 -SLOT="0"
196 -IUSE="vanilla"
197 -
198 -RDEPEND="
199 - >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}]
200 -"
201 -BDEPEND="
202 - ${RDEPEND}
203 - test? (
204 - $(python_gen_cond_dep '
205 - dev-python/freezegun[${PYTHON_USEDEP}]
206 - dev-python/pretend[${PYTHON_USEDEP}]
207 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
208 - dev-python/scripttest[${PYTHON_USEDEP}]
209 - dev-python/tomli-w[${PYTHON_USEDEP}]
210 - dev-python/werkzeug[${PYTHON_USEDEP}]
211 - dev-python/wheel[${PYTHON_USEDEP}]
212 - !alpha? ( !arm? ( !hppa? ( !ia64? ( !s390? ( !sparc? (
213 - dev-python/cryptography[${PYTHON_USEDEP}]
214 - ) ) ) ) ) )
215 - ' "${PYTHON_TESTED[@]}")
216 - )
217 -"
218 -
219 -distutils_enable_tests pytest
220 -
221 -python_prepare_all() {
222 - local PATCHES=(
223 - "${FILESDIR}/pip-21.3-no-coverage.patch"
224 - )
225 - if ! use vanilla; then
226 - PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" )
227 - fi
228 -
229 - distutils-r1_python_prepare_all
230 -
231 - if use test; then
232 - mkdir tests/data/common_wheels/ || die
233 - cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \
234 - tests/data/common_wheels/ || die
235 - fi
236 -}
237 -
238 -python_compile_all() {
239 - # 'pip completion' command embeds full $0 into completion script, which confuses
240 - # 'complete' and causes QA warning when running as "${PYTHON} -m pip".
241 - # This trick sets correct $0 while still calling just installed pip.
242 - local pipcmd='import sys; sys.argv[0] = "pip"; __file__ = ""; from pip._internal.cli.main import main; sys.exit(main())'
243 - "${EPYTHON}" -c "${pipcmd}" completion --bash > completion.bash || die
244 - "${EPYTHON}" -c "${pipcmd}" completion --zsh > completion.zsh || die
245 -}
246 -
247 -python_test() {
248 - if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
249 - einfo "Skipping tests on ${EPYTHON} since virtualenv-16 is broken"
250 - return 0
251 - fi
252 -
253 - local EPYTEST_DESELECT=(
254 - tests/functional/test_install.py::test_double_install_fail
255 - tests/functional/test_list.py::test_multiple_exclude_and_normalization
256 - # Internet
257 - tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg
258 - tests/functional/test_install.py::test_editable_install__local_dir_no_setup_py_with_pyproject
259 - tests/functional/test_install.py::test_editable_install__local_dir_setup_requires_with_pyproject
260 - )
261 -
262 - if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then
263 - EPYTEST_DESELECT+=(
264 - tests/functional/test_install.py::test_install_sends_client_cert
265 - tests/functional/test_install_config.py::test_do_not_prompt_for_authentication
266 - tests/functional/test_install_config.py::test_prompt_for_authentication
267 - tests/functional/test_install_config.py::test_prompt_for_keyring_if_needed
268 - )
269 - fi
270 -
271 - local -x GENTOO_PIP_TESTING=1
272 - local -x PYTHONPATH="${WORKDIR}/virtualenv-${VENV_PV}"
273 - local -x SETUPTOOLS_USE_DISTUTILS=stdlib
274 - local -x PIP_DISABLE_PIP_VERSION_CHECK=1
275 - epytest -m "not network" -n "$(makeopts_jobs)"
276 -}
277 -
278 -python_install_all() {
279 - local DOCS=( AUTHORS.txt docs/html/**/*.rst )
280 - distutils-r1_python_install_all
281 -
282 - newbashcomp completion.bash pip
283 -
284 - insinto /usr/share/zsh/site-functions
285 - newins completion.zsh _pip
286 -}
287
288 diff --git a/dev-python/pip/pip-22.2-r1.ebuild b/dev-python/pip/pip-22.2-r1.ebuild
289 deleted file mode 100644
290 index 67d8b8ae610c..000000000000
291 --- a/dev-python/pip/pip-22.2-r1.ebuild
292 +++ /dev/null
293 @@ -1,134 +0,0 @@
294 -# Copyright 1999-2022 Gentoo Authors
295 -# Distributed under the terms of the GNU General Public License v2
296 -
297 -EAPI=8
298 -
299 -DISTUTILS_USE_PEP517=setuptools
300 -PYTHON_TESTED=( python3_{8..10} )
301 -PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_11 pypy3 )
302 -PYTHON_REQ_USE="ssl(+),threads(+)"
303 -
304 -inherit bash-completion-r1 distutils-r1 multiprocessing
305 -
306 -# setuptools & wheel .whl files are required for testing,
307 -# the exact version is not very important.
308 -SETUPTOOLS_WHL="setuptools-62.3.2-py3-none-any.whl"
309 -WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl"
310 -# upstream still requires virtualenv-16 for testing, we are now fetching
311 -# it directly to avoid blockers with virtualenv-20
312 -VENV_PV=16.7.12
313 -
314 -DESCRIPTION="The PyPA recommended tool for installing Python packages"
315 -HOMEPAGE="
316 - https://pip.pypa.io/en/stable/
317 - https://pypi.org/project/pip/
318 - https://github.com/pypa/pip/
319 -"
320 -SRC_URI="
321 - https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz
322 - test? (
323 - https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL}
324 - https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL}
325 - https://github.com/pypa/virtualenv/archive/${VENV_PV}.tar.gz
326 - -> virtualenv-${VENV_PV}.gh.tar.gz
327 - )
328 -"
329 -
330 -LICENSE="MIT"
331 -# bundled deps
332 -LICENSE+=" Apache-2.0 BSD BSD-2 ISC LGPL-2.1+ MPL-2.0 PSF-2"
333 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
334 -SLOT="0"
335 -IUSE="vanilla"
336 -
337 -RDEPEND="
338 - >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}]
339 -"
340 -BDEPEND="
341 - ${RDEPEND}
342 - test? (
343 - $(python_gen_cond_dep '
344 - dev-python/freezegun[${PYTHON_USEDEP}]
345 - dev-python/pretend[${PYTHON_USEDEP}]
346 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
347 - dev-python/scripttest[${PYTHON_USEDEP}]
348 - dev-python/tomli-w[${PYTHON_USEDEP}]
349 - dev-python/werkzeug[${PYTHON_USEDEP}]
350 - dev-python/wheel[${PYTHON_USEDEP}]
351 - !alpha? ( !arm? ( !hppa? ( !ia64? ( !s390? ( !sparc? (
352 - dev-python/cryptography[${PYTHON_USEDEP}]
353 - ) ) ) ) ) )
354 - ' "${PYTHON_TESTED[@]}")
355 - )
356 -"
357 -
358 -distutils_enable_tests pytest
359 -
360 -python_prepare_all() {
361 - local PATCHES=(
362 - "${FILESDIR}/pip-22.2-no-coverage.patch"
363 - )
364 - if ! use vanilla; then
365 - PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" )
366 - fi
367 -
368 - distutils-r1_python_prepare_all
369 -
370 - if use test; then
371 - mkdir tests/data/common_wheels/ || die
372 - cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \
373 - tests/data/common_wheels/ || die
374 - fi
375 -}
376 -
377 -python_compile_all() {
378 - # 'pip completion' command embeds full $0 into completion script, which confuses
379 - # 'complete' and causes QA warning when running as "${PYTHON} -m pip".
380 - # This trick sets correct $0 while still calling just installed pip.
381 - local pipcmd='import sys; sys.argv[0] = "pip"; __file__ = ""; from pip._internal.cli.main import main; sys.exit(main())'
382 - "${EPYTHON}" -c "${pipcmd}" completion --bash > completion.bash || die
383 - "${EPYTHON}" -c "${pipcmd}" completion --zsh > completion.zsh || die
384 -}
385 -
386 -python_test() {
387 - if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
388 - einfo "Skipping tests on ${EPYTHON} since virtualenv-16 is broken"
389 - return 0
390 - fi
391 -
392 - local EPYTEST_DESELECT=(
393 - tests/functional/test_inspect.py::test_inspect_basic
394 - tests/functional/test_install.py::test_double_install_fail
395 - tests/functional/test_list.py::test_multiple_exclude_and_normalization
396 - # Internet
397 - tests/functional/test_install.py::test_install_dry_run
398 - tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg
399 - tests/functional/test_install.py::test_editable_install__local_dir_no_setup_py_with_pyproject
400 - tests/functional/test_install.py::test_editable_install__local_dir_setup_requires_with_pyproject
401 - )
402 -
403 - if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then
404 - EPYTEST_DESELECT+=(
405 - tests/functional/test_install.py::test_install_sends_client_cert
406 - tests/functional/test_install_config.py::test_do_not_prompt_for_authentication
407 - tests/functional/test_install_config.py::test_prompt_for_authentication
408 - tests/functional/test_install_config.py::test_prompt_for_keyring_if_needed
409 - )
410 - fi
411 -
412 - local -x GENTOO_PIP_TESTING=1
413 - local -x PYTHONPATH="${WORKDIR}/virtualenv-${VENV_PV}"
414 - local -x SETUPTOOLS_USE_DISTUTILS=stdlib
415 - local -x PIP_DISABLE_PIP_VERSION_CHECK=1
416 - epytest -m "not network" -n "$(makeopts_jobs)"
417 -}
418 -
419 -python_install_all() {
420 - local DOCS=( AUTHORS.txt docs/html/**/*.rst )
421 - distutils-r1_python_install_all
422 -
423 - newbashcomp completion.bash pip
424 -
425 - insinto /usr/share/zsh/site-functions
426 - newins completion.zsh _pip
427 -}
428
429 diff --git a/dev-python/pip/pip-22.2.1-r1.ebuild b/dev-python/pip/pip-22.2.1-r1.ebuild
430 deleted file mode 100644
431 index 8d3b6ef3e28e..000000000000
432 --- a/dev-python/pip/pip-22.2.1-r1.ebuild
433 +++ /dev/null
434 @@ -1,136 +0,0 @@
435 -# Copyright 1999-2022 Gentoo Authors
436 -# Distributed under the terms of the GNU General Public License v2
437 -
438 -EAPI=8
439 -
440 -# please bump dev-python/ensurepip-wheels along with this package!
441 -
442 -DISTUTILS_USE_PEP517=setuptools
443 -PYTHON_TESTED=( python3_{8..10} )
444 -PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_11 pypy3 )
445 -PYTHON_REQ_USE="ssl(+),threads(+)"
446 -
447 -inherit bash-completion-r1 distutils-r1 multiprocessing
448 -
449 -# setuptools & wheel .whl files are required for testing,
450 -# the exact version is not very important.
451 -SETUPTOOLS_WHL="setuptools-62.3.2-py3-none-any.whl"
452 -WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl"
453 -# upstream still requires virtualenv-16 for testing, we are now fetching
454 -# it directly to avoid blockers with virtualenv-20
455 -VENV_PV=16.7.12
456 -
457 -DESCRIPTION="The PyPA recommended tool for installing Python packages"
458 -HOMEPAGE="
459 - https://pip.pypa.io/en/stable/
460 - https://pypi.org/project/pip/
461 - https://github.com/pypa/pip/
462 -"
463 -SRC_URI="
464 - https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz
465 - test? (
466 - https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL}
467 - https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL}
468 - https://github.com/pypa/virtualenv/archive/${VENV_PV}.tar.gz
469 - -> virtualenv-${VENV_PV}.gh.tar.gz
470 - )
471 -"
472 -
473 -LICENSE="MIT"
474 -# bundled deps
475 -LICENSE+=" Apache-2.0 BSD BSD-2 ISC LGPL-2.1+ MPL-2.0 PSF-2"
476 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
477 -SLOT="0"
478 -IUSE="vanilla"
479 -
480 -RDEPEND="
481 - >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}]
482 -"
483 -BDEPEND="
484 - ${RDEPEND}
485 - test? (
486 - $(python_gen_cond_dep '
487 - dev-python/freezegun[${PYTHON_USEDEP}]
488 - dev-python/pretend[${PYTHON_USEDEP}]
489 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
490 - dev-python/scripttest[${PYTHON_USEDEP}]
491 - dev-python/tomli-w[${PYTHON_USEDEP}]
492 - dev-python/werkzeug[${PYTHON_USEDEP}]
493 - dev-python/wheel[${PYTHON_USEDEP}]
494 - !alpha? ( !arm? ( !hppa? ( !ia64? ( !s390? ( !sparc? (
495 - dev-python/cryptography[${PYTHON_USEDEP}]
496 - ) ) ) ) ) )
497 - ' "${PYTHON_TESTED[@]}")
498 - )
499 -"
500 -
501 -distutils_enable_tests pytest
502 -
503 -python_prepare_all() {
504 - local PATCHES=(
505 - "${FILESDIR}/pip-22.2.1-no-coverage.patch"
506 - )
507 - if ! use vanilla; then
508 - PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" )
509 - fi
510 -
511 - distutils-r1_python_prepare_all
512 -
513 - if use test; then
514 - mkdir tests/data/common_wheels/ || die
515 - cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \
516 - tests/data/common_wheels/ || die
517 - fi
518 -}
519 -
520 -python_compile_all() {
521 - # 'pip completion' command embeds full $0 into completion script, which confuses
522 - # 'complete' and causes QA warning when running as "${PYTHON} -m pip".
523 - # This trick sets correct $0 while still calling just installed pip.
524 - local pipcmd='import sys; sys.argv[0] = "pip"; __file__ = ""; from pip._internal.cli.main import main; sys.exit(main())'
525 - "${EPYTHON}" -c "${pipcmd}" completion --bash > completion.bash || die
526 - "${EPYTHON}" -c "${pipcmd}" completion --zsh > completion.zsh || die
527 -}
528 -
529 -python_test() {
530 - if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
531 - einfo "Skipping tests on ${EPYTHON} since virtualenv-16 is broken"
532 - return 0
533 - fi
534 -
535 - local EPYTEST_DESELECT=(
536 - tests/functional/test_inspect.py::test_inspect_basic
537 - tests/functional/test_install.py::test_double_install_fail
538 - tests/functional/test_list.py::test_multiple_exclude_and_normalization
539 - # Internet
540 - tests/functional/test_install.py::test_install_dry_run
541 - tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg
542 - tests/functional/test_install.py::test_editable_install__local_dir_no_setup_py_with_pyproject
543 - tests/functional/test_install.py::test_editable_install__local_dir_setup_requires_with_pyproject
544 - )
545 -
546 - if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then
547 - EPYTEST_DESELECT+=(
548 - tests/functional/test_install.py::test_install_sends_client_cert
549 - tests/functional/test_install_config.py::test_do_not_prompt_for_authentication
550 - tests/functional/test_install_config.py::test_prompt_for_authentication
551 - tests/functional/test_install_config.py::test_prompt_for_keyring_if_needed
552 - )
553 - fi
554 -
555 - local -x GENTOO_PIP_TESTING=1
556 - local -x PYTHONPATH="${WORKDIR}/virtualenv-${VENV_PV}"
557 - local -x SETUPTOOLS_USE_DISTUTILS=stdlib
558 - local -x PIP_DISABLE_PIP_VERSION_CHECK=1
559 - epytest -m "not network" -n "$(makeopts_jobs)"
560 -}
561 -
562 -python_install_all() {
563 - local DOCS=( AUTHORS.txt docs/html/**/*.rst )
564 - distutils-r1_python_install_all
565 -
566 - newbashcomp completion.bash pip
567 -
568 - insinto /usr/share/zsh/site-functions
569 - newins completion.zsh _pip
570 -}