mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 17:06:58 +02:00
dev-python/pygments: Sync with Gentoo
It's from Gentoo commit ca3cc9fc57c0f3f51e2bf29cc3f9730b4bf69c21.
This commit is contained in:
parent
e46a4c6976
commit
f7bd51100f
@ -5,7 +5,8 @@ EAPI=8
|
|||||||
|
|
||||||
DISTUTILS_USE_PEP517=hatchling
|
DISTUTILS_USE_PEP517=hatchling
|
||||||
PYPI_PN=${PN^}
|
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
|
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="
|
BDEPEND="
|
||||||
test? (
|
test? (
|
||||||
|
$(python_gen_cond_dep '
|
||||||
dev-python/lxml[${PYTHON_USEDEP}]
|
dev-python/lxml[${PYTHON_USEDEP}]
|
||||||
dev-python/pillow[${PYTHON_USEDEP}]
|
dev-python/pillow[${PYTHON_USEDEP}]
|
||||||
|
' "${PYTHON_FULLY_TESTED[@]}")
|
||||||
dev-python/wcag-contrast-ratio[${PYTHON_USEDEP}]
|
dev-python/wcag-contrast-ratio[${PYTHON_USEDEP}]
|
||||||
virtual/ttf-fonts
|
virtual/ttf-fonts
|
||||||
)
|
)
|
||||||
@ -40,6 +43,18 @@ EPYTEST_DESELECT=(
|
|||||||
EPYTEST_XDIST=1
|
EPYTEST_XDIST=1
|
||||||
distutils_enable_tests pytest
|
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() {
|
src_install() {
|
||||||
distutils-r1_src_install
|
distutils-r1_src_install
|
||||||
newbashcomp external/pygments.bashcomp pygmentize
|
newbashcomp external/pygments.bashcomp pygmentize
|
||||||
|
Loading…
Reference in New Issue
Block a user