From 26439456e1ecd9c4c9f945e96028706ce46a0efb Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Sat, 31 May 2025 20:34:50 +0300 Subject: [PATCH] dev-python/traitlets: enable py3.14 Signed-off-by: Arthur Zamarin --- dev-python/traitlets/traitlets-5.14.3.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dev-python/traitlets/traitlets-5.14.3.ebuild b/dev-python/traitlets/traitlets-5.14.3.ebuild index caeeeaf8919dc..93ba813ba0eb3 100644 --- a/dev-python/traitlets/traitlets-5.14.3.ebuild +++ b/dev-python/traitlets/traitlets-5.14.3.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=hatchling -PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..13} ) +PYTHON_COMPAT=( pypy3_11 python3_{11..14} ) inherit distutils-r1 pypi @@ -35,6 +35,16 @@ python_test() { tests/test_typing.py ) + if [[ ${EPYTHON} == python3.14 ]]; then + # fails due to improved error messages in Python 3.14 + # https://github.com/ipython/traitlets/issues/925 + local EPYTEST_DESELECT=( + tests/config/test_argcomplete.py::TestArgcomplete::test_complete_simple_app + tests/config/test_argcomplete.py::TestArgcomplete::test_complete_custom_completers + tests/config/test_argcomplete.py::TestArgcomplete::test_complete_subcommands_subapp1 + ) + fi + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 epytest -p pytest_mock }