From 913d1662dd1d27556b2f68c3b548ad4ef8f9f05c Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 5 Jun 2023 07:12:26 +0000 Subject: [PATCH] dev-python/jaraco-text: Sync with Gentoo It's from Gentoo commit 6d2df6f4b71756f49d6afeb99ef76b693bd39742. --- .../jaraco-text/jaraco-text-3.11.1.ebuild | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild index bf60d9f2be..3c4773fac6 100644 --- a/sdk_container/src/third_party/portage-stable/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild +++ b/sdk_container/src/third_party/portage-stable/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild @@ -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