commit:     eb80f50effa33dcc3d9880db0731543e7d264f8b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 30 16:11:21 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 30 16:18:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb80f50e

dev-python/trio: Enable py3.12

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

 dev-python/trio/trio-0.22.0_p20230530.ebuild | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/dev-python/trio/trio-0.22.0_p20230530.ebuild 
b/dev-python/trio/trio-0.22.0_p20230530.ebuild
index 7b5e30f07816..987eea446215 100644
--- a/dev-python/trio/trio-0.22.0_p20230530.ebuild
+++ b/dev-python/trio/trio-0.22.0_p20230530.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{10..11} )
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
 
 inherit distutils-r1
 
@@ -28,7 +28,9 @@ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86"
 
 RDEPEND="
        >=dev-python/attrs-20.1.0[${PYTHON_USEDEP}]
-       >=dev-python/exceptiongroup-1.0.0_rc9[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               >=dev-python/exceptiongroup-1.0.0_rc9[${PYTHON_USEDEP}]
+       ' 3.{9..10})
        dev-python/idna[${PYTHON_USEDEP}]
        dev-python/outcome[${PYTHON_USEDEP}]
        dev-python/sniffio[${PYTHON_USEDEP}]
@@ -65,6 +67,11 @@ python_test() {
                # incompatible ipython version?
                trio/_core/tests/test_multierror.py::test_ipython_exc_handler
        )
+       if [[ ${EPYTHON} == python3.12 ]]; then
+               EPYTEST_DESELECT+=(
+                       
trio/_core/_tests/test_run.py::test_nursery_cancel_doesnt_create_cyclic_garbage
+               )
+       fi
 
        local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
        epytest -p trio._tests.pytest_plugin  -m "not 
redistributors_should_skip"

Reply via email to