commit: 3edd8f63560250a35e3bfa02d6fd6d5e2d64f27c
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 27 12:54:49 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 27 13:20:54 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3edd8f63
dev-python/poetry-core: Enable py3.12
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/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 afab1fc77810..6861aeaf72b5 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