1 |
commit: f644e87263061d508f23ee254ed356446fc6d67b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 26 20:05:41 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 26 21:35:20 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f644e872 |
7 |
|
8 |
dev-python/pip: Bump to 21.1.3 |
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.3.ebuild | 133 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 134 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest |
17 |
index 48810da85ba..872f3d0bd03 100644 |
18 |
--- a/dev-python/pip/Manifest |
19 |
+++ b/dev-python/pip/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST pip-21.1.2.tar.gz 8772481 BLAKE2B 23dbcc5dd7e7f66934282b9c93958267eb367d418b6c814032b7b89e0d94c73c143626781b8df081394019d2e575030b7a2fd61bb5221992ce2060cf069e8b04 SHA512 54a2b6074fcb2640868dedcabb5087b79a53a8ad57ec4ab5acf2862b8037403d8f156c2853ab60c2f10c6af999a0a90774f0bc3eca2978a82590935d37af167f |
22 |
+DIST pip-21.1.3.tar.gz 8772944 BLAKE2B 4c50fcb7c05e05d11b137d08547d9d55f19687442b8d44caf05d19917b200bcf860032cb28745e41d51afda80a7ac09d60afb8d619ade5b965ed87bac1133006 SHA512 21bdc78f24751981ae49c9fda0430fc92b8d33eb7a546bc344e8cea4aa85dcd42191ef8eb3fdfb4f3d1cb5921698f819d73e6e190d8745cf7ddfa52732d95999 |
23 |
DIST setuptools-56.0.0-py3-none-any.whl 784941 BLAKE2B 136352bcaeeb803f94983db2e0f9ec79dacc23a6742a2f6f1b4bdd2b29a104f4965d78f9b4adf1a501c7bf39d4ed85a6786b03489f90872661afbf5e674fd3f9 SHA512 32405236e9c2936cde137bc4d4d07b548391336ce0511cd5677dcd1f85c7a142b0947e03cdceaeb37067874f5aa71daacaa1a6af95ae9fe3ad8af264f61e10f4 |
24 |
DIST virtualenv-16.7.10.tar.gz 5116776 BLAKE2B 42f0a4b4330850b504f8febd991ef6ecdcbb0821efdd94ca324a8cc34a68a760a8a98de97f0cb2384d8e6cbb0ce8f261995c6433886444e29b75ba0ce09ca12c SHA512 f06d7c354ce1910f04dbcbe1a77e60392653bbe4f638bafbe9284454db2c0e5d63cf9159201d0916fc01aaba91d45fb733b63096c38517fcd83fd00ed8b26d28 |
25 |
DIST wheel-0.36.2-py2.py3-none-any.whl 35046 BLAKE2B bc4e8dab7c74eea34d3b4a813b7eaf6295a99a396a861b6cdd76f743043e89140bad132bdd13e385e8945ce02e0798e1d3ac73fc1b23bde5b2a83e4bb4dd5cdc SHA512 6bb5119b4d3704fe1e3c1eaaa3124edab13f61b46f8a0a8e75974fac4e5b25d8b53606071a03a8d8990ad1cfe2ab247ddea260098df2c0c35ae965be47080284 |
26 |
|
27 |
diff --git a/dev-python/pip/pip-21.1.3.ebuild b/dev-python/pip/pip-21.1.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..6dddd21d4f6 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pip/pip-21.1.3.ebuild |
32 |
@@ -0,0 +1,133 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} 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-56.0.0-py3-none-any.whl" |
46 |
+WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl" |
47 |
+# upstream still requires virtualenv-16 for testing, we are now fetching |
48 |
+# it directly to avoid blockers with virtualenv-20 |
49 |
+VENV_PV=16.7.10 |
50 |
+ |
51 |
+DESCRIPTION="Installs python packages -- replacement for easy_install" |
52 |
+HOMEPAGE=" |
53 |
+ https://pip.pypa.io/en/stable/ |
54 |
+ https://pypi.org/project/pip/ |
55 |
+ https://github.com/pypa/pip/" |
56 |
+SRC_URI=" |
57 |
+ https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
58 |
+ test? ( |
59 |
+ https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL} |
60 |
+ https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL} |
61 |
+ https://github.com/pypa/virtualenv/archive/${VENV_PV}.tar.gz |
62 |
+ -> virtualenv-${VENV_PV}.tar.gz |
63 |
+ ) |
64 |
+" |
65 |
+ |
66 |
+LICENSE="MIT" |
67 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos" |
68 |
+SLOT="0" |
69 |
+IUSE="test vanilla" |
70 |
+RESTRICT="!test? ( test )" |
71 |
+ |
72 |
+RDEPEND=" |
73 |
+ >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}] |
74 |
+" |
75 |
+BDEPEND=" |
76 |
+ ${RDEPEND} |
77 |
+ test? ( |
78 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
79 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
80 |
+ dev-python/pretend[${PYTHON_USEDEP}] |
81 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
82 |
+ dev-python/scripttest[${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}-21.1-no-coverage.patch" |
91 |
+ ) |
92 |
+ if ! use vanilla; then |
93 |
+ PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" ) |
94 |
+ fi |
95 |
+ |
96 |
+ distutils-r1_python_prepare_all |
97 |
+ |
98 |
+ if use test; then |
99 |
+ mkdir tests/data/common_wheels/ || die |
100 |
+ cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \ |
101 |
+ tests/data/common_wheels/ || die |
102 |
+ |
103 |
+ pushd "${WORKDIR}/virtualenv-${VENV_PV}" >/dev/null || die |
104 |
+ eapply "${FILESDIR}/virtualenv-${VENV_PV}-py310.patch" |
105 |
+ popd >/dev/null || die |
106 |
+ fi |
107 |
+} |
108 |
+ |
109 |
+python_test() { |
110 |
+ if [[ ${EPYTHON} == pypy* ]]; then |
111 |
+ ewarn "Skipping tests on ${EPYTHON} since they are very broken" |
112 |
+ return 0 |
113 |
+ fi |
114 |
+ |
115 |
+ local deselect=( |
116 |
+ tests/functional/test_install.py::test_double_install_fail |
117 |
+ tests/functional/test_list.py::test_multiple_exclude_and_normalization |
118 |
+ 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-download]' |
119 |
+ 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-install]' |
120 |
+ 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-list]' |
121 |
+ 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-wheel]' |
122 |
+ tests/functional/test_install.py::test_install_pip_does_not_modify_pip_when_satisfied |
123 |
+ # Internet |
124 |
+ tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg |
125 |
+ ) |
126 |
+ |
127 |
+ [[ ${EPYTHON} == python3.10 ]] && deselect+=( |
128 |
+ tests/lib/test_lib.py::test_correct_pip_version |
129 |
+ # uses vendored packaging that uses deprecated distutils |
130 |
+ tests/functional/test_warning.py::test_pip_works_with_warnings_as_errors |
131 |
+ ) |
132 |
+ |
133 |
+ distutils_install_for_testing |
134 |
+ pushd "${WORKDIR}/virtualenv-${VENV_PV}" >/dev/null || die |
135 |
+ distutils_install_for_testing |
136 |
+ popd >/dev/null || die |
137 |
+ |
138 |
+ local -x GENTOO_PIP_TESTING=1 \ |
139 |
+ PATH="${TEST_DIR}/scripts:${PATH}" \ |
140 |
+ PYTHONPATH="${TEST_DIR}/lib:${BUILD_DIR}/lib" |
141 |
+ epytest ${deselect[@]/#/--deselect } -m "not network" |
142 |
+} |
143 |
+ |
144 |
+python_install_all() { |
145 |
+ # Prevent dbus auto-launch |
146 |
+ # https://bugs.gentoo.org/692178 |
147 |
+ export DBUS_SESSION_BUS_ADDRESS="disabled:" |
148 |
+ |
149 |
+ local DOCS=( AUTHORS.txt docs/html/**/*.rst ) |
150 |
+ distutils-r1_python_install_all |
151 |
+ |
152 |
+ COMPLETION="${T}"/completion.tmp |
153 |
+ |
154 |
+ # 'pip completion' command embeds full $0 into completion script, which confuses |
155 |
+ # 'complete' and causes QA warning when running as "${PYTHON} -m pip". |
156 |
+ # This trick sets correct $0 while still calling just installed pip. |
157 |
+ local pipcmd='import sys; sys.argv[0] = "pip"; from pip._internal.cli.main import main; sys.exit(main())' |
158 |
+ |
159 |
+ ${PYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die |
160 |
+ newbashcomp "${COMPLETION}" ${PN} |
161 |
+ |
162 |
+ ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die |
163 |
+ insinto /usr/share/zsh/site-functions |
164 |
+ newins "${COMPLETION}" _pip |
165 |
+} |