repo/gentoo:master commit in: dev-python/virtualenv/files/, dev-python/virtualenv/

Michał Górny <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1786169231.c88be371c828087342f34b3753943c86ef9a1381.mgorny@gentoo>
commit:     c88be371c828087342f34b3753943c86ef9a1381
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  8 05:22:08 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug  8 06:07:11 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c88be371

dev-python/virtualenv: Remove old

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

 dev-python/virtualenv/Manifest                     |   4 -
 .../files/virtualenv-21.2.4-ensurepip.patch        |  29 -----
 dev-python/virtualenv/virtualenv-21.4.3.ebuild     | 136 ---------------------
 dev-python/virtualenv/virtualenv-21.7.0.ebuild     | 117 ------------------
 4 files changed, 286 deletions(-)

diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest
index 204bae30c4c5..078b55512e07 100644
--- a/dev-python/virtualenv/Manifest
+++ b/dev-python/virtualenv/Manifest
@@ -1,11 +1,7 @@
-DIST virtualenv-21.4.3.tar.gz 7644454 BLAKE2B ef289a57f1cad1c42aa0bb38624a0abd37323538ca6b60397b12b0cdb2a60fb2b02fa02c0b72681bb062573a2c245b8b67538d32ab5b2cb0ae0082a1458ca61f SHA512 4ed4d90ab17871c4738102a3186593669b2fcf2c5f512949e995251636bcc58fb6b50f74db13dff40fdf4cb3d9e73acd8bf9db429960b28e5c9ab5d2ac684e3c
-DIST virtualenv-21.4.3.tar.gz.provenance 9500 BLAKE2B d5adf2b90488d9d0728101d7ecebb593350d07d0f1b08f0acd67847f22b99a7b1b8d1fd082fe739bc927fd79c75cda1f55cf39b2b8467fa8ddaa6178505d1909 SHA512 6c5dfc394d1c95c161c30235994b2066127653678430e69b769dc50ed2a007b6703379eb8c495d1395b953ec67d797ad1e4433121cdfd6fc722367937ac5178a
 DIST virtualenv-21.5.1.tar.gz 4578798 BLAKE2B 495289992d27ca98114ad713e680c7db257ef887dae500cf2b432486984b3c9a84d2108a39318f2d95a840fb3d000aaa894a189a8345a0023024d9c4f3b17568 SHA512 c7d49b496ede5ffcd6bf10ba8bcf47acae3c98470c5bb1e41c2a074c9f128ee0a6d83f89a0e088c4ca1e237e27e6d73affe0adbaa884f5afd526ac6881d2dbb8
 DIST virtualenv-21.5.1.tar.gz.provenance 9602 BLAKE2B 1e436f34c3b5a85ef334727eed745f3ca76bdfb5f6e8d7a484d602c177f4b680e8200a7ffa4fd2d6c4b43ec53a3829dd4c6c2b90db0487d752fec175aec456fc SHA512 37b56c52097132ba42d78c606c13b1e2d2a470662e4de29ae32f923db735b538b13f7f7365e220da8b97f788ba496e53705b6af20060826fc0168d323608ae91
 DIST virtualenv-21.6.1.tar.gz 5526620 BLAKE2B a970f52b9a8ef5948ac0f2827ce9d2b724010bf77ef1fd678024d61834dd607cade4f1895c7f3cffd88d0b5f20353ee3b1934056d6d93a6d7576782aa71249e3 SHA512 bb5388dec00fa8e607188b1bd9240f2bbccf1b80ba94e4df30737eb435aae2be8637d534e2448cf7eae14dcc2f2b02a63168816c2207c8251c129db2a5665f39
 DIST virtualenv-21.6.1.tar.gz.provenance 9508 BLAKE2B fa5122071df6df6435ad11f102bed2f85d5ebbaf8ab6056c2f2c66c1d3e8366692dadda375f2c39151abc413ec540169197730101ba3061dccec0cf2f7bd2668 SHA512 f5180591d1f4cca9bb5632ea2918437daf30c1deb91fac7676a783e5ee19ea424a6bac7fd3a8c6eddff7996ef6c1a4358746d92788cbd283a8abb579d745935e
