commit: 4162d0fed0627fb8e67cc39aa92f6e1f210aa277 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Jan 8 03:01:50 2026 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Jan 8 03:34:41 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4162d0fe
dev-python/virtualenv: Bump to 20.36.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/virtualenv/Manifest | 2 + dev-python/virtualenv/virtualenv-20.36.0.ebuild | 133 ++++++++++++++++++++++++ 2 files changed, 135 insertions(+) diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest index 97080b5310de..3fe3caa80d42 100644 --- a/dev-python/virtualenv/Manifest +++ b/dev-python/virtualenv/Manifest @@ -2,3 +2,5 @@ DIST virtualenv-20.34.0.tar.gz 6003808 BLAKE2B ea13d8952b67c1b9fc1547d726b014d8d DIST virtualenv-20.35.3.tar.gz 6002907 BLAKE2B 8063752921737a6befbcfb94edaf82a45c726fd45cc5480825d891a9c259076f6bbdeb252d49999f2ad1f641a5e0714d2e9450fa5c59df04ad6f3805694744e2 SHA512 620061cfb7c291b76a7bee161664d935d602b0deb7768a94e341ae83d2b841f25bc658ed46e663bf7980142c9fe4f829ca47e3ee67c66f246f5d3fe243273b26 DIST virtualenv-20.35.4.tar.gz 6028799 BLAKE2B e4796544d04a5cf71b2f0c98c8b09e08db6b09613048a86948fe19d4359cf1c32a298e246c76b7342ea18c840b74c0fefe731ef84d6d43f4319075263518b293 SHA512 07027f64631416c535ca7c262dfcf753a961e2371c5b8562b0921ff9eb873b76e7380910f4080845ee329f59f295816376e8ff9d1f328a2efcc40e87157a1741 DIST virtualenv-20.35.4.tar.gz.provenance 9393 BLAKE2B 5e95b323b078ef6d520bd4463a272f9ae11ee5d182e44be80d95d67667375059504f882b85e329e42d42cb66b0cfc86a301ad60ec91885c88d69c9f0e115175b SHA512 f4b7cef5f95fdfeb7ea04ee5f90fe705079580ed4f4d519f4551d138c6a5fad73c862ee67681841ac1d2e258c8aac137ffdd468fd72b442d4c7a7713e7dc0192 +DIST virtualenv-20.36.0.tar.gz 6032237 BLAKE2B 864f1542d6e5c7c3b78cfe2695d171d9a545f27e3c2d10adb92e3615f128f47897345b88a7be7c3099fd4a0ad70b2ea7e6801878bdd102a4927296c2820fdd67 SHA512 62a0ffa9a6c1303fead8bc77ce23fa73075bf5fe79c26c612e9a510cd3b7466f5370b549748861410a014bdc96453552d7761ba5c9e4bb20845f6bac3adef941 +DIST virtualenv-20.36.0.tar.gz.provenance 9242 BLAKE2B 11401266d08513c5d50e2c846301a887919b4b5e9243966637a4fb2fab96b3be8815ccddf02d6c9ad9f46900abdf904c9d0c81d0c6213c6e542f40d764eefaae SHA512 fa46c395648177b48860a82f81044f6268dbf2ba12398547b4ae46e3012ef352603d7b605b1f7ed49b364a15c29e1cd65ffb7c18fd9224ed7d464f76670d06fb diff --git a/dev-python/virtualenv/virtualenv-20.36.0.ebuild b/dev-python/virtualenv/virtualenv-20.36.0.ebuild new file mode 100644 index 000000000000..eec453195286 --- /dev/null +++ b/dev-python/virtualenv/virtualenv-20.36.0.ebuild @@ -0,0 +1,133 @@ +# 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_{13,14}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.20.1[${PYTHON_USEDEP}] + >=dev-python/platformdirs-3.9.1[${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}-20.31.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 + # 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 + ) + 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 +}
