1 |
commit: 59512240827d7bccb203b13099978b27d90e51e8 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 24 08:07:46 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 24 08:20:38 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59512240 |
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.1.1.ebuild | 117 ------------------------------------ |
14 |
dev-python/pip/pip-21.1.2.ebuild | 124 --------------------------------------- |
15 |
3 files changed, 242 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest |
18 |
index e47711af1e9..48810da85ba 100644 |
19 |
--- a/dev-python/pip/Manifest |
20 |
+++ b/dev-python/pip/Manifest |
21 |
@@ -1,4 +1,3 @@ |
22 |
-DIST pip-21.1.1.tar.gz 8771867 BLAKE2B 1cb920ab52510e816a7c3b8b6d1b47576a27cf1b208ab8fefa102ff36c09eb4e99b34f213a043550a9e6fb37bb8b6306f9e939371661ff7f23ba03f21b4a643b SHA512 05157ed586597f16948afdad43d98cc095803d2d22b1427ac1028ca2a73a26d65e597446808194343ed36f9eb7cb910ac89e73a6a9a90ee868ec822fdbe641c5 |
23 |
DIST pip-21.1.2.tar.gz 8772481 BLAKE2B 23dbcc5dd7e7f66934282b9c93958267eb367d418b6c814032b7b89e0d94c73c143626781b8df081394019d2e575030b7a2fd61bb5221992ce2060cf069e8b04 SHA512 54a2b6074fcb2640868dedcabb5087b79a53a8ad57ec4ab5acf2862b8037403d8f156c2853ab60c2f10c6af999a0a90774f0bc3eca2978a82590935d37af167f |
24 |
DIST setuptools-56.0.0-py3-none-any.whl 784941 BLAKE2B 136352bcaeeb803f94983db2e0f9ec79dacc23a6742a2f6f1b4bdd2b29a104f4965d78f9b4adf1a501c7bf39d4ed85a6786b03489f90872661afbf5e674fd3f9 SHA512 32405236e9c2936cde137bc4d4d07b548391336ce0511cd5677dcd1f85c7a142b0947e03cdceaeb37067874f5aa71daacaa1a6af95ae9fe3ad8af264f61e10f4 |
25 |
DIST virtualenv-16.7.10.tar.gz 5116776 BLAKE2B 42f0a4b4330850b504f8febd991ef6ecdcbb0821efdd94ca324a8cc34a68a760a8a98de97f0cb2384d8e6cbb0ce8f261995c6433886444e29b75ba0ce09ca12c SHA512 f06d7c354ce1910f04dbcbe1a77e60392653bbe4f638bafbe9284454db2c0e5d63cf9159201d0916fc01aaba91d45fb733b63096c38517fcd83fd00ed8b26d28 |
26 |
|
27 |
diff --git a/dev-python/pip/pip-21.1.1.ebuild b/dev-python/pip/pip-21.1.1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 461915435ff..00000000000 |
30 |
--- a/dev-python/pip/pip-21.1.1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,117 +0,0 @@ |
33 |
-# Copyright 1999-2021 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
39 |
-PYTHON_COMPAT=( python3_{7..9} pypy3 ) |
40 |
-PYTHON_REQ_USE="ssl(+),threads(+)" |
41 |
- |
42 |
-inherit bash-completion-r1 distutils-r1 |
43 |
- |
44 |
-# setuptools & wheel .whl files are required for testing, |
45 |
-# the exact version is not very important. |
46 |
-SETUPTOOLS_WHL="setuptools-56.0.0-py3-none-any.whl" |
47 |
-WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl" |
48 |
- |
49 |
-DESCRIPTION="Installs python packages -- replacement for easy_install" |
50 |
-HOMEPAGE=" |
51 |
- https://pip.pypa.io/en/stable/ |
52 |
- https://pypi.org/project/pip/ |
53 |
- https://github.com/pypa/pip/" |
54 |
-SRC_URI=" |
55 |
- https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
56 |
- test? ( |
57 |
- https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL} |
58 |
- https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL} |
59 |
- ) |
60 |
-" |
61 |
- |
62 |
-LICENSE="MIT" |
63 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips 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/freezegun[${PYTHON_USEDEP}] |
76 |
- dev-python/pretend[${PYTHON_USEDEP}] |
77 |
- dev-python/pytest[${PYTHON_USEDEP}] |
78 |
- dev-python/scripttest[${PYTHON_USEDEP}] |
79 |
- <dev-python/virtualenv-20[${PYTHON_USEDEP}] |
80 |
- dev-python/werkzeug[${PYTHON_USEDEP}] |
81 |
- dev-python/wheel[${PYTHON_USEDEP}] |
82 |
- ) |
83 |
-" |
84 |
- |
85 |
-python_prepare_all() { |
86 |
- local PATCHES=( |
87 |
- "${FILESDIR}/${PN}-21.1-no-coverage.patch" |
88 |
- ) |
89 |
- if ! use vanilla; then |
90 |
- PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" ) |
91 |
- fi |
92 |
- |
93 |
- distutils-r1_python_prepare_all |
94 |
- |
95 |
- if use test; then |
96 |
- mkdir tests/data/common_wheels/ || die |
97 |
- cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \ |
98 |
- tests/data/common_wheels/ || die |
99 |
- fi |
100 |
-} |
101 |
- |
102 |
-python_test() { |
103 |
- if [[ ${EPYTHON} == pypy* ]]; then |
104 |
- ewarn "Skipping tests on ${EPYTHON} since they are very broken" |
105 |
- return 0 |
106 |
- fi |
107 |
- |
108 |
- local deselect=( |
109 |
- tests/functional/test_install.py::test_double_install_fail |
110 |
- tests/functional/test_list.py::test_multiple_exclude_and_normalization |
111 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-download]' |
112 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-install]' |
113 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-list]' |
114 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-wheel]' |
115 |
- tests/functional/test_install.py::test_install_pip_does_not_modify_pip_when_satisfied |
116 |
- # Internet |
117 |
- tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg |
118 |
- ) |
119 |
- |
120 |
- distutils_install_for_testing --via-root |
121 |
- |
122 |
- local -x GENTOO_PIP_TESTING=1 \ |
123 |
- PATH="${TEST_DIR}/scripts:${PATH}" \ |
124 |
- PYTHONPATH="${TEST_DIR}/lib:${BUILD_DIR}/lib" |
125 |
- epytest ${deselect[@]/#/--deselect } -m "not network" |
126 |
-} |
127 |
- |
128 |
-python_install_all() { |
129 |
- # Prevent dbus auto-launch |
130 |
- # https://bugs.gentoo.org/692178 |
131 |
- export DBUS_SESSION_BUS_ADDRESS="disabled:" |
132 |
- |
133 |
- local DOCS=( AUTHORS.txt docs/html/**/*.rst ) |
134 |
- distutils-r1_python_install_all |
135 |
- |
136 |
- COMPLETION="${T}"/completion.tmp |
137 |
- |
138 |
- # 'pip completion' command embeds full $0 into completion script, which confuses |
139 |
- # 'complete' and causes QA warning when running as "${PYTHON} -m pip". |
140 |
- # This trick sets correct $0 while still calling just installed pip. |
141 |
- local pipcmd='import sys; sys.argv[0] = "pip"; from pip._internal.cli.main import main; sys.exit(main())' |
142 |
- |
143 |
- ${PYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die |
144 |
- newbashcomp "${COMPLETION}" ${PN} |
145 |
- |
146 |
- ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die |
147 |
- insinto /usr/share/zsh/site-functions |
148 |
- newins "${COMPLETION}" _pip |
149 |
-} |
150 |
|
151 |
diff --git a/dev-python/pip/pip-21.1.2.ebuild b/dev-python/pip/pip-21.1.2.ebuild |
152 |
deleted file mode 100644 |
153 |
index 7ca3bf655d5..00000000000 |
154 |
--- a/dev-python/pip/pip-21.1.2.ebuild |
155 |
+++ /dev/null |
156 |
@@ -1,124 +0,0 @@ |
157 |
-# Copyright 1999-2021 Gentoo Authors |
158 |
-# Distributed under the terms of the GNU General Public License v2 |
159 |
- |
160 |
-EAPI=7 |
161 |
- |
162 |
-PYTHON_COMPAT=( python3_{7..10} pypy3 ) |
163 |
-PYTHON_REQ_USE="ssl(+),threads(+)" |
164 |
- |
165 |
-inherit bash-completion-r1 distutils-r1 |
166 |
- |
167 |
-# setuptools & wheel .whl files are required for testing, |
168 |
-# the exact version is not very important. |
169 |
-SETUPTOOLS_WHL="setuptools-56.0.0-py3-none-any.whl" |
170 |
-WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl" |
171 |
- |
172 |
-DESCRIPTION="Installs python packages -- replacement for easy_install" |
173 |
-HOMEPAGE=" |
174 |
- https://pip.pypa.io/en/stable/ |
175 |
- https://pypi.org/project/pip/ |
176 |
- https://github.com/pypa/pip/" |
177 |
-SRC_URI=" |
178 |
- https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
179 |
- test? ( |
180 |
- https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL} |
181 |
- https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL} |
182 |
- ) |
183 |
-" |
184 |
- |
185 |
-LICENSE="MIT" |
186 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
187 |
-SLOT="0" |
188 |
-IUSE="test vanilla" |
189 |
-RESTRICT="!test? ( test )" |
190 |
- |
191 |
-RDEPEND=" |
192 |
- >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}] |
193 |
-" |
194 |
-BDEPEND=" |
195 |
- ${RDEPEND} |
196 |
- test? ( |
197 |
- $(python_gen_cond_dep ' |
198 |
- dev-python/cryptography[${PYTHON_USEDEP}] |
199 |
- dev-python/freezegun[${PYTHON_USEDEP}] |
200 |
- dev-python/pretend[${PYTHON_USEDEP}] |
201 |
- dev-python/pytest[${PYTHON_USEDEP}] |
202 |
- dev-python/scripttest[${PYTHON_USEDEP}] |
203 |
- <dev-python/virtualenv-20[${PYTHON_USEDEP}] |
204 |
- dev-python/werkzeug[${PYTHON_USEDEP}] |
205 |
- dev-python/wheel[${PYTHON_USEDEP}] |
206 |
- ' python3_{7..9}) |
207 |
- ) |
208 |
-" |
209 |
- |
210 |
-python_prepare_all() { |
211 |
- local PATCHES=( |
212 |
- "${FILESDIR}/${PN}-21.1-no-coverage.patch" |
213 |
- ) |
214 |
- if ! use vanilla; then |
215 |
- PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" ) |
216 |
- fi |
217 |
- |
218 |
- distutils-r1_python_prepare_all |
219 |
- |
220 |
- if use test; then |
221 |
- mkdir tests/data/common_wheels/ || die |
222 |
- cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \ |
223 |
- tests/data/common_wheels/ || die |
224 |
- fi |
225 |
-} |
226 |
- |
227 |
-python_test() { |
228 |
- if [[ ${EPYTHON} == pypy* ]]; then |
229 |
- ewarn "Skipping tests on ${EPYTHON} since they are very broken" |
230 |
- return 0 |
231 |
- fi |
232 |
- |
233 |
- # virtualenv-16 doesn't support python3_10 yet is still required by pip test suite |
234 |
- if [[ ${EPYTHON} == "python3.10" ]]; then |
235 |
- ewarn "Skipping tests on ${EPYTHON} due to missing dependencies" |
236 |
- return 0 |
237 |
- fi |
238 |
- |
239 |
- local deselect=( |
240 |
- tests/functional/test_install.py::test_double_install_fail |
241 |
- tests/functional/test_list.py::test_multiple_exclude_and_normalization |
242 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-download]' |
243 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-install]' |
244 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-list]' |
245 |
- 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-wheel]' |
246 |
- tests/functional/test_install.py::test_install_pip_does_not_modify_pip_when_satisfied |
247 |
- # Internet |
248 |
- tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg |
249 |
- ) |
250 |
- |
251 |
- distutils_install_for_testing --via-root |
252 |
- |
253 |
- local -x GENTOO_PIP_TESTING=1 \ |
254 |
- PATH="${TEST_DIR}/scripts:${PATH}" \ |
255 |
- PYTHONPATH="${TEST_DIR}/lib:${BUILD_DIR}/lib" |
256 |
- epytest ${deselect[@]/#/--deselect } -m "not network" |
257 |
-} |
258 |
- |
259 |
-python_install_all() { |
260 |
- # Prevent dbus auto-launch |
261 |
- # https://bugs.gentoo.org/692178 |
262 |
- export DBUS_SESSION_BUS_ADDRESS="disabled:" |
263 |
- |
264 |
- local DOCS=( AUTHORS.txt docs/html/**/*.rst ) |
265 |
- distutils-r1_python_install_all |
266 |
- |
267 |
- COMPLETION="${T}"/completion.tmp |
268 |
- |
269 |
- # 'pip completion' command embeds full $0 into completion script, which confuses |
270 |
- # 'complete' and causes QA warning when running as "${PYTHON} -m pip". |
271 |
- # This trick sets correct $0 while still calling just installed pip. |
272 |
- local pipcmd='import sys; sys.argv[0] = "pip"; from pip._internal.cli.main import main; sys.exit(main())' |
273 |
- |
274 |
- ${PYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die |
275 |
- newbashcomp "${COMPLETION}" ${PN} |
276 |
- |
277 |
- ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die |
278 |
- insinto /usr/share/zsh/site-functions |
279 |
- newins "${COMPLETION}" _pip |
280 |
-} |