dev-python/jaraco-text: Sync with Gentoo

It's from Gentoo commit 6d2df6f4b71756f49d6afeb99ef76b693bd39742.
This commit is contained in:
Flatcar Buildbot 2023-06-05 07:12:26 +00:00
parent f4db9f3f6e
commit 913d1662dd

View File

@ -7,7 +7,8 @@ EAPI=7
DISTUTILS_USE_PEP517=flit DISTUTILS_USE_PEP517=flit
PYPI_NO_NORMALIZE=1 PYPI_NO_NORMALIZE=1
PYPI_PN=${PN/-/.} PYPI_PN=${PN/-/.}
PYTHON_COMPAT=( python3_{9..11} pypy3 ) CLI_COMPAT=( python3_{10..11} pypy3 )
PYTHON_COMPAT=( "${CLI_COMPAT[@]}" python3_12 )
inherit distutils-r1 pypi inherit distutils-r1 pypi
@ -19,7 +20,7 @@ HOMEPAGE="
LICENSE="MIT" LICENSE="MIT"
SLOT="0" SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
RDEPEND=" RDEPEND="
>=dev-python/jaraco-context-4.1.1-r1[${PYTHON_USEDEP}] >=dev-python/jaraco-context-4.1.1-r1[${PYTHON_USEDEP}]
@ -28,9 +29,11 @@ RDEPEND="
# needed only for CLI tool, make it PDEPEND to reduce pain in setuptools # needed only for CLI tool, make it PDEPEND to reduce pain in setuptools
# bootstrap # bootstrap
PDEPEND=" PDEPEND="
dev-python/autocommand[${PYTHON_USEDEP}] $(python_gen_cond_dep '
dev-python/inflect[${PYTHON_USEDEP}] dev-python/autocommand[${PYTHON_USEDEP}]
dev-python/more-itertools[${PYTHON_USEDEP}] dev-python/inflect[${PYTHON_USEDEP}]
dev-python/more-itertools[${PYTHON_USEDEP}]
' "${CLI_COMPAT[@]}")
" "
BDEPEND=" BDEPEND="
test? ( test? (
@ -59,6 +62,19 @@ src_configure() {
EOF EOF
} }
python_test() {
local EPYTEST_IGNORE=()
if ! has "${EPYTHON/./_}" "${CLI_COMPAT[@]}"; then
EPYTEST_IGNORE+=(
jaraco/text/show-newlines.py
jaraco/text/strip-prefix.py
)
fi
epytest
}
python_install() { python_install() {
distutils-r1_python_install distutils-r1_python_install
# rename to workaround a bug in pkg_resources # rename to workaround a bug in pkg_resources