mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-12 23:46:59 +02:00
dev-python/jaraco-text: Sync with Gentoo
It's from Gentoo commit 6d2df6f4b71756f49d6afeb99ef76b693bd39742.
This commit is contained in:
parent
f4db9f3f6e
commit
913d1662dd
@ -7,7 +7,8 @@ EAPI=7
|
||||
DISTUTILS_USE_PEP517=flit
|
||||
PYPI_NO_NORMALIZE=1
|
||||
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
|
||||
|
||||
@ -19,7 +20,7 @@ HOMEPAGE="
|
||||
|
||||
LICENSE="MIT"
|
||||
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="
|
||||
>=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
|
||||
# bootstrap
|
||||
PDEPEND="
|
||||
dev-python/autocommand[${PYTHON_USEDEP}]
|
||||
dev-python/inflect[${PYTHON_USEDEP}]
|
||||
dev-python/more-itertools[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/autocommand[${PYTHON_USEDEP}]
|
||||
dev-python/inflect[${PYTHON_USEDEP}]
|
||||
dev-python/more-itertools[${PYTHON_USEDEP}]
|
||||
' "${CLI_COMPAT[@]}")
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
@ -59,6 +62,19 @@ src_configure() {
|
||||
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() {
|
||||
distutils-r1_python_install
|
||||
# rename to workaround a bug in pkg_resources
|
||||
|
Loading…
Reference in New Issue
Block a user