From 28dcb0b45953a07b409f17089713b34dfddd11e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 12 Jul 2026 16:46:00 +0200 Subject: [PATCH] dev-python/poetry-core: Enable freethreading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/poetry-core/poetry-core-2.4.1.ebuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dev-python/poetry-core/poetry-core-2.4.1.ebuild b/dev-python/poetry-core/poetry-core-2.4.1.ebuild index 7a02636eab4b7..1d52ce5335c68 100644 --- a/dev-python/poetry-core/poetry-core-2.4.1.ebuild +++ b/dev-python/poetry-core/poetry-core-2.4.1.ebuild @@ -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 }