1 |
commit: 51d40f6885c7bfa87ff2dc069142fb5e80880d2f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 6 06:37:14 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 6 07:59:09 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51d40f68 |
7 |
|
8 |
dev-python/pip: Bump to 22.3.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pip/Manifest | 1 + |
13 |
dev-python/pip/pip-22.3.1.ebuild | 139 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 140 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest |
17 |
index 013a993c9ef0..b697cd9d7b92 100644 |
18 |
--- a/dev-python/pip/Manifest |
19 |
+++ b/dev-python/pip/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST pip-22.2.2.gh.tar.gz 9279218 BLAKE2B 2179b0d3f5f05bbd678f1785b4dbc0613078c09c83b45faa62d766182dfeb564095abda809ed99f45644abcb06c125efc528aeaed3ad40ab1c9e8972e33ccbb2 SHA512 bd59e28b55475b77a8f11ea771cbad3b2602ff974e219f9a55288963a9522c9279a5b00fde40fb65cfebefae0e905d3da3c06fe50b402aa5326b25f70a98a015 |
22 |
+DIST pip-22.3.1.gh.tar.gz 9326504 BLAKE2B b125599a9f77e49414dae13ca3fe0ac27c9b7e127f6ca7f467f3af4e0b51d835f2790f8311b2ec616966c299fb431403b456f7b38ea1f3fe1e7f769f7d5a78e5 SHA512 c7865c4ce79b0fea7ba469fe593af3be205b3bdb574a6ae019842e0f82a0af406ec905d8c6ff02fbbafe01630c8899a398d071ce74501ca830249160f2f6df98 |
23 |
DIST pip-22.3.gh.tar.gz 9326079 BLAKE2B 68c0151f9c1ae14a6cb9b41d39521b3898b156f642361df5f3b272e4ba1640e794189d5d991dcb56156745c587cfbe02161763683965c2bb8a69adb9f109fd00 SHA512 804c5bad805da77d922e5e123440f6b7639a33769b41ab5cd1c27e5c5f0e4548ce6e5a0cc4c4d4fa42d25e4699d67d60db059045f97ba974b2ea4d552683a693 |
24 |
DIST setuptools-62.3.2-py3-none-any.whl 1225929 BLAKE2B 608952e201f749ebf557e3962ba9856d5bdcbc534f3a25598cab0d6c53282cfb3b9f007ba135497a8addf49db4c02bc4387c486d95a4529d01ce4114154ec28a SHA512 366d69dc44e326dd7549cdacd8dec481a14dce4feef4338adc38b9de5c4c338f04d61696e13ce8603be1315f2e8734100f92d3fe4b4b11843e19f550c9631978 |
25 |
DIST virtualenv-16.7.12.gh.tar.gz 8906590 BLAKE2B a1f206769e4e5797562906162e492e44c4a72720e4f88a0362dc802ce2df20c65aaab6a72dce2238445601a10fae59bd90cd362217994d30911f105afd71c5fa SHA512 0278b33fb19f6553e70ad3dcffa6ea1a455ff435b216ac9b4fadff216b2932714faa2bb6027af3058010111d8511a5c2fcd424f31c9645be361603971f111c8e |
26 |
|
27 |
diff --git a/dev-python/pip/pip-22.3.1.ebuild b/dev-python/pip/pip-22.3.1.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..3fce9e17c779 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pip/pip-22.3.1.ebuild |
32 |
@@ -0,0 +1,139 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+# please bump dev-python/ensurepip-wheels along with this package! |
39 |
+ |
40 |
+DISTUTILS_USE_PEP517=setuptools |
41 |
+PYTHON_TESTED=( python3_{8..10} ) |
42 |
+PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_11 pypy3 ) |
43 |
+PYTHON_REQ_USE="ssl(+),threads(+)" |
44 |
+ |
45 |
+inherit bash-completion-r1 distutils-r1 multiprocessing |
46 |
+ |
47 |
+# setuptools & wheel .whl files are required for testing, |
48 |
+# the exact version is not very important. |
49 |
+SETUPTOOLS_WHL="setuptools-62.3.2-py3-none-any.whl" |
50 |
+WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl" |
51 |
+# upstream still requires virtualenv-16 for testing, we are now fetching |
52 |
+# it directly to avoid blockers with virtualenv-20 |
53 |
+VENV_PV=16.7.12 |
54 |
+ |
55 |
+DESCRIPTION="The PyPA recommended tool for installing Python packages" |
56 |
+HOMEPAGE=" |
57 |
+ https://pip.pypa.io/en/stable/ |
58 |
+ https://pypi.org/project/pip/ |
59 |
+ https://github.com/pypa/pip/ |
60 |
+" |
61 |
+SRC_URI=" |
62 |
+ https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz |
63 |
+ test? ( |
64 |
+ https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL} |
65 |
+ https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL} |
66 |
+ https://github.com/pypa/virtualenv/archive/${VENV_PV}.tar.gz |
67 |
+ -> virtualenv-${VENV_PV}.gh.tar.gz |
68 |
+ ) |
69 |
+" |
70 |
+ |
71 |
+LICENSE="MIT" |
72 |
+# bundled deps |
73 |
+LICENSE+=" Apache-2.0 BSD BSD-2 ISC LGPL-2.1+ MPL-2.0 PSF-2" |
74 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
75 |
+SLOT="0" |
76 |
+IUSE="test-rust vanilla" |
77 |
+ |
78 |
+RDEPEND=" |
79 |
+ >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}] |
80 |
+" |
81 |
+BDEPEND=" |
82 |
+ ${RDEPEND} |
83 |
+ test? ( |
84 |
+ $(python_gen_cond_dep ' |
85 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
86 |
+ dev-python/pretend[${PYTHON_USEDEP}] |
87 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
88 |
+ dev-python/scripttest[${PYTHON_USEDEP}] |
89 |
+ dev-python/tomli-w[${PYTHON_USEDEP}] |
90 |
+ dev-python/werkzeug[${PYTHON_USEDEP}] |
91 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
92 |
+ test-rust? ( |
93 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
94 |
+ ) |
95 |
+ ' "${PYTHON_TESTED[@]}") |
96 |
+ ) |
97 |
+" |
98 |
+ |
99 |
+distutils_enable_tests pytest |
100 |
+ |
101 |
+python_prepare_all() { |
102 |
+ local PATCHES=( |
103 |
+ "${FILESDIR}/pip-22.2.1-no-coverage.patch" |
104 |
+ ) |
105 |
+ if ! use vanilla; then |
106 |
+ PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" ) |
107 |
+ fi |
108 |
+ |
109 |
+ distutils-r1_python_prepare_all |
110 |
+ |
111 |
+ if use test; then |
112 |
+ mkdir tests/data/common_wheels/ || die |
113 |
+ cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \ |
114 |
+ tests/data/common_wheels/ || die |
115 |
+ fi |
116 |
+} |
117 |
+ |
118 |
+python_compile_all() { |
119 |
+ # 'pip completion' command embeds full $0 into completion script, which confuses |
120 |
+ # 'complete' and causes QA warning when running as "${PYTHON} -m pip". |
121 |
+ # This trick sets correct $0 while still calling just installed pip. |
122 |
+ local pipcmd='import sys; sys.argv[0] = "pip"; __file__ = ""; from pip._internal.cli.main import main; sys.exit(main())' |
123 |
+ "${EPYTHON}" -c "${pipcmd}" completion --bash > completion.bash || die |
124 |
+ "${EPYTHON}" -c "${pipcmd}" completion --zsh > completion.zsh || die |
125 |
+} |
126 |
+ |
127 |
+python_test() { |
128 |
+ if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then |
129 |
+ einfo "Skipping tests on ${EPYTHON} since virtualenv-16 is broken" |
130 |
+ return 0 |
131 |
+ fi |
132 |
+ |
133 |
+ local EPYTEST_DESELECT=( |
134 |
+ tests/functional/test_inspect.py::test_inspect_basic |
135 |
+ tests/functional/test_install.py::test_double_install_fail |
136 |
+ tests/functional/test_list.py::test_multiple_exclude_and_normalization |
137 |
+ # Internet |
138 |
+ tests/functional/test_install.py::test_install_dry_run |
139 |
+ tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg |
140 |
+ tests/functional/test_install.py::test_editable_install__local_dir_no_setup_py_with_pyproject |
141 |
+ tests/functional/test_install.py::test_editable_install__local_dir_setup_requires_with_pyproject |
142 |
+ tests/functional/test_install.py::test_install_8559_wheel_package_present |
143 |
+ # git: fatal: transport 'file' not allowed |
144 |
+ tests/functional/test_install_vcs_git.py::test_check_submodule_addition |
145 |
+ ) |
146 |
+ |
147 |
+ if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then |
148 |
+ EPYTEST_DESELECT+=( |
149 |
+ tests/functional/test_install.py::test_install_sends_client_cert |
150 |
+ tests/functional/test_install_config.py::test_do_not_prompt_for_authentication |
151 |
+ tests/functional/test_install_config.py::test_prompt_for_authentication |
152 |
+ tests/functional/test_install_config.py::test_prompt_for_keyring_if_needed |
153 |
+ ) |
154 |
+ fi |
155 |
+ |
156 |
+ local -x GENTOO_PIP_TESTING=1 |
157 |
+ local -x PYTHONPATH="${WORKDIR}/virtualenv-${VENV_PV}" |
158 |
+ local -x SETUPTOOLS_USE_DISTUTILS=stdlib |
159 |
+ local -x PIP_DISABLE_PIP_VERSION_CHECK=1 |
160 |
+ epytest -m "not network" -n "$(makeopts_jobs)" |
161 |
+} |
162 |
+ |
163 |
+python_install_all() { |
164 |
+ local DOCS=( AUTHORS.txt docs/html/**/*.rst ) |
165 |
+ distutils-r1_python_install_all |
166 |
+ |
167 |
+ newbashcomp completion.bash pip |
168 |
+ |
169 |
+ insinto /usr/share/zsh/site-functions |
170 |
+ newins completion.zsh _pip |
171 |
+} |