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/
Date: Thu, 06 Jan 2022 20:52:29
Message-Id: 1641502338.c552b77b231d811f4f8400bc32a6d1155d2a222f.mgorny@gentoo
1 commit: c552b77b231d811f4f8400bc32a6d1155d2a222f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 6 19:04:26 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 6 20:52:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c552b77b
7
8 dev-python/pip: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pip/pip-21.3.1.ebuild | 149 ---------------------------------------
13 1 file changed, 149 deletions(-)
14
15 diff --git a/dev-python/pip/pip-21.3.1.ebuild b/dev-python/pip/pip-21.3.1.ebuild
16 deleted file mode 100644
17 index deed1e87f702..000000000000
18 --- a/dev-python/pip/pip-21.3.1.ebuild
19 +++ /dev/null
20 @@ -1,149 +0,0 @@
21 -# Copyright 1999-2021 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=8
25 -
26 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
27 -PYTHON_REQ_USE="ssl(+),threads(+)"
28 -
29 -inherit bash-completion-r1 distutils-r1
30 -
31 -# setuptools & wheel .whl files are required for testing,
32 -# the exact version is not very important.
33 -SETUPTOOLS_WHL="setuptools-57.4.0-py3-none-any.whl"
34 -WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl"
35 -# upstream still requires virtualenv-16 for testing, we are now fetching
36 -# it directly to avoid blockers with virtualenv-20
37 -VENV_PV=16.7.11
38 -
39 -DESCRIPTION="Installs python packages -- replacement for easy_install"
40 -HOMEPAGE="
41 - https://pip.pypa.io/en/stable/
42 - https://pypi.org/project/pip/
43 - https://github.com/pypa/pip/"
44 -SRC_URI="
45 - https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
46 - test? (
47 - https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL}
48 - https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL}
49 - https://github.com/pypa/virtualenv/archive/${VENV_PV}.tar.gz
50 - -> virtualenv-${VENV_PV}.tar.gz
51 - )
52 -"
53 -
54 -LICENSE="MIT"
55 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos"
56 -SLOT="0"
57 -IUSE="test vanilla"
58 -RESTRICT="!test? ( test )"
59 -
60 -RDEPEND="
61 - >=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}]
62 -"
63 -BDEPEND="
64 - ${RDEPEND}
65 - test? (
66 - dev-python/freezegun[${PYTHON_USEDEP}]
67 - dev-python/pretend[${PYTHON_USEDEP}]
68 - dev-python/pytest[${PYTHON_USEDEP}]
69 - dev-python/scripttest[${PYTHON_USEDEP}]
70 - dev-python/werkzeug[${PYTHON_USEDEP}]
71 - dev-python/wheel[${PYTHON_USEDEP}]
72 - !alpha? ( !hppa? ( !ia64? (
73 - dev-python/cryptography[${PYTHON_USEDEP}]
74 - ) ) )
75 - )
76 -"
77 -
78 -python_prepare_all() {
79 - local PATCHES=(
80 - "${FILESDIR}/${PN}-21.3-no-coverage.patch"
81 - "${FILESDIR}/${P}-cryptography-tests.patch"
82 - )
83 - if ! use vanilla; then
84 - PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" )
85 - fi
86 -
87 - distutils-r1_python_prepare_all
88 -
89 - if use test; then
90 - mkdir tests/data/common_wheels/ || die
91 - cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \
92 - tests/data/common_wheels/ || die
93 - fi
94 -}
95 -
96 -python_test() {
97 - if [[ ${EPYTHON} == pypy* ]]; then
98 - ewarn "Skipping tests on ${EPYTHON} since they are very broken"
99 - return 0
100 - fi
101 -
102 - local EPYTEST_DESELECT=(
103 - tests/functional/test_install.py::test_double_install_fail
104 - tests/functional/test_list.py::test_multiple_exclude_and_normalization
105 - 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-download]'
106 - 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-install]'
107 - 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-list]'
108 - 'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-wheel]'
109 - tests/functional/test_install.py::test_install_pip_does_not_modify_pip_when_satisfied
110 - # Internet
111 - tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg
112 - tests/functional/test_install.py::test_editable_install__local_dir_no_setup_py_with_pyproject
113 - tests/functional/test_install.py::test_editable_install__local_dir_setup_requires_with_pyproject
114 - )
115 -
116 - local EPYTEST_IGNORE=(
117 - # require tomli-w that needs to be keyworded (added in -r1)
118 - tests/functional/test_pep517.py
119 - tests/functional/test_pep660.py
120 - )
121 -
122 - [[ ${EPYTHON} == python3.10 ]] && EPYTEST_DESELECT+=(
123 - tests/lib/test_lib.py::test_correct_pip_version
124 - # uses vendored packaging that uses deprecated distutils
125 - tests/functional/test_warning.py::test_pip_works_with_warnings_as_errors
126 - )
127 -
128 - if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then
129 - EPYTEST_DESELECT+=(
130 - tests/functional/test_install.py::test_install_sends_client_cert
131 - tests/functional/test_install_config.py::test_do_not_prompt_for_authentication
132 - tests/functional/test_install_config.py::test_prompt_for_authentication
133 - tests/functional/test_install_config.py::test_prompt_for_keyring_if_needed
134 - )
135 - fi
136 -
137 - distutils_install_for_testing
138 - pushd "${WORKDIR}/virtualenv-${VENV_PV}" >/dev/null || die
139 - distutils_install_for_testing
140 - popd >/dev/null || die
141 -
142 - local -x GENTOO_PIP_TESTING=1 \
143 - PATH="${TEST_DIR}/scripts:${PATH}" \
144 - PYTHONPATH="${TEST_DIR}/lib:${BUILD_DIR}/lib"
145 - epytest -m "not network"
146 -}
147 -
148 -python_install_all() {
149 - # Prevent dbus auto-launch
150 - # https://bugs.gentoo.org/692178
151 - export DBUS_SESSION_BUS_ADDRESS="disabled:"
152 -
153 - local DOCS=( AUTHORS.txt docs/html/**/*.rst )
154 - distutils-r1_python_install_all
155 -
156 - COMPLETION="${T}"/completion.tmp
157 -
158 - # 'pip completion' command embeds full $0 into completion script, which confuses
159 - # 'complete' and causes QA warning when running as "${PYTHON} -m pip".
160 - # This trick sets correct $0 while still calling just installed pip.
161 - local pipcmd='import sys; sys.argv[0] = "pip"; from pip._internal.cli.main import main; sys.exit(main())'
162 -
163 - ${PYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die
164 - newbashcomp "${COMPLETION}" ${PN}
165 -
166 - ${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die
167 - insinto /usr/share/zsh/site-functions
168 - newins "${COMPLETION}" _pip
169 -}