public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pip/
Date: Sat, 26 Jun 2021 21:35:25 +0000 (UTC)	[thread overview]
Message-ID: <1624743320.f644e87263061d508f23ee254ed356446fc6d67b.mgorny@gentoo> (raw)

commit:     f644e87263061d508f23ee254ed356446fc6d67b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 26 20:05:41 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 26 21:35:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f644e872

dev-python/pip: Bump to 21.1.3

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pip/Manifest          |   1 +
 dev-python/pip/pip-21.1.3.ebuild | 133 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 134 insertions(+)

diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest
index 48810da85ba..872f3d0bd03 100644
--- a/dev-python/pip/Manifest
+++ b/dev-python/pip/Manifest
@@ -1,4 +1,5 @@
 DIST pip-21.1.2.tar.gz 8772481 BLAKE2B 23dbcc5dd7e7f66934282b9c93958267eb367d418b6c814032b7b89e0d94c73c143626781b8df081394019d2e575030b7a2fd61bb5221992ce2060cf069e8b04 SHA512 54a2b6074fcb2640868dedcabb5087b79a53a8ad57ec4ab5acf2862b8037403d8f156c2853ab60c2f10c6af999a0a90774f0bc3eca2978a82590935d37af167f
+DIST pip-21.1.3.tar.gz 8772944 BLAKE2B 4c50fcb7c05e05d11b137d08547d9d55f19687442b8d44caf05d19917b200bcf860032cb28745e41d51afda80a7ac09d60afb8d619ade5b965ed87bac1133006 SHA512 21bdc78f24751981ae49c9fda0430fc92b8d33eb7a546bc344e8cea4aa85dcd42191ef8eb3fdfb4f3d1cb5921698f819d73e6e190d8745cf7ddfa52732d95999
 DIST setuptools-56.0.0-py3-none-any.whl 784941 BLAKE2B 136352bcaeeb803f94983db2e0f9ec79dacc23a6742a2f6f1b4bdd2b29a104f4965d78f9b4adf1a501c7bf39d4ed85a6786b03489f90872661afbf5e674fd3f9 SHA512 32405236e9c2936cde137bc4d4d07b548391336ce0511cd5677dcd1f85c7a142b0947e03cdceaeb37067874f5aa71daacaa1a6af95ae9fe3ad8af264f61e10f4
 DIST virtualenv-16.7.10.tar.gz 5116776 BLAKE2B 42f0a4b4330850b504f8febd991ef6ecdcbb0821efdd94ca324a8cc34a68a760a8a98de97f0cb2384d8e6cbb0ce8f261995c6433886444e29b75ba0ce09ca12c SHA512 f06d7c354ce1910f04dbcbe1a77e60392653bbe4f638bafbe9284454db2c0e5d63cf9159201d0916fc01aaba91d45fb733b63096c38517fcd83fd00ed8b26d28
 DIST wheel-0.36.2-py2.py3-none-any.whl 35046 BLAKE2B bc4e8dab7c74eea34d3b4a813b7eaf6295a99a396a861b6cdd76f743043e89140bad132bdd13e385e8945ce02e0798e1d3ac73fc1b23bde5b2a83e4bb4dd5cdc SHA512 6bb5119b4d3704fe1e3c1eaaa3124edab13f61b46f8a0a8e75974fac4e5b25d8b53606071a03a8d8990ad1cfe2ab247ddea260098df2c0c35ae965be47080284

