From f7bd51100f02246ce03a73ff3ba2cc7fd452aeac Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 16 Jun 2025 07:09:05 +0000 Subject: [PATCH] dev-python/pygments: Sync with Gentoo It's from Gentoo commit ca3cc9fc57c0f3f51e2bf29cc3f9730b4bf69c21. --- .../pygments/pygments-2.19.1.ebuild | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/dev-python/pygments/pygments-2.19.1.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/pygments/pygments-2.19.1.ebuild index 7ace5ffe42..4e18fd5c0a 100644 --- a/sdk_container/src/third_party/portage-stable/dev-python/pygments/pygments-2.19.1.ebuild +++ b/sdk_container/src/third_party/portage-stable/dev-python/pygments/pygments-2.19.1.ebuild @@ -5,7 +5,8 @@ EAPI=8 DISTUTILS_USE_PEP517=hatchling PYPI_PN=${PN^} -PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 ) +PYTHON_FULLY_TESTED=( python3_{11..14} pypy3_11 ) +PYTHON_COMPAT=( "${PYTHON_FULLY_TESTED[@]}" python3_{13,14}t ) inherit distutils-r1 bash-completion-r1 pypi @@ -22,8 +23,10 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 BDEPEND=" test? ( - dev-python/lxml[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + ' "${PYTHON_FULLY_TESTED[@]}") dev-python/wcag-contrast-ratio[${PYTHON_USEDEP}] virtual/ttf-fonts ) @@ -40,6 +43,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