From 8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 16 Jun 2026 10:53:11 -0500 Subject: Adding metadata --- dev-python/virtualenv/Manifest | 8 +- dev-python/virtualenv/virtualenv-21.4.1.ebuild | 136 ------------------------- dev-python/virtualenv/virtualenv-21.4.2.ebuild | 136 ------------------------- dev-python/virtualenv/virtualenv-21.4.3.ebuild | 136 +++++++++++++++++++++++++ dev-python/virtualenv/virtualenv-21.5.0.ebuild | 136 +++++++++++++++++++++++++ 5 files changed, 276 insertions(+), 276 deletions(-) delete mode 100644 dev-python/virtualenv/virtualenv-21.4.1.ebuild delete mode 100644 dev-python/virtualenv/virtualenv-21.4.2.ebuild create mode 100644 dev-python/virtualenv/virtualenv-21.4.3.ebuild create mode 100644 dev-python/virtualenv/virtualenv-21.5.0.ebuild (limited to 'dev-python/virtualenv') diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest index 910e13fbdf68..0054e76a40cf 100644 --- a/dev-python/virtualenv/Manifest +++ b/dev-python/virtualenv/Manifest @@ -2,7 +2,7 @@ DIST virtualenv-20.39.1.tar.gz 5870061 BLAKE2B 30fb2c107616c080935ede0ea2e72e5b7 DIST virtualenv-20.39.1.tar.gz.provenance 9445 BLAKE2B 39909e09db2ab5b8fdd9a192943e3e8279a16efd2c55a88dca6c2f76bb86b78d569d6e9a8a6ef8415a6805d42a0967f0862609eb9a59a5ef7bf35dbfb3a55a51 SHA512 6c7f752fc702cfb00005215186fc6062a30f319d5d22457abc7a98ee9fbc8e7e466aa6b0af319ff3a98dde013e98759f16100003012c00e644ae91982ceaf157 DIST virtualenv-21.3.3.tar.gz 7613784 BLAKE2B b196f2e02c44aca34d53f1e0208bb8b6a10523dc6f59cb4a7dca0b6141c807dd807f61e05832ec5efc027af3d8823cbb5c3e09a9c2ea834fec694571f863b140 SHA512 f3e7c71f2fafa0bff05aba89bc0cb2e2eede0c6ed5373fb253a6ac59f103505108671e5c19866562146723ea9630fc472dade53498c4fb97d6ec5c8e1c125d19 DIST virtualenv-21.3.3.tar.gz.provenance 9284 BLAKE2B 87ae9b8009c397d949d9fafecafd4690e1bf034edd70287b589ca0a96476087ceba27fffe608a60361a370f80d3b3b9e89cd801a8a41f89441cf24464105b655 SHA512 8c957c4dcaa13886bb03fb52a5a29ad632fa48effbdd7273baf6985c376d760a0b00b5dd0fca6a641baf91b1431b7319beee2916676926ee9c2d57cf49bd778d -DIST virtualenv-21.4.1.tar.gz 7613344 BLAKE2B 5201f4cd0f15c8b2b3a4f4c1b6314c74a6fffe93d34e53668cb3f52c6a5973136dc9e1977ba472331b9186a307840e8178bf5fff19a12dffd46ed3d6cbb1bd4a SHA512 63fbf026545093eb3708e1a107ec70327300d098492dedf0e5da56da8c42ee003b74933f7bca6af5a8b7a9fcee10716e410f1879e7e435d5cd181de768ccc70d -DIST virtualenv-21.4.1.tar.gz.provenance 9418 BLAKE2B a8386626be7b4e0ef19366ce79af229fc1fe61d47e36326bd25dbe8c9d508c25043df0406392fd30a8530d258435273521893a2465f9ce9a9355a3e6ae562eb6 SHA512 d89ac037acac74cd59c08811724e34bec75539ad41d1999876612bd1f41e89f3d9469ae8ee418fcbf47f64f403330bdf31eaf2b4613236d147a4b0934b2127fc -DIST virtualenv-21.4.2.tar.gz 7613326 BLAKE2B 227f61befd08125224ca35863d547dbb54e0dbe9629f7a777354e77af01117fc240a82c94147347f360a459335938c4105c846a26df88823f55d76bcdce81050 SHA512 5e42f3a751b274284bf3885a964d3e855c0edc24a8a0d676c58645c91f54050202540273023e21d49f0fa25a0a195777296b3cb3e3e76202f2f6328846623897 -DIST virtualenv-21.4.2.tar.gz.provenance 9743 BLAKE2B 9a5ceb18961346943e7cc937d7453dcdca8322b5ae59c2248b06f6a564f9e50e6b67dc30da7b7658a83e3ef5307da3010eebf4585798c47dee742bdbf28c75d2 SHA512 ecfa3182d925867c8fcf83773a3f2246dfd1b8bdd8a48bb92325d32bebe0d0e372dfc6c5608b0f2cf7f6926a230d098e9c7a2e57b4525680116dd42d9042531a +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.0.tar.gz 4577424 BLAKE2B 16f683b0c124478cd6dbd2eb4b4ad89c283c0669fe96062c199ae3e230e3009f5cd18066f4e98eeec3f6fab5f7bc04fbb5f1ecdafe2599d2bce13218fd8a5b2e SHA512 214d487e71fa30814982ea79979d37fd76f9dd175d47bbaa8704b917e917d348ad6a5352faf9a1fbd66cec40a51a7beb5b7a8d5f2adfba45f98de52c570b30fe +DIST virtualenv-21.5.0.tar.gz.provenance 9555 BLAKE2B e9e6410cc70900f98d039924e0fe95e1e8ff483f0b4e9072ead40f3ebfb80ee9b10c043d12f47cccada8037901a4e38f6cccfa979fd8fd08d36612a40d6f9950 SHA512 683baa83889889292ebeb5646662c91598bfdef6653a04ee07cd3e8dbb7ebd1647cb8a41544ae52ea4860a04a16eba0ab230bee49d4b67c4319be0e335abd796 diff --git a/dev-python/virtualenv/virtualenv-21.4.1.ebuild b/dev-python/virtualenv/virtualenv-21.4.1.ebuild deleted file mode 100644 index fe5a4cc2ea91..000000000000 --- a/dev-python/virtualenv/virtualenv-21.4.1.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_{13..14} ) -PYTHON_COMPAT=( python3_{13..14} ) - -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[${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.4.2.ebuild b/dev-python/virtualenv/virtualenv-21.4.2.ebuild deleted file mode 100644 index fe5a4cc2ea91..000000000000 --- a/dev-python/virtualenv/virtualenv-21.4.2.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_{13..14} ) -PYTHON_COMPAT=( python3_{13..14} ) - -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[${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.4.3.ebuild b/dev-python/virtualenv/virtualenv-21.4.3.ebuild new file mode 100644 index 000000000000..41eb5014a19f --- /dev/null +++ b/dev-python/virtualenv/virtualenv-21.4.3.ebuild @@ -0,0 +1,136 @@ +# 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_{13..14} ) +PYTHON_COMPAT=( python3_{13..14} ) + +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.5.0.ebuild b/dev-python/virtualenv/virtualenv-21.5.0.ebuild new file mode 100644 index 000000000000..41eb5014a19f --- /dev/null +++ b/dev-python/virtualenv/virtualenv-21.5.0.ebuild @@ -0,0 +1,136 @@ +# 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_{13..14} ) +PYTHON_COMPAT=( python3_{13..14} ) + +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 +} -- cgit v1.3