diff --git a/dev-python/pip/pip-21.1.3.ebuild b/dev-python/pip/pip-21.1.3.ebuild
new file mode 100644
index 00000000000..6dddd21d4f6
--- /dev/null
+++ b/dev-python/pip/pip-21.1.3.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+PYTHON_REQ_USE="ssl(+),threads(+)"
+
+inherit bash-completion-r1 distutils-r1
+
+# setuptools & wheel .whl files are required for testing,
+# the exact version is not very important.
+SETUPTOOLS_WHL="setuptools-56.0.0-py3-none-any.whl"
+WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl"
+# upstream still requires virtualenv-16 for testing, we are now fetching
+# it directly to avoid blockers with virtualenv-20
+VENV_PV=16.7.10
+
+DESCRIPTION="Installs python packages -- replacement for easy_install"
+HOMEPAGE="
+	https://pip.pypa.io/en/stable/
+	https://pypi.org/project/pip/
+	https://github.com/pypa/pip/"
+SRC_URI="
+	https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+	test? (
+		https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL}
+		https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL}
+		https://github.com/pypa/virtualenv/archive/${VENV_PV}.tar.gz
+			-> virtualenv-${VENV_PV}.tar.gz
+	)
+"
+
+LICENSE="MIT"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
+SLOT="0"
+IUSE="test vanilla"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	>=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	${RDEPEND}
+	test? (
+		dev-python/cryptography[${PYTHON_USEDEP}]
+		dev-python/freezegun[${PYTHON_USEDEP}]
+		dev-python/pretend[${PYTHON_USEDEP}]
+		dev-python/pytest[${PYTHON_USEDEP}]
+		dev-python/scripttest[${PYTHON_USEDEP}]
+		dev-python/werkzeug[${PYTHON_USEDEP}]
+		dev-python/wheel[${PYTHON_USEDEP}]
+	)
+"
+
+python_prepare_all() {
+	local PATCHES=(
+		"${FILESDIR}/${PN}-21.1-no-coverage.patch"
+	)
+	if ! use vanilla; then
+		PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" )
+	fi
+
+	distutils-r1_python_prepare_all
+
+	if use test; then
+		mkdir tests/data/common_wheels/ || die
+		cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \
+			tests/data/common_wheels/ || die
+
+		pushd "${WORKDIR}/virtualenv-${VENV_PV}" >/dev/null || die
+		eapply "${FILESDIR}/virtualenv-${VENV_PV}-py310.patch"
+		popd >/dev/null || die
+	fi
+}
+
+python_test() {
+	if [[ ${EPYTHON} == pypy* ]]; then
+		ewarn "Skipping tests on ${EPYTHON} since they are very broken"
+		return 0
+	fi
+
+	local deselect=(
+		tests/functional/test_install.py::test_double_install_fail
+		tests/functional/test_list.py::test_multiple_exclude_and_normalization
+		'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-download]'
+		'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-install]'
+		'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-list]'
+		'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-wheel]'
+		tests/functional/test_install.py::test_install_pip_does_not_modify_pip_when_satisfied
+		# Internet
+		tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg
+	)
+
+	[[ ${EPYTHON} == python3.10 ]] && deselect+=(
+		tests/lib/test_lib.py::test_correct_pip_version
+		# uses vendored packaging that uses deprecated distutils
+		tests/functional/test_warning.py::test_pip_works_with_warnings_as_errors
+	)
+
+	distutils_install_for_testing
+	pushd "${WORKDIR}/virtualenv-${VENV_PV}" >/dev/null || die
+	distutils_install_for_testing
+	popd >/dev/null || die
+
+	local -x GENTOO_PIP_TESTING=1 \
+		PATH="${TEST_DIR}/scripts:${PATH}" \
+		PYTHONPATH="${TEST_DIR}/lib:${BUILD_DIR}/lib"
+	epytest ${deselect[@]/#/--deselect } -m "not network"
+}
+
+python_install_all() {
+	# Prevent dbus auto-launch
+	# https://bugs.gentoo.org/692178
+	export DBUS_SESSION_BUS_ADDRESS="disabled:"
+
+	local DOCS=( AUTHORS.txt docs/html/**/*.rst )
+	distutils-r1_python_install_all
+
+	COMPLETION="${T}"/completion.tmp
+
+	# 'pip completion' command embeds full $0 into completion script, which confuses
+	# 'complete' and causes QA warning when running as "${PYTHON} -m pip".
+	# This trick sets correct $0 while still calling just installed pip.
+	local pipcmd='import sys; sys.argv[0] = "pip"; from pip._internal.cli.main import main; sys.exit(main())'
+
+	${PYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die
+	newbashcomp "${COMPLETION}" ${PN}
+
+	${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die
+	insinto /usr/share/zsh/site-functions
+	newins "${COMPLETION}" _pip
+}


             reply	other threads:[~2021-06-26 21:35 UTC|newest]

Thread overview: 262+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-26 21:35 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-17 11:15 [gentoo-commits] repo/gentoo:master commit in: dev-python/pip/ Michał Górny
2024-08-17 11:15 Michał Górny
2024-08-17 11:15 Michał Górny
2024-08-17  9:57 Michał Górny
2024-08-17  9:57 Michał Górny
2024-08-17  9:57 Michał Górny
2024-08-12 17:18 Arthur Zamarin
2024-07-30 11:51 Michał Górny
2024-07-30 11:51 Michał Górny
2024-07-29  4:50 Eli Schwartz
2024-07-29  3:26 Michał Górny
2024-07-27 11:58 Sam James
2024-07-27 11:58 Sam James
2024-07-27  9:28 Arthur Zamarin
2024-07-27  9:17 Arthur Zamarin
2024-07-27  6:00 Michał Górny
2024-07-11 22:28 James Le Cuirot
2024-07-09  2:10 Michał Górny
2024-07-07  1:03 Ionen Wolkens
2024-07-05 19:41 Viorel Munteanu
2024-07-05 19:41 Viorel Munteanu
2024-07-05 19:41 Viorel Munteanu
2024-06-27  2:53 Michał Górny
2024-06-25 23:16 Sam James
2024-06-24 17:57 Jakov Smolić
2024-06-24  0:13 Sam James
2024-06-23 20:19 Sam James
2024-05-11 10:02 Michał Górny
2024-05-11 10:02 Michał Górny
2024-02-20  7:48 Sam James
2024-02-04 15:56 Michał Górny
2024-02-04 15:56 Michał Górny
2024-02-04 14:47 Michał Górny
2024-01-17 17:11 Michał Górny
2024-01-17 17:11 Michał Górny
2024-01-06 10:27 Michał Górny
2024-01-06 10:24 Michał Górny
2023-12-17 18:00 Arthur Zamarin
2023-11-25 10:31 Michał Górny
2023-11-25  7:35 Arthur Zamarin
2023-10-22  6:55 Michał Górny
2023-10-15 17:56 Michał Górny
2023-08-19 18:19 Michał Górny
2023-08-19 17:04 Arthur Zamarin
2023-07-23  6:53 Michał Górny
2023-07-17  7:34 Michał Górny
2023-05-27 15:53 Michał Górny
2023-05-15 20:13 Arthur Zamarin
2023-05-15 20:08 Arthur Zamarin
2023-04-27  3:10 Michał Górny
2023-04-23 19:30 Michał Górny
2023-03-03 17:48 Michał Górny
2023-03-03 17:38 Arthur Zamarin
2023-02-19 19:46 Michał Górny
2023-02-19 15:32 Michał Górny
2023-02-18  7:03 Michał Górny
2023-02-18  7:03 Michał Górny
2023-02-18  7:03 Michał Górny
2023-02-07 14:31 Michał Górny
2023-01-31  7:23 Michał Górny
2022-11-19  8:49 Arthur Zamarin
2022-11-19  8:49 Arthur Zamarin
2022-11-06  7:59 Michał Górny
2022-10-16  5:41 Arthur Zamarin
2022-10-13  4:54 Michał Górny
2022-08-30 17:12 Arthur Zamarin
2022-08-04 17:55 Arthur Zamarin
2022-08-02 13:02 Michał Górny
2022-08-02 13:02 Michał Górny
2022-07-29 14:37 Michał Górny
2022-06-12 12:46 Sam James
2022-06-01  7:21 Michał Górny
2022-05-12  8:57 Michał Górny
2022-05-12  8:57 Michał Górny
2022-04-25 16:50 Sam James
2022-04-17 16:54 Michał Górny
2022-04-17  8:07 Jakov Smolić
2022-03-15 17:56 Jakov Smolić
2022-03-14 21:00 Arthur Zamarin
2022-01-31 23:47 Michał Górny
2022-01-31  8:32 Michał Górny
2022-01-31  0:26 Michał Górny
2022-01-06 20:52 Michał Górny
2022-01-01 11:05 Sam James
2021-12-31 16:53 Matt Turner
2021-12-30 13:10 Sam James
2021-12-29 10:36 Arthur Zamarin
2021-12-29  6:10 Arthur Zamarin
2021-12-28 21:40 Arthur Zamarin
2021-12-28 21:40 Arthur Zamarin
2021-12-28 21:40 Arthur Zamarin
2021-12-28 21:39 Arthur Zamarin
2021-12-20  8:40 Michał Górny
2021-12-07  6:46 Joshua Kinard
2021-11-30 22:26 James Le Cuirot
2021-11-29 19:41 Marek Szuba
2021-11-29  5:22 Arthur Zamarin
2021-11-28 19:01 Arthur Zamarin
2021-11-28 19:01 Arthur Zamarin
2021-11-28 19:01 Arthur Zamarin
2021-11-28 19:01 Arthur Zamarin
2021-11-28 19:01 Arthur Zamarin
2021-11-28 14:42 Michał Górny
2021-11-28 11:01 Michał Górny
2021-11-28  7:38 Arthur Zamarin
2021-11-27  7:46 Arthur Zamarin
2021-11-27  7:19 Michał Górny
2021-11-27  7:19 Michał Górny
2021-09-24 21:36 James Le Cuirot
2021-08-26  8:15 Michał Górny
2021-08-26  3:00 Sam James
2021-08-13  6:58 Michał Górny
2021-08-07  8:50 Michał Górny
2021-08-01 12:25 Michał Górny
2021-07-31 22:23 Sam James
2021-07-25  8:41 Michał Górny
2021-07-21  7:25 Michał Górny
2021-06-24  8:20 Michał Górny
2021-06-24  4:28 Agostino Sarubbo
2021-06-09 20:54 Michał Górny
2021-06-09 15:46 Marek Szuba
2021-06-09 15:19 Marek Szuba
2021-06-03 19:15 Sam James
2021-06-02 14:19 Michał Górny
2021-05-26  8:04 Sam James
2021-05-24 10:22 Michał Górny
2021-05-24  2:39 Joshua Kinard
2021-05-01  7:45 Michał Górny
2021-03-02  8:43 Michał Górny
2021-03-02  3:15 Sam James
2021-02-25  7:40 Michał Górny
2021-02-24 23:26 Sam James
2021-01-30 16:59 Michał Górny
2021-01-24 21:48 Michał Górny
2021-01-24 11:41 Michał Górny
2021-01-18 19:06 Michał Górny
2021-01-18 17:42 Sam James
2021-01-05 21:32 Michał Górny
2021-01-05 21:03 Sam James
2020-12-16 10:09 Michał Górny
2020-12-15 11:05 Michał Górny
2020-12-06 12:21 Michał Górny
2020-11-28 15:44 Sam James
2020-11-26  8:26 Michał Górny
2020-11-26  6:56 Agostino Sarubbo
2020-10-18  6:25 Michał Górny
2020-09-28 18:20 Sergei Trofimovich
2020-09-28 17:41 Sergei Trofimovich
2020-09-20 22:40 Thomas Deutschmann
2020-09-20  9:36 Michał Górny
2020-09-19 21:33 Michał Górny
2020-09-19 20:19 Mikle Kolyada
2020-09-19 20:18 Mikle Kolyada
2020-09-18  8:05 Agostino Sarubbo
2020-09-18  7:54 Agostino Sarubbo
2020-09-18  7:45 Agostino Sarubbo
2020-09-08 19:11 Michał Górny
2020-09-07  8:47 Sergei Trofimovich
2020-09-07  8:20 Sergei Trofimovich
2020-08-12 10:01 Michał Górny
2020-08-05 14:08 Agostino Sarubbo
2020-08-04 23:51 Sam James
2020-08-04 13:48 Michał Górny
2020-08-04  3:39 Sam James
2020-08-03 16:34 Sergei Trofimovich
2020-07-30 21:30 Sam James
2020-07-17  6:14 Michał Górny
2020-06-18 10:26 Michał Górny
2020-06-11 21:48 Sergei Trofimovich
2020-06-11 21:48 Sergei Trofimovich
2020-06-11  8:01 Michał Górny
2020-06-10 20:20 Sergei Trofimovich
2020-06-10 20:20 Sergei Trofimovich
2020-06-01 20:30 Michał Górny
2020-05-31 23:10 Matt Turner
2020-05-30 20:04 Sergei Trofimovich
2020-05-30 19:48 Michał Górny
2020-05-30 19:48 Michał Górny
2020-05-30 12:48 Michał Górny
2020-05-30  7:46 Michał Górny
2020-05-29 20:42 Sergei Trofimovich
2020-05-29 12:04 Michał Górny
2020-05-28  8:00 Michał Górny
2020-05-20  7:18 Michał Górny
2020-05-10  9:21 Mikle Kolyada
2020-05-06 17:13 Mikle Kolyada
2020-05-06 16:43 Mikle Kolyada
2020-05-06 16:43 Mikle Kolyada
2020-05-06 14:22 Mikle Kolyada
2020-04-30 14:46 Michał Górny
2020-04-28 17:14 Michał Górny
2020-04-27  0:45 Matt Turner
2020-04-27  0:45 Matt Turner
2020-03-21 16:32 Michał Górny
2020-03-21  9:24 Mart Raudsepp
2020-02-11 12:03 Alexey Shvetsov
2020-02-03 11:31 Agostino Sarubbo
2020-01-31 13:45 Agostino Sarubbo
2020-01-17 16:31 Mike Gilbert
2020-01-17 16:27 Mike Gilbert
2019-12-10 19:25 Sergei Trofimovich
2019-12-04 19:44 Sergei Trofimovich
2019-12-04  6:48 Aaron Bauman
2019-11-30  4:32 Aaron Bauman
2019-11-24 19:31 Michał Górny
2019-11-24 15:09 Michał Górny
2019-11-23  1:11 Patrick McLean
2019-08-13 20:31 Maxim Koltsov
2019-06-27 15:25 Matthew Thode
2019-05-09 14:50 Manuel Rüger
2019-04-28  8:15 Maxim Koltsov
2019-04-28  8:15 Maxim Koltsov
2018-06-26  5:49 Michał Górny
2018-06-03 13:55 Mike Frysinger
2018-03-18 11:31 Sergei Trofimovich
2018-02-18  0:03 Patrice Clement
2017-10-11 16:55 Tim Harder
2017-07-26 19:49 Markus Meier
2017-06-23  2:05 Mike Gilbert
2017-06-23  1:44 Matt Thode
2017-06-13 12:31 Agostino Sarubbo
2017-06-10 13:45 Agostino Sarubbo
2017-06-04 19:20 Tobias Klausmann
2017-06-04 16:01 Agostino Sarubbo
2017-05-18 19:14 Michael Weber
2017-01-04  4:28 Mike Gilbert
2016-09-05 21:39 Manuel Rüger
2016-03-19 13:19 Manuel Rüger
2016-03-10  0:10 Mike Gilbert
2016-02-28  5:58 Matt Thode
2016-02-25 19:06 Justin Lecher
2016-02-25 18:56 Justin Lecher
2016-02-03 14:14 Justin Lecher
2016-01-26 14:41 Justin Lecher
2016-01-22  8:34 Justin Lecher
2016-01-22  8:03 Justin Lecher
2016-01-22  6:14 Matt Thode
2016-01-20 15:36 Justin Lecher
2015-12-28 13:34 Justin Lecher
2015-11-23 10:05 Justin Lecher
2015-11-23  6:44 Jeroen Roovers
2015-11-22 19:32 Markus Meier
2015-11-19 10:25 Agostino Sarubbo
2015-11-16 15:01 Agostino Sarubbo
2015-11-12 18:38 Justin Lecher
2015-11-11 17:27 Justin Lecher
2015-11-08 21:05 Mike Gilbert
2015-11-05 11:52 Agostino Sarubbo
2015-11-04 16:09 Agostino Sarubbo
2015-11-04 15:50 Agostino Sarubbo
2015-11-02 13:12 Agostino Sarubbo
2015-11-02 13:09 Agostino Sarubbo
2015-10-10 18:49 Mikle Kolyada
2015-10-01 20:47 Markus Meier
2015-09-22 17:36 Tobias Klausmann
2015-09-08  8:16 Joshua Kinard
2015-09-06  5:20 Jeroen Roovers
2015-08-27  9:37 Justin Lecher
2015-08-27  7:59 Justin Lecher
2015-08-25 23:23 Mike Gilbert
2015-08-25  3:03 Tim Harder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1624743320.f644e87263061d508f23ee254ed356446fc6d67b.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox