From 3edd8f63560250a35e3bfa02d6fd6d5e2d64f27c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 27 May 2023 14:54:49 +0200 Subject: [PATCH] dev-python/poetry-core: Enable py3.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../poetry-core/poetry-core-1.6.0.ebuild | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/dev-python/poetry-core/poetry-core-1.6.0.ebuild b/dev-python/poetry-core/poetry-core-1.6.0.ebuild index afab1fc778100..6861aeaf72b5d 100644 --- a/dev-python/poetry-core/poetry-core-1.6.0.ebuild +++ b/dev-python/poetry-core/poetry-core-1.6.0.ebuild @@ -4,7 +4,8 @@ EAPI=8 DISTUTILS_USE_PEP517=standalone -PYTHON_COMPAT=( pypy3 python3_{10..11} ) +PYTHON_TESTED=( pypy3 python3_{10..11} ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_12 ) inherit distutils-r1 @@ -35,11 +36,13 @@ RDEPEND=" BDEPEND=" ${RDEPEND} test? ( - dev-python/build[${PYTHON_USEDEP}] - dev-python/pytest-mock[${PYTHON_USEDEP}] - dev-python/tomli-w[${PYTHON_USEDEP}] - dev-python/virtualenv[${PYTHON_USEDEP}] - dev-vcs/git + $(python_gen_cond_dep ' + dev-python/build[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/tomli-w[${PYTHON_USEDEP}] + dev-python/virtualenv[${PYTHON_USEDEP}] + dev-vcs/git + ' "${PYTHON_TESTED[@]}") ) " @@ -61,6 +64,11 @@ src_prepare() { } python_test() { + if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then + einfo "Skippin tests on ${EPYTHON} (unported deps)" + return + fi + # needed for migration from <1.1 distutils_write_namespace poetry epytest