-DIST virtualenv-21.7.0.tar.gz 5527510 BLAKE2B 915d3d3fb3c221fa5a245f7856ec3fa398a70ffb37af246992648d2ed1e6cefcd0aeea4ac64fab2273220cc692020b39512f41d3fc348524dca500f9788a006b SHA512 f6ccbf966e5296129ac82ec52f56900d417bd96ca5cd222493a2c67d6bd33459a8cf7e445c82d04da7e7239e6e46b670643e180153445315fd8ef7e062a9eb1b
-DIST virtualenv-21.7.0.tar.gz.provenance 9669 BLAKE2B 12e8b7ad4728e5a1c0563a41829b28d9baacac63b4258ff0a2b54f465b38bad1c3ff1e8605634261a286a15b78b937e91a8d344c09b5daf304972fdbdd0e0013 SHA512 65d295d5c9207d439a12f39aa458572e9b6388a2685ec309d2350922a9dba67cc288b8f3bfb7b91da4e3dff9e628884f1a1d32c1b666965de23871a0456b0346
 DIST virtualenv-21.7.1.tar.gz 5525237 BLAKE2B f3c8c19804d37ed22a5e114b5cede8bb9c7232310d3cfc12d15437e5bce8495043938a0eaf1fdacee4d3030dde71aa78a5e82ce4fb8b6bab78436b823eb85de2 SHA512 6faa5e3441dcbdd4f540107e84a903d392863b7ad050e5d6f3042d039cf597029be5541be062d7b6c421b1ea6d8a907b866bb6745e05ff5a2f9142f1c0c3f333
 DIST virtualenv-21.7.1.tar.gz.provenance 9508 BLAKE2B 97e69664764c1151a7d4b2d9d3e6b4ad5d053ac297dcea5d5c1238c0a3692867dc4e36bb394dd5ddfe513fbbf11b7218c2e5956513a3ecef43cf1f74b2dbdfb8 SHA512 26de17a71d01421028d38c0074b7564c8c01a20226a3e43eb1e6e990e0d2af0311e789428567ad939544967a61f49cd9ec05490b99c130b14968fdcfa2b34a55
 DIST virtualenv-21.7.2.tar.gz 5525335 BLAKE2B a02267c4358caa116fb7b59c87b4e8f0e3b38392296545d658f608ea65fb92af9666cc90aa7eed1bf107e67f5cac0d631bd7e281efa5424fbfa41dcda3584165 SHA512 610b67c7c3074c8f2d2aa4c7efd2c6757d0ff8e892e5d803d3b9c7ac059c06715feb8f09c53b8196589a2d96ee8ece723504533d8a976f969e7a451244201951

