From eb80f50effa33dcc3d9880db0731543e7d264f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 30 May 2023 18:11:21 +0200 Subject: [PATCH] dev-python/trio: Enable py3.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- 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 7b5e30f078163..987eea4462156 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"