mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-python/poetry-core: Enable freethreading
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user