diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-05-27 14:54:49 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-05-27 15:20:54 +0200 |
commit | 3edd8f63560250a35e3bfa02d6fd6d5e2d64f27c (patch) | |
tree | 6a366fa34d49a90ec964e73eae781c6c446a8ba0 /dev-python/poetry-core | |
parent | dev-python/jsonschema: Enable py3.12 (diff) | |
download | gentoo-3edd8f63560250a35e3bfa02d6fd6d5e2d64f27c.tar.gz gentoo-3edd8f63560250a35e3bfa02d6fd6d5e2d64f27c.tar.bz2 gentoo-3edd8f63560250a35e3bfa02d6fd6d5e2d64f27c.zip |
dev-python/poetry-core: Enable py3.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/poetry-core')
-rw-r--r-- | dev-python/poetry-core/poetry-core-1.6.0.ebuild | 20 |
1 files 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 |