diff --git a/dev-python/virtualenv/files/virtualenv-21.2.4-ensurepip.patch b/dev-python/virtualenv/files/virtualenv-21.2.4-ensurepip.patch
deleted file mode 100644
index 1447766cc15b..000000000000
--- a/dev-python/virtualenv/files/virtualenv-21.2.4-ensurepip.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 4c59dc5ea8a90d93cd0fb68cebd742dd40d16710 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <[email protected]>
-Date: Sat, 22 Jun 2024 14:28:23 +0200
-Subject: [PATCH] [Gentoo] Use ensurepip wheels instead of local bundle
-
----
- src/virtualenv/seed/wheels/embed/__init__.py | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/src/virtualenv/seed/wheels/embed/__init__.py b/src/virtualenv/seed/wheels/embed/__init__.py
-index df58d6d0..e1b40d1e 100644
---- a/src/virtualenv/seed/wheels/embed/__init__.py
-+++ b/src/virtualenv/seed/wheels/embed/__init__.py
-@@ -70,6 +70,15 @@ def get_embed_wheel(distribution: str, for_py_version: str) -> Wheel | None:
-     :raises RuntimeError: if the bundled wheel on disk fails SHA-256 verification.
- 
-     """
-+
-+    # Gentoo hack: get wheel from ensurepip directory
-+    import sysconfig
-+    bundle_dir = Path(sysconfig.get_config_var("WHEEL_PKG_DIR"))
-+    try:
-+        return Wheel.from_path(next(bundle_dir.glob(f"{distribution}-*.whl")))
-+    except StopIteration:
-+        return None
-+
-     mapping = BUNDLE_SUPPORT.get(for_py_version, {}) or BUNDLE_SUPPORT[MAX]
-     wheel_file = mapping.get(distribution)
-     if wheel_file is None:

diff --git a/dev-python/virtualenv/virtualenv-21.4.3.ebuild b/dev-python/virtualenv/virtualenv-21.4.3.ebuild
deleted file mode 100644
index 5c659b877c78..000000000000
--- a/dev-python/virtualenv/virtualenv-21.4.3.ebuild
+++ /dev/null
@@ -1,136 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=hatchling
-PYPI_VERIFY_REPO=https://github.com/pypa/virtualenv
-PYTHON_TESTED=( python3_{11..14} pypy3_11 )
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_15 python3_{13..15}t )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Virtual Python Environment builder"
-HOMEPAGE="
-	https://virtualenv.pypa.io/en/stable/
-	https://pypi.org/project/virtualenv/
-	https://github.com/pypa/virtualenv/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~m68k ppc ppc64 ~riscv ~s390 x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-	>=dev-python/distlib-0.3.7[${PYTHON_USEDEP}]
-	>=dev-python/filelock-3.24.2[${PYTHON_USEDEP}]
-	>=dev-python/platformdirs-3.9.1[${PYTHON_USEDEP}]
-	>=dev-python/python-discovery-1.4.2[${PYTHON_USEDEP}]
-
-	dev-python/ensurepip-pip
-	>=dev-python/ensurepip-setuptools-70.1
-	dev-python/ensurepip-wheel
-"
-# coverage is used somehow magically in virtualenv, maybe it actually
-# tests something useful
-BDEPEND="
-	dev-python/hatch-vcs[${PYTHON_USEDEP}]
-	test? (
-		${RDEPEND}
-		$(python_gen_cond_dep '
-			dev-python/coverage[${PYTHON_USEDEP}]
-			>=dev-python/pip-22.2.1[${PYTHON_USEDEP}]
-			>=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
-			dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
-			dev-python/pytest-timeout[${PYTHON_USEDEP}]
-			dev-python/pytest-xdist[${PYTHON_USEDEP}]
-			>=dev-python/setuptools-67.8[${PYTHON_USEDEP}]
-			dev-python/wheel[${PYTHON_USEDEP}]
-			>=dev-python/packaging-20.0[${PYTHON_USEDEP}]
-		' "${PYTHON_TESTED[@]}")
-		$(python_gen_cond_dep '
-			dev-python/time-machine[${PYTHON_USEDEP}]
-		' python3_{11..14})
-		$(python_gen_cond_dep '
-			>=dev-python/pytest-freezer-0.4.6[${PYTHON_USEDEP}]
-		' 'pypy3*')
-	)
-"
-
-src_prepare() {
-	local PATCHES=(
-		# use wheels from ensurepip bundle
-		"${FILESDIR}/${PN}-21.2.4-ensurepip.patch"
-	)
-
-	distutils-r1_src_prepare
-
-	# workaround test failures due to warnings from setuptools-scm, sigh
-	echo '[tool.setuptools_scm]' >> pyproject.toml || die
-
-	# remove useless pins
-	sed -i -e 's:,<[=0-9.]*::' pyproject.toml || die
-
-	# remove bundled wheels
-	rm src/virtualenv/seed/wheels/embed/*.whl || die
-}
-
-python_test() {
-	if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
-		einfo "Skipping testing on ${EPYTHON}"
-		return
-	fi
-
-	local EPYTEST_DESELECT=(
-		tests/unit/seed/embed/test_bootstrap_link_via_app_data.py::test_seed_link_via_app_data
-		# tests for old wheels with py3.7 support
-		tests/unit/seed/embed/test_pip_invoke.py::test_base_bootstrap_via_pip_invoke
-		tests/unit/seed/wheels/test_wheels_util.py::test_wheel_not_support
-		# broken by different wheel versions in ensurepip
-		tests/unit/seed/wheels/test_acquire_find_wheel.py::test_find_latest_string
-		tests/unit/seed/wheels/test_acquire_find_wheel.py::test_find_exact
-		tests/unit/seed/wheels/test_acquire_find_wheel.py::test_find_latest_none
-		tests/unit/seed/wheels/test_acquire.py::test_download_wheel_bad_output
-		# hangs on a busy system, sigh
-		tests/unit/test_util.py::test_reentrant_file_lock_is_thread_safe
-		# TODO
-		tests/unit/create/via_global_ref/test_build_c_ext.py::test_can_build_c_extensions
-		# random resource leaks or xdist
-		tests/unit/test_file_limit.py::test_too_many_open_files
-		# Internet
-		tests/unit/create/test_creator.py::test_create_distutils_cfg
-		# we do not use bundled wheels
-		tests/unit/seed/wheels/test_bundle.py::test_every_wheel_on_disk_has_sha256
-	)
-	case ${EPYTHON} in
-		pypy3.11)
-			EPYTEST_DESELECT+=(
-				# these don't like the executable called pypy3.11?
-				tests/unit/activation/test_bash.py::test_bash
-				tests/unit/activation/test_fish.py::test_fish
-				tests/unit/discovery/py_info/test_py_info.py::test_fallback_existent_system_executable
-			)
-			;;
-	esac
-
-	local -x TZ=UTC
-	local EPYTEST_PLUGINS=( pytest-{mock,rerunfailures} )
-	if [[ ${EPYTHON} == pypy3* ]]; then
-		EPYTEST_PLUGINS+=( pytest-freezer )
-	else
-		EPYTEST_PLUGINS+=( time-machine )
-	fi
-	local EPYTEST_RERUNS=5
-	local EPYTEST_TIMEOUT=180
-	local EPYTEST_XDIST=1
-	epytest -o addopts=
-}
-
-src_install() {
-	distutils-r1_src_install
-
-	# remove bundled wheels, we're using ensurepip bundle instead
-	find "${ED}" -name '*.whl' -delete || die
-}

diff --git a/dev-python/virtualenv/virtualenv-21.7.0.ebuild b/dev-python/virtualenv/virtualenv-21.7.0.ebuild
deleted file mode 100644
index 83d1d712a24f..000000000000
--- a/dev-python/virtualenv/virtualenv-21.7.0.ebuild
+++ /dev/null
@@ -1,117 +0,0 @@
-# Copyright 1999-2026 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=hatchling
-PYPI_VERIFY_REPO=https://github.com/pypa/virtualenv
-PYTHON_TESTED=( python3_{12..14} )
-PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_15 python3_{13..15}t )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="Virtual Python Environment builder"
-HOMEPAGE="
-	https://virtualenv.pypa.io/en/stable/
-	https://pypi.org/project/virtualenv/
-	https://github.com/pypa/virtualenv/
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="
-	>=dev-python/distlib-0.3.7[${PYTHON_USEDEP}]
-	>=dev-python/filelock-3.24.2[${PYTHON_USEDEP}]
-	>=dev-python/platformdirs-3.9.1[${PYTHON_USEDEP}]
-	>=dev-python/python-discovery-1.4.2[${PYTHON_USEDEP}]
-
-	dev-python/ensurepip-pip
-	>=dev-python/ensurepip-setuptools-70.1
-	dev-python/ensurepip-wheel
-"
-# coverage is used somehow magically in virtualenv, maybe it actually
-# tests something useful
-BDEPEND="
-	dev-python/hatch-vcs[${PYTHON_USEDEP}]
-	test? (
-		${RDEPEND}
-		$(python_gen_cond_dep '
-			dev-python/coverage[${PYTHON_USEDEP}]
-			>=dev-python/pip-22.2.1[${PYTHON_USEDEP}]
-			>=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
-			dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
-			dev-python/pytest-timeout[${PYTHON_USEDEP}]
-			dev-python/pytest-xdist[${PYTHON_USEDEP}]
-			>=dev-python/setuptools-67.8[${PYTHON_USEDEP}]
-			dev-python/time-machine[${PYTHON_USEDEP}]
-			dev-python/wheel[${PYTHON_USEDEP}]
-			>=dev-python/packaging-20.0[${PYTHON_USEDEP}]
-		' "${PYTHON_TESTED[@]}")
-	)
-"
-
-src_prepare() {
-	local PATCHES=(
-		# use wheels from ensurepip bundle
-		"${FILESDIR}/${PN}-21.5.1-ensurepip.patch"
-	)
-
-	distutils-r1_src_prepare
-
-	# workaround test failures due to warnings from setuptools-scm, sigh
-	echo '[tool.setuptools_scm]' >> pyproject.toml || die
-
-	# remove useless pins
-	sed -i -e 's:,<[=0-9.]*::' pyproject.toml || die
-
-	# remove bundled wheels
-	rm src/virtualenv/seed/wheels/embed/*.whl || die
-}
-
-python_test() {
-	if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
-		einfo "Skipping testing on ${EPYTHON}"
-		return
-	fi
-
-	local EPYTEST_DESELECT=(
-		tests/unit/seed/embed/test_bootstrap_link_via_app_data.py::test_seed_link_via_app_data
-		# tests for old wheels with py3.7 support
-		tests/unit/seed/embed/test_pip_invoke.py::test_base_bootstrap_via_pip_invoke
-		tests/unit/seed/wheels/test_wheels_util.py::test_wheel_not_support
-		# broken by different wheel versions in ensurepip
-		tests/unit/seed/wheels/test_acquire_find_wheel.py::test_find_latest_string
-		tests/unit/seed/wheels/test_acquire_find_wheel.py::test_find_exact
-		tests/unit/seed/wheels/test_acquire_find_wheel.py::test_find_latest_none
-		tests/unit/seed/wheels/test_acquire.py::test_download_wheel_bad_output
-		tests/unit/seed/wheels/test_wheels_util.py::test_embed_wheel_below_oldest_supported_is_missing
-		# hangs on a busy system, sigh
-		tests/unit/test_util.py::test_reentrant_file_lock_is_thread_safe
-		# TODO
-		tests/unit/create/via_global_ref/test_build_c_ext.py::test_can_build_c_extensions
-		# random resource leaks or xdist
-		tests/unit/test_file_limit.py::test_too_many_open_files
-		# Internet
-		tests/unit/create/test_creator.py::test_create_distutils_cfg
-		# we do not use bundled wheels
-		tests/unit/seed/wheels/test_bundle.py::test_every_wheel_on_disk_has_sha256
-	)
-
-	local -x TZ=UTC
-	local EPYTEST_PLUGINS=( pytest-{mock,rerunfailures} time-machine )
-	local EPYTEST_RERUNS=5
-	local EPYTEST_TIMEOUT=180
-	local EPYTEST_XDIST=1
-	epytest -o addopts=
-}
-
-src_install() {
-	distutils-r1_src_install
-
-	# remove bundled wheels, we're using ensurepip bundle instead
-	find "${ED}" -name '*.whl' -delete || die
-}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.