dev-python/virtualenv: Bump to 21.15.12

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-11-22 03:26:56 +01:00
parent d54b7b5eef
commit 90840d6ffa
2 changed files with 143 additions and 0 deletions
+2
View File
@@ -4,6 +4,8 @@ DIST virtualenv-21.15.1.tar.gz 5517048 BLAKE2B 380bc5824ba9bbaa241ae0bdc2e5f2cb1
DIST virtualenv-21.15.1.tar.gz.provenance 9673 BLAKE2B 20d8bd61f082d01a4499da5470f8e5d122ce870d9c84d4cc50031392dec0b17a2040edb2f8f0ecdd4e376ba29a7cda9124538dbe382320f3c1a20785d1b7d570 SHA512 8460f8d9e486c6a866d151fd544562166d12a047f5679673de13db018a1262083d5eecfef047ea382840afdd72298b56de7a51a8b4a42289f00ee6f1d18592d9
DIST virtualenv-21.15.11.tar.gz 5730372 BLAKE2B b335edb107c3fccbf69e32961c50dcdc41d0f1505662def04bf54b4e3efaa97ca20c1d33b26734c808546ee15980d47a0bf47ed9d5d931a1b45e5e19546f1e0c SHA512 3d6fe62a1c78e881515a27ee14f072f810a66260baf2a2925e88c8ca3fb32dced4df85d3bf4f1c751a729fabe5bd79f0a0302fcffca8f0f84d1e9d75bb497f2e
DIST virtualenv-21.15.11.tar.gz.provenance 9454 BLAKE2B f5c64150fa21232e426a95e65449231d9038c57cb1a413920e61a4b5787a0fde8c5f0af35f57ac5d66700db35050f9e7194df69c4c0ecefc0d966ff9a71c074d SHA512 b1f57491690bfec62bf10d3b1202415fc3a0233e84f991eead617196165bcc3da1bb25e874ce3bdb92147b99797d8da94f86297becdc4b1372973f60e19cc359
DIST virtualenv-21.15.12.tar.gz 5734304 BLAKE2B 1de9a50310a032c1c0712cb1f824e4ea95516e5c96205acb5885ee5ffc04419aec38beeb82729aa88c762a5f979a9613ac526a3c23fdd0922d26384c4a6d2957 SHA512 9864d22fab9184a7e7ec852e2677635b0bb2d4473ba606e089a0e37caa9350fc74abf439e050ed5b222801fc32784d5534690fd983bd5ec6bdb62ed028fbce71
DIST virtualenv-21.15.12.tar.gz.provenance 9254 BLAKE2B 1f860252157c4c1adf9e39f807e4267d72dcddc879e43f91945906c928b48e98416331f1d1c2947610074d66d4f41b23d5cbe8cf387e63b8b984a1290fea4982 SHA512 a33a5db22591e021f8358daece1173dad92fb02d5729154598dcaffce76b50b179c5f86d4596651a5e539b53a3fe88758c71a52905609b647967bb812a27c940
DIST virtualenv-21.15.2.tar.gz 5520597 BLAKE2B f5e641394c62cf90b935f9b10cb5faa47a273995cd1f56095cd2606599ccda974ca41a8296b2a9dc758ad11bedfecdb709af0d24749eea56aba357501de80b34 SHA512 c75cbc4a2adb5cb3590dbe370f49e73b79415cb9bd7c8c9fb17ab1fc124d8038f30365587f04562912ca4485e137ad492031c87ea1b1b3fcc4911eea92c441e5
DIST virtualenv-21.15.2.tar.gz.provenance 9583 BLAKE2B 7b7df78637adce134af8b5bdaa4d822df50df4b57d4d5869c8ab6aa2833d07860499a08323ee06a052cc623ba17bdc6ace51efc95ea40abb7b28533e215314d0 SHA512 ebaecf10baf0266a3a94d83aa2fb65ff7e8f5608ff3ab31de5be2e6acbf661e123a2968a4790b2e2643e05b3092f3f5c99e301214a21a13beb6f912969978579
DIST virtualenv-21.15.6.tar.gz 5641659 BLAKE2B 9bfa0bac7d1223e13addc002d99d504d8bc5d9963a520d7e81d91578837821d6619580207f3708fade3e9de4ad696167d7ca4148541016be63d8f2971bb5f466 SHA512 b255892d595047d06b7853d02188b969d77e05528d507aa9fa4b66731a367709e8b2b8774592f2c474830c49a65dae6e81049b77eca7fc909fafab20fb14bec5
@@ -0,0 +1,141 @@
# 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..15} )
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" pypy3_12 python3_{14..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/packaging-23.1[${PYTHON_USEDEP}]
>=dev-python/platformdirs-3.9.1[${PYTHON_USEDEP}]
>=dev-python/python-discovery-1.6[${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-fancy-pypi-readme-25.1[${PYTHON_USEDEP}]
dev-python/hatch-vcs[${PYTHON_USEDEP}]
test? (
${RDEPEND}
$(python_gen_cond_dep '
dev-python/coverage[${PYTHON_USEDEP}]
>=dev-python/hatchling-1.27[${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
# disable sbom nonsense
sed -i -e '/build\.hooks\.custom\.path/d' pyproject.toml || die
}
python_test() {
if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then
einfo "Skipping testing on ${EPYTHON}"
return
fi
local EPYTEST_DESELECT=(
# 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
tests/unit/seed/embed/test_pip_invoke.py::test_pip_reseed_removes_previous_version_metadata
# we do not use bundled wheels
tests/unit/seed/embed/test_bootstrap_link_via_app_data.py
tests/unit/seed/wheels/test_bundle.py
# requires bundled packages in pip
tests/unit/test_sbom.py::test_sbom_spdx_declared_license
# require pre-commit = internet
tests/unit/test_wheel_age.py::test_generator_converges
tests/unit/test_wheel_age.py::test_generator_updates_license
# TODO
tests/unit/seed/embed/test_bootstrap_link_via_app_data.py::test_pip_launcher_record_matches_contents
tests/unit/seed/wheels/test_acquire.py::test_download_wheel_skips_local_pip_module
tests/unit/seed/wheels/test_acquire_find_wheel.py::test_find_latest
# some platformdirs nonsense (bundled packages?)
tests/unit/config/test___main__.py::test_module_entry_from_target_install
# these all timeout; they may require xonsh or be plain broken
tests/property/test_activation_prompt.py::test_prompt_seeds_stay_data
tests/property/test_activation_prompt.py::test_prompt_stays_data
tests/unit/activation/test_activator.py::test_activator_prompt_stays_data
# some extra pkgconfig dir, looks like another junk test
tests/unit/activation/test_csh.py::test_cshell_keeps_destination_after_locale_change
)
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
}