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/, dev-python/pip/files/
Date: Sun, 01 Aug 2021 08:17:10
Message-Id: 1627805692.3078d53d27bdcfac204e1450f00ab5b885e43273.mgorny@gentoo
1 commit: 3078d53d27bdcfac204e1450f00ab5b885e43273
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 1 06:45:56 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 1 08:14:52 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3078d53d
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 .../pip/files/virtualenv-16.7.10-py310.patch | 84 -------------
14 dev-python/pip/pip-21.1.2-r1.ebuild | 133 ---------------------
15 3 files changed, 220 deletions(-)
16
17 diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest
18 index b92f07f57c9..d9a8e6a2972 100644
19 --- a/dev-python/pip/Manifest
20 +++ b/dev-python/pip/Manifest
21 @@ -1,8 +1,5 @@
22 -DIST pip-21.1.2.tar.gz 8772481 BLAKE2B 23dbcc5dd7e7f66934282b9c93958267eb367d418b6c814032b7b89e0d94c73c143626781b8df081394019d2e575030b7a2fd61bb5221992ce2060cf069e8b04 SHA512 54a2b6074fcb2640868dedcabb5087b79a53a8ad57ec4ab5acf2862b8037403d8f156c2853ab60c2f10c6af999a0a90774f0bc3eca2978a82590935d37af167f
23 DIST pip-21.1.3.tar.gz 8772944 BLAKE2B 4c50fcb7c05e05d11b137d08547d9d55f19687442b8d44caf05d19917b200bcf860032cb28745e41d51afda80a7ac09d60afb8d619ade5b965ed87bac1133006 SHA512 21bdc78f24751981ae49c9fda0430fc92b8d33eb7a546bc344e8cea4aa85dcd42191ef8eb3fdfb4f3d1cb5921698f819d73e6e190d8745cf7ddfa52732d95999
24 DIST pip-21.2.1.tar.gz 8781474 BLAKE2B 6a6a4972de31cea2f9ee2d70df00acec65efe344fa13e56ecf9b2f55125baa2effb30bf25c7649f5f30b2ecf9b5ebb7d32dc0f2dfa101444510c8573bd0c60be SHA512 2fff39703eb387ded66552ee62c2b3e4d18da6e8a904399919a5c51f65ddf1695ad410408fe5370877a1ce9992e7c07e091a1852dfb136ce5580e31fc1c03b81
25 -DIST setuptools-56.0.0-py3-none-any.whl 784941 BLAKE2B 136352bcaeeb803f94983db2e0f9ec79dacc23a6742a2f6f1b4bdd2b29a104f4965d78f9b4adf1a501c7bf39d4ed85a6786b03489f90872661afbf5e674fd3f9 SHA512 32405236e9c2936cde137bc4d4d07b548391336ce0511cd5677dcd1f85c7a142b0947e03cdceaeb37067874f5aa71daacaa1a6af95ae9fe3ad8af264f61e10f4
26 DIST setuptools-57.4.0-py3-none-any.whl 819017 BLAKE2B afba86cf9aeea58ee869fdc11bbb192abbf2f89710e468b90dc291fec228ca16202483e36195a5ad4e2b8d210326bc83e2be6ec696ab413d94ffaeb05bb9c030 SHA512 9bf230f4e0e72acab07ab372a6ca05adb3d175a8079d2f73d327c632f3d27b8ee10442d3e60f4c94a6e61d5ba2212fc78187ca6e1717e15bb570bdce4263fd0b
27 -DIST virtualenv-16.7.10.tar.gz 5116776 BLAKE2B 42f0a4b4330850b504f8febd991ef6ecdcbb0821efdd94ca324a8cc34a68a760a8a98de97f0cb2384d8e6cbb0ce8f261995c6433886444e29b75ba0ce09ca12c SHA512 f06d7c354ce1910f04dbcbe1a77e60392653bbe4f638bafbe9284454db2c0e5d63cf9159201d0916fc01aaba91d45fb733b63096c38517fcd83fd00ed8b26d28
28 DIST virtualenv-16.7.11.tar.gz 8134533 BLAKE2B ea81e11c210d911bf9576edf7b1754721b270adcc5d9633415d33b8f659149d64932fe2d366200121ec00c266c25dae380e248add438fc357477114eba4dfb4e SHA512 82d0d2a964508511e8e1686703581ff543f65791dc2449d9741d46ea57c4c89673947d2477ba374176f05fcea2a5ca572aa650c61c4f3271c4d73d1ff9d9ff42
29 DIST wheel-0.36.2-py2.py3-none-any.whl 35046 BLAKE2B bc4e8dab7c74eea34d3b4a813b7eaf6295a99a396a861b6cdd76f743043e89140bad132bdd13e385e8945ce02e0798e1d3ac73fc1b23bde5b2a83e4bb4dd5cdc SHA512 6bb5119b4d3704fe1e3c1eaaa3124edab13f61b46f8a0a8e75974fac4e5b25d8b53606071a03a8d8990ad1cfe2ab247ddea260098df2c0c35ae965be47080284
30
31 diff --git a/dev-python/pip/files/virtualenv-16.7.10-py310.patch b/dev-python/pip/files/virtualenv-16.7.10-py310.patch
32 deleted file mode 100644
33 index 27c17a07445..00000000000
34 --- a/dev-python/pip/files/virtualenv-16.7.10-py310.patch
35 +++ /dev/null
36 @@ -1,84 +0,0 @@
37 -From b4aef0a53ba63c34e45413754705af4e438ef5df Mon Sep 17 00:00:00 2001
38 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@×××××××.cz>
39 -Date: Wed, 5 May 2021 10:59:02 +0200
40 -Subject: [PATCH] Legacy: Use sysconfig.get_default_scheme() where available
41 - (#2109)
42 -
43 ----
44 - .pre-commit-config.yaml | 43 ------------------------------------
45 - docs/changelog/2109.misc.rst | 1 +
46 - virtualenv.py | 3 ++-
47 - 3 files changed, 3 insertions(+), 44 deletions(-)
48 - delete mode 100644 .pre-commit-config.yaml
49 - create mode 100644 docs/changelog/2109.misc.rst
50 -
51 -diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
52 -deleted file mode 100644
53 -index 0b8234b7d..000000000
54 ---- a/.pre-commit-config.yaml
55 -+++ /dev/null
56 -@@ -1,43 +0,0 @@
57 --repos:
58 --- repo: https://github.com/ambv/black
59 -- rev: 19.10b0
60 -- hooks:
61 -- - id: black
62 -- args: [--safe]
63 -- language_version: python3.8
64 --- repo: https://github.com/asottile/blacken-docs
65 -- rev: v1.3.0
66 -- hooks:
67 -- - id: blacken-docs
68 -- additional_dependencies: [black==19.3b0]
69 -- language_version: python3.8
70 --- repo: https://github.com/asottile/seed-isort-config
71 -- rev: v1.9.3
72 -- hooks:
73 -- - id: seed-isort-config
74 -- args: [--application-directories, '.']
75 --- repo: https://github.com/pre-commit/mirrors-isort
76 -- rev: v4.3.21
77 -- hooks:
78 -- - id: isort
79 --- repo: https://github.com/pre-commit/pre-commit-hooks
80 -- rev: v2.4.0
81 -- hooks:
82 -- - id: trailing-whitespace
83 -- - id: end-of-file-fixer
84 -- - id: check-yaml
85 -- - id: debug-statements
86 -- - id: check-merge-conflict
87 -- - id: trailing-whitespace
88 -- - id: check-docstring-first
89 -- - id: flake8
90 -- additional_dependencies: ["flake8-bugbear == 19.8.0"]
91 -- language_version: python3.8
92 --- repo: https://github.com/asottile/pyupgrade
93 -- rev: v1.25.1
94 -- hooks:
95 -- - id: pyupgrade
96 --- repo: https://github.com/pre-commit/pygrep-hooks
97 -- rev: v1.4.2
98 -- hooks:
99 -- - id: rst-backticks
100 -diff --git a/docs/changelog/2109.misc.rst b/docs/changelog/2109.misc.rst
101 -new file mode 100644
102 -index 000000000..985f955df
103 ---- /dev/null
104 -+++ b/docs/changelog/2109.misc.rst
105 -@@ -0,0 +1 @@
106 -+Preserve compatibility with Python 3.10 - by ``hroncok``
107 -diff --git a/virtualenv.py b/virtualenv.py
108 -index 3085d1d18..86aa65674 100755
109 ---- a/virtualenv.py
110 -+++ b/virtualenv.py
111 -@@ -1809,7 +1809,8 @@ def fix_local_scheme(home_dir, symlink=True):
112 - pass
113 - else:
114 - # noinspection PyProtectedMember
115 -- if sysconfig._get_default_scheme() == "posix_local":
116 -+ get_scheme = getattr(sysconfig, "get_default_scheme", None) or sysconfig._get_default_scheme
117 -+ if get_scheme() == "posix_local":
118 - local_path = os.path.join(home_dir, "local")
119 - if not os.path.exists(local_path):
120 - os.mkdir(local_path)
121
122 diff --git a/dev-python/pip/pip-21.1.2-r1.ebuild b/dev-python/pip/pip-21.1.2-r1.ebuild
123 deleted file mode 100644
124 index b1ccca2fad0..00000000000
125 --- a/dev-python/pip/pip-21.1.2-r1.ebuild
126 +++ /dev/null
127 @@ -1,133 +0,0 @@
128 -# Copyright 1999-2021 Gentoo Authors
129 -# Distributed under the terms of the GNU General Public License v2
130 -
131 -EAPI=7
132 -
133 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
134 -PYTHON_REQ_USE="ssl(+),threads(+)"
135 -
136 -inherit bash-completion-r1 distutils-r1
137 -
138 -# setuptools & wheel .whl files are required for testing,
139 -# the exact version is not very important.
140 -SETUPTOOLS_WHL="setuptools-56.0.0-py3-none-any.whl"
141 -WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl"
142 -# upstream still requires virtualenv-16 for testing, we are now fetching
143 -# it directly to avoid blockers with virtualenv-20
144 -VENV_PV=16.7.10
145 -
146 -DESCRIPTION="Installs python packages -- replacement for easy_install"
147 -HOMEPAGE="
148 - https://pip.pypa.io/en/stable/
149 - https://pypi.org/project/pip/
150 - https://github.com/pypa/pip/"
151 -SRC_URI="
152 - https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
153 - test? (
154 - https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL}
155 - https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL}
156 - https://github.com/pypa/virtualenv/archive/${VENV_PV}.tar.gz
157 - -> virtualenv-${VENV_PV}.tar.gz
158 - )
159 -"
160 -
161 -LICENSE="MIT"
162 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos"
163 -SLOT="0"
164 -IUSE="test vanilla"
165 -RESTRICT="!test? ( test )"
166 -
167 -RDEPEND="
168 - >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}]
169 -"
170 -BDEPEND="
171 - ${RDEPEND}
172 - test? (
173 - dev-python/cryptography[${PYTHON_USEDEP}]
174 - dev-python/freezegun[${PYTHON_USEDEP}]
175 - dev-python/pretend[${PYTHON_USEDEP}]
176 - dev-python/pytest[${PYTHON_USEDEP}]
177 - dev-python/scripttest[${PYTHON_USEDEP}]
178 - dev-python/werkzeug[${PYTHON_USEDEP}]
179 - dev-python/wheel[${PYTHON_USEDEP}]
180 - )
181 -"
182 -
183 -python_prepare_all() {
184 - local PATCHES=(
185 - "${FILESDIR}/${PN}-21.1-no-coverage.patch"
186 - )
187 - if ! use vanilla; then
188 - PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" )
189 - fi
190 -
191 - distutils-r1_python_prepare_all
192 -
193 - if use test; then
194 - mkdir tests/data/common_wheels/ || die
195 - cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \
196 - tests/data/common_wheels/ || die
197 -
198 - pushd "${WORKDIR}/virtualenv-${VENV_PV}" >/dev/null || die
199 - eapply "${FILESDIR}/virtualenv-${VENV_PV}-py310.patch"
200 - popd >/dev/null || die
201 - fi
202 -}
203 -
204 -python_test() {
205 - if [[ ${EPYTHON} == pypy* ]]; then
206 - ewarn "Skipping tests on ${EPYTHON} since they are very broken"
207 - return 0
208 - fi
209 -
210 - local deselect=(
211 - tests/functional/test_install.py::test_double_install_fail
212 - tests/functional/test_list.py::test_multiple_exclude_and_normalization
213 - 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-download]'
214 - 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-install]'
215 - 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-list]'
216 - 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-wheel]'
217 - tests/functional/test_install.py::test_install_pip_does_not_modify_pip_when_satisfied
218 - # Internet
219 - tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg
220 - )
221 -
222 - [[ ${EPYTHON} == python3.10 ]] && deselect+=(
223 - tests/lib/test_lib.py::test_correct_pip_version
224 - # uses vendored packaging that uses deprecated distutils
225 - tests/functional/test_warning.py::test_pip_works_with_warnings_as_errors
226 - )
227 -
228 - distutils_install_for_testing
229 - pushd "${WORKDIR}/virtualenv-${VENV_PV}" >/dev/null || die
230 - distutils_install_for_testing
231 - popd >/dev/null || die
232 -
233 - local -x GENTOO_PIP_TESTING=1 \
234 - PATH="${TEST_DIR}/scripts:${PATH}" \
235 - PYTHONPATH="${TEST_DIR}/lib:${BUILD_DIR}/lib"
236 - epytest ${deselect[@]/#/--deselect } -m "not network"
237 -}
238 -
239 -python_install_all() {
240 - # Prevent dbus auto-launch
241 - # https://bugs.gentoo.org/692178
242 - export DBUS_SESSION_BUS_ADDRESS="disabled:"
243 -
244 - local DOCS=( AUTHORS.txt docs/html/**/*.rst )
245 - distutils-r1_python_install_all
246 -
247 - COMPLETION="${T}"/completion.tmp
248 -
249 - # 'pip completion' command embeds full $0 into completion script, which confuses
250 - # 'complete' and causes QA warning when running as "${PYTHON} -m pip".
251 - # This trick sets correct $0 while still calling just installed pip.
252 - local pipcmd='import sys; sys.argv[0] = "pip"; from pip._internal.cli.main import main; sys.exit(main())'
253 -
254 - ${PYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die
255 - newbashcomp "${COMPLETION}" ${PN}
256 -
257 - ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die
258 - insinto /usr/share/zsh/site-functions
259 - newins "${COMPLETION}" _pip
260 -}