commit:     92d1c6bc0b66c358d851126dbad19e887c92879f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May 11 21:46:48 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 11 22:19:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92d1c6bc

dev-python/pygments: enable py3.14

Skip the help tests for now. Not ideal but it's not too bad and it's
not pygments-specific anyway.

Bug: https://github.com/python/cpython/issues/133653
Bug: https://github.com/python/cpython/pull/133813
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/pygments/pygments-2.19.1.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-python/pygments/pygments-2.19.1.ebuild 
b/dev-python/pygments/pygments-2.19.1.ebuild
index e526ad2a9566..063bd7bb01b3 100644
--- a/dev-python/pygments/pygments-2.19.1.ebuild
+++ b/dev-python/pygments/pygments-2.19.1.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_USE_PEP517=hatchling
 PYPI_PN=${PN^}
-PYTHON_COMPAT=( python3_{11..13} pypy3_11 )
+PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
 
 inherit distutils-r1 bash-completion-r1 pypi
 
@@ -40,6 +40,18 @@ EPYTEST_DESELECT=(
 EPYTEST_XDIST=1
 distutils_enable_tests pytest
 
+python_test() {
+       if [[ ${EPYTHON} == python3.14* ]] ; then
+               EPYTEST_IGNORE+=(
+                       # https://github.com/python/cpython/issues/133653
+                       # https://github.com/python/cpython/pull/133813
+                       tests/test_cmdline.py
+               )
+       fi
+
+       epytest
+}
+
 src_install() {
        distutils-r1_src_install
        newbashcomp external/pygments.bashcomp pygmentize

Reply via email to