dev-python/poetry-core: Enable freethreading

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-07-12 16:46:00 +02:00
parent 14a46c209b
commit 28dcb0b459

View File

@@ -5,7 +5,7 @@ EAPI=8
DISTUTILS_USE_PEP517=standalone
PYPI_VERIFY_REPO=https://github.com/python-poetry/poetry-core
PYTHON_TESTED=( python3_{12..15} )
PYTHON_TESTED=( python3_{12..15} python3_{14..15}t )
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" )
inherit distutils-r1 pypi
@@ -57,11 +57,23 @@ python_test() {
return
fi
local EPYTEST_DESELECT=()
case ${EPYTHON} in
python*t)
EPYTEST_DESELECT+=(
# tests not adjusted for freethreading tags
tests/masonry/builders/test_complete.py::test_wheel_c_extension
tests/masonry/builders/test_wheel.py::test_tag
)
;;
esac
# Poetry expects test to be run inside a git repository, otherwise
# VCS-related logic doesn't get triggered. An empty repository
# suffices, though.
git init || die
local EPYTEST_PLUGINS=( pytest-mock )
# NB: xdist breaks test collection
epytest
}