diff options
Diffstat (limited to 'dev-python/virtualenv')
| -rw-r--r-- | dev-python/virtualenv/Manifest | 8 | ||||
| -rw-r--r-- | dev-python/virtualenv/files/virtualenv-20.31.1-ensurepip.patch | 34 | ||||
| -rw-r--r-- | dev-python/virtualenv/files/virtualenv-21.2.4-ensurepip.patch | 29 | ||||
| -rw-r--r-- | dev-python/virtualenv/metadata.xml | 13 | ||||
| -rw-r--r-- | dev-python/virtualenv/virtualenv-20.39.1.ebuild | 133 | ||||
| -rw-r--r-- | dev-python/virtualenv/virtualenv-21.3.3.ebuild | 136 | ||||
| -rw-r--r-- | dev-python/virtualenv/virtualenv-21.4.1.ebuild | 136 | ||||
| -rw-r--r-- | dev-python/virtualenv/virtualenv-21.4.2.ebuild | 136 |
8 files changed, 0 insertions, 625 deletions
diff --git a/dev-python/virtualenv/Manifest b/dev-python/virtualenv/Manifest deleted file mode 100644 index 910e13fbdf68..000000000000 --- a/dev-python/virtualenv/Manifest +++ /dev/null @@ -1,8 +0,0 @@ -DIST virtualenv-20.39.1.tar.gz 5870061 BLAKE2B 30fb2c107616c080935ede0ea2e72e5b70bc184d46d7eb26e08f612f8cc6be26dde2a8c53c8d415b586904749e5dd4bfc5f82ff6c186cdc51815a480e1dbbe80 SHA512 8d8fb281cd55bf60065b4d57e37963a90bf116e46e67eb3688177f40d975da93a558e1ad67b6d7ee8ecfd1a005cd3d4dccc4c50c72569fad221634136a61e23d -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 diff --git a/dev-python/virtualenv/files/virtualenv-20.31.1-ensurepip.patch b/dev-python/virtualenv/files/virtualenv-20.31.1-ensurepip.patch deleted file mode 100644 index 54a989fecb9d..000000000000 --- a/dev-python/virtualenv/files/virtualenv-20.31.1-ensurepip.patch +++ /dev/null @@ -1,34 +0,0 @@ -From ab30a98f4bb53b7aad6fd130cf723271e2b7f638 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> -Date: Sat, 22 Jun 2024 14:28:23 +0200 -Subject: [PATCH] Use ensurepip wheels instead of local bundle - ---- - src/virtualenv/seed/wheels/embed/__init__.py | 8 ++++++++ - 1 file changed, 8 insertions(+) - -diff --git a/src/virtualenv/seed/wheels/embed/__init__.py b/src/virtualenv/seed/wheels/embed/__init__.py -index 6b3ef263..37c114f8 100644 ---- a/src/virtualenv/seed/wheels/embed/__init__.py -+++ b/src/virtualenv/seed/wheels/embed/__init__.py -@@ -1,5 +1,6 @@ - from __future__ import annotations - -+import sysconfig - from pathlib import Path - - from virtualenv.seed.wheels.util import Wheel -@@ -40,6 +41,13 @@ MAX = "3.8" - - - def get_embed_wheel(distribution, for_py_version): -+ # Gentoo hack: get wheel from ensurepip directory -+ 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/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?= <mgorny@gentoo.org> -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/metadata.xml b/dev-python/virtualenv/metadata.xml deleted file mode 100644 index 70fbec18b5a3..000000000000 --- a/dev-python/virtualenv/metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>python@gentoo.org</email> - <name>Python</name> - </maintainer> - <stabilize-allarches/> - <upstream> - <remote-id type="pypi">virtualenv</remote-id> - <remote-id type="github">pypa/virtualenv</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/virtualenv/virtualenv-20.39.1.ebuild b/dev-python/virtualenv/virtualenv-20.39.1.ebuild deleted file mode 100644 index 952db93a229d..000000000000 --- a/dev-python/virtualenv/virtualenv-20.39.1.ebuild +++ /dev/null @@ -1,133 +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 ~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/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 -} diff --git a/dev-python/virtualenv/virtualenv-21.3.3.ebuild b/dev-python/virtualenv/virtualenv-21.3.3.ebuild deleted file mode 100644 index fa6305a0d919..000000000000 --- a/dev-python/virtualenv/virtualenv-21.3.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_{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.3.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}-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.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 -} |
