1 |
commit: cc226e03bca54dcf930092cf7a585e4a59e5df5e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 2 08:41:32 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 2 08:43:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc226e03 |
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 | 1 - |
13 |
dev-python/pip/pip-21.0.ebuild | 121 ----------------------------------------- |
14 |
2 files changed, 122 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest |
17 |
index 4e81410ebc8..b77435b773a 100644 |
18 |
--- a/dev-python/pip/Manifest |
19 |
+++ b/dev-python/pip/Manifest |
20 |
@@ -1,4 +1,3 @@ |
21 |
DIST pip-21.0.1.tar.gz 8772082 BLAKE2B 2fdd78e2db8ceda2bd21fdeb4d29c0c2eda412827b87cc97ec1996a5b71b9c6e5938c0a6ef696163780bbbc55d81b8b3b1b6e2e79b05fbe9ce4bdd52e3ebdf13 SHA512 2db5397f4ca3a3f56f5add3f827bf1f0a4296019703438d68498266b9d2559b6baa3132061c5ad4c2a08bec6e76a2768763fdca02d86cf32aadd4640afbf3664 |
22 |
-DIST pip-21.0.tar.gz 8770962 BLAKE2B 5a246e40a8b2ea5ceda27bec27e9bb6390613e28c301ed79fd95886c850a29ee1c0261f2dd69f1c2485dd72ec3010f61c4e783ed707a40630534790eba748c4b SHA512 ac77a7204423f1fdc3a4d328dab1860258efccde0123cff3217f357637c4ce3d85772ab81a230122ff813be2cfa40f2862e5d499390289efe1dcde3a31a42264 |
23 |
DIST setuptools-51.3.3-py3-none-any.whl 786243 BLAKE2B cc8a98cdfd5cb78a342a3d50049c0ebd0965451e9bd4050b7a133346f505a17842a498531ade9bf932064a6cac81277ecf60d94ef94faa39b78740de87f9fd86 SHA512 1d4f29e392371b7f0e427d0570fddbdd1204f6c98e48a0a289db23b20f7c048551584ac946e30b90d720cce4f508b3c39208e9a70f87067d66734432963d141c |
24 |
DIST wheel-0.36.2-py2.py3-none-any.whl 35046 BLAKE2B bc4e8dab7c74eea34d3b4a813b7eaf6295a99a396a861b6cdd76f743043e89140bad132bdd13e385e8945ce02e0798e1d3ac73fc1b23bde5b2a83e4bb4dd5cdc SHA512 6bb5119b4d3704fe1e3c1eaaa3124edab13f61b46f8a0a8e75974fac4e5b25d8b53606071a03a8d8990ad1cfe2ab247ddea260098df2c0c35ae965be47080284 |
25 |
|
26 |
diff --git a/dev-python/pip/pip-21.0.ebuild b/dev-python/pip/pip-21.0.ebuild |
27 |
deleted file mode 100644 |
28 |
index b9e8cec3739..00000000000 |
29 |
--- a/dev-python/pip/pip-21.0.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,121 +0,0 @@ |
32 |
-# Copyright 1999-2021 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=7 |
36 |
- |
37 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
-PYTHON_COMPAT=( python3_{7..9} pypy3 ) |
39 |
-PYTHON_REQ_USE="ssl(+),threads(+)" |
40 |
- |
41 |
-inherit bash-completion-r1 distutils-r1 |
42 |
- |
43 |
-# setuptools & wheel .whl files are required for testing, |
44 |
-# the exact version is not very important. |
45 |
-SETUPTOOLS_WHL="setuptools-51.3.3-py3-none-any.whl" |
46 |
-WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl" |
47 |
- |
48 |
-DESCRIPTION="Installs python packages -- replacement for easy_install" |
49 |
-HOMEPAGE=" |
50 |
- https://pip.pypa.io/en/stable/ |
51 |
- https://pypi.org/project/pip/ |
52 |
- https://github.com/pypa/pip/" |
53 |
-SRC_URI=" |
54 |
- https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
55 |
- test? ( |
56 |
- https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL} |
57 |
- https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL} |
58 |
- ) |
59 |
-" |
60 |
-# PyPI archive does not have tests, so we need to download from GitHub. |
61 |
- |
62 |
-LICENSE="MIT" |
63 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86 ~x64-macos" |
64 |
-SLOT="0" |
65 |
-IUSE="test -vanilla" |
66 |
-RESTRICT="!test? ( test )" |
67 |
- |
68 |
-RDEPEND=" |
69 |
- >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}] |
70 |
-" |
71 |
-BDEPEND=" |
72 |
- ${RDEPEND} |
73 |
- test? ( |
74 |
- dev-python/cryptography[${PYTHON_USEDEP}] |
75 |
- dev-python/csv23[${PYTHON_USEDEP}] |
76 |
- dev-python/freezegun[${PYTHON_USEDEP}] |
77 |
- dev-python/mock[${PYTHON_USEDEP}] |
78 |
- dev-python/pretend[${PYTHON_USEDEP}] |
79 |
- dev-python/pytest[${PYTHON_USEDEP}] |
80 |
- dev-python/pyyaml[${PYTHON_USEDEP}] |
81 |
- dev-python/scripttest[${PYTHON_USEDEP}] |
82 |
- <dev-python/virtualenv-20[${PYTHON_USEDEP}] |
83 |
- dev-python/werkzeug[${PYTHON_USEDEP}] |
84 |
- dev-python/wheel[${PYTHON_USEDEP}] |
85 |
- ) |
86 |
-" |
87 |
- |
88 |
-python_prepare_all() { |
89 |
- local PATCHES=( |
90 |
- "${FILESDIR}/${PN}-19.3-disable-version-check.patch" |
91 |
- "${FILESDIR}/${PN}-21.0-no-coverage.patch" |
92 |
- ) |
93 |
- if ! use vanilla; then |
94 |
- PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" ) |
95 |
- fi |
96 |
- |
97 |
- distutils-r1_python_prepare_all |
98 |
- |
99 |
- if use test; then |
100 |
- mkdir tests/data/common_wheels/ || die |
101 |
- cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \ |
102 |
- tests/data/common_wheels/ || die |
103 |
- fi |
104 |
-} |
105 |
- |
106 |
-python_test() { |
107 |
- if [[ ${EPYTHON} == pypy* ]]; then |
108 |
- ewarn "Skipping tests on ${EPYTHON} since they are very broken" |
109 |
- return 0 |
110 |
- fi |
111 |
- |
112 |
- local deselect=( |
113 |
- tests/functional/test_install.py::test_double_install_fail |
114 |
- tests/functional/test_list.py::test_multiple_exclude_and_normalization |
115 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-download]' |
116 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-install]' |
117 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-list]' |
118 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-wheel]' |
119 |
- ) |
120 |
- |
121 |
- distutils_install_for_testing --via-root |
122 |
- |
123 |
- local -x GENTOO_PIP_TESTING=1 \ |
124 |
- PATH="${TEST_DIR}/scripts:${PATH}" \ |
125 |
- PYTHONPATH="${TEST_DIR}/lib:${BUILD_DIR}/lib" |
126 |
- |
127 |
- pytest -vv ${deselect[@]/#/--deselect } -m "not network" || |
128 |
- die "Tests fail with ${EPYTHON}" |
129 |
-} |
130 |
- |
131 |
-python_install_all() { |
132 |
- # Prevent dbus auto-launch |
133 |
- # https://bugs.gentoo.org/692178 |
134 |
- export DBUS_SESSION_BUS_ADDRESS="disabled:" |
135 |
- |
136 |
- local DOCS=( AUTHORS.txt docs/html/**/*.rst ) |
137 |
- distutils-r1_python_install_all |
138 |
- |
139 |
- COMPLETION="${T}"/completion.tmp |
140 |
- |
141 |
- # 'pip completion' command embeds full $0 into completion script, which confuses |
142 |
- # 'complete' and causes QA warning when running as "${PYTHON} -m pip". |
143 |
- # This trick sets correct $0 while still calling just installed pip. |
144 |
- local pipcmd='import sys; sys.argv[0] = "pip"; import pip.__main__; sys.exit(pip.__main__._main())' |
145 |
- |
146 |
- ${PYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die |
147 |
- newbashcomp "${COMPLETION}" ${PN} |
148 |
- |
149 |
- ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die |
150 |
- insinto /usr/share/zsh/site-functions |
151 |
- newins "${COMPLETION}" _pip |
152 |
-} |