commit: 87764eff9006d65c63b53bf4b3d4d03ea813f5d9 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu May 25 02:57:19 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu May 25 03:14:21 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87764eff
dev-python/cython: enable py3.12, use PYTHON_TESTED logic from 3.0.0_beta3 Tests fail immediately trying to import the removed 'imp' module. Bug: https://github.com/cython/cython/issues/5285 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-python/cython/cython-0.29.35.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev-python/cython/cython-0.29.35.ebuild b/dev-python/cython/cython-0.29.35.ebuild index cad4a983b39e..8bfbbd5b5663 100644 --- a/dev-python/cython/cython-0.29.35.ebuild +++ b/dev-python/cython/cython-0.29.35.ebuild @@ -5,7 +5,9 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} pypy3 ) +PYTHON_TESTED=( python3_{10..11} ) +# 3.12 not tested yet for https://github.com/cython/cython/issues/5285. +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_12 pypy3 ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 multiprocessing toolchain-funcs elisp-common @@ -61,7 +63,7 @@ python_compile_all() { } python_test() { - if has "${EPYTHON}" pypy3; then + if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then einfo "Skipping tests on ${EPYTHON} (xfail)" return fi