commit:     46fed7dea87af4aedcd6b1191a1d07d6a4f2b30c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 15 10:47:45 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 11:29:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46fed7de

dev-python/virtualenv: Enable pypy3.11

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

 dev-python/virtualenv/virtualenv-20.29.2.ebuild | 30 ++++++++++++++++---------
 1 file changed, 19 insertions(+), 11 deletions(-)

diff --git a/dev-python/virtualenv/virtualenv-20.29.2.ebuild 
b/dev-python/virtualenv/virtualenv-20.29.2.ebuild
index 8af728153afa..e32ad0a49967 100644
--- a/dev-python/virtualenv/virtualenv-20.29.2.ebuild
+++ b/dev-python/virtualenv/virtualenv-20.29.2.ebuild
@@ -4,7 +4,8 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( python3_{10..13} pypy3 )
+PYTHON_TESTED=( python3_{10..13} pypy3 )
+PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" pypy3_11 )
 
 inherit distutils-r1 multiprocessing pypi
 
@@ -33,20 +34,22 @@ RDEPEND="
 BDEPEND="
        dev-python/hatch-vcs[${PYTHON_USEDEP}]
        test? (
-               dev-python/coverage[${PYTHON_USEDEP}]
-               dev-python/flaky[${PYTHON_USEDEP}]
-               >=dev-python/pip-22.2.1[${PYTHON_USEDEP}]
                $(python_gen_cond_dep '
-                       >=dev-python/pytest-freezer-0.4.6[${PYTHON_USEDEP}]
-               ' pypy3)
-               >=dev-python/pytest-mock-3.6.1[${PYTHON_USEDEP}]
-               dev-python/pytest-xdist[${PYTHON_USEDEP}]
-               >=dev-python/setuptools-67.8[${PYTHON_USEDEP}]
+                       dev-python/coverage[${PYTHON_USEDEP}]
+                       dev-python/flaky[${PYTHON_USEDEP}]
+                       >=dev-python/pip-22.2.1[${PYTHON_USEDEP}]
+                       >=dev-python/pytest-mock-3.6.1[${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*')
-               dev-python/wheel[${PYTHON_USEDEP}]
-               >=dev-python/packaging-20.0[${PYTHON_USEDEP}]
+               $(python_gen_cond_dep '
+                       >=dev-python/pytest-freezer-0.4.6[${PYTHON_USEDEP}]
+               ' pypy3)
        )
 "
 
@@ -72,6 +75,11 @@ src_prepare() {
 }
 
 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

Reply via email to