summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-05-23 16:29:51 +0200
committerMichał Górny <mgorny@gentoo.org>2023-05-23 17:41:45 +0200
commitf2df7aca394309b85324a9d6540a7d15b55ac4b1 (patch)
treee40d16bde393aecceb5d4cb3235a6d7436f2f9c9 /dev-python/jaraco-text
parentdev-python/jaraco-functools: Enable py3.12 (diff)
downloadgentoo-f2df7aca394309b85324a9d6540a7d15b55ac4b1.tar.gz
gentoo-f2df7aca394309b85324a9d6540a7d15b55ac4b1.tar.bz2
gentoo-f2df7aca394309b85324a9d6540a7d15b55ac4b1.zip
dev-python/jaraco-text: Enable py3.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/jaraco-text')
-rw-r--r--dev-python/jaraco-text/jaraco-text-3.11.1.ebuild24
1 files changed, 20 insertions, 4 deletions
diff --git a/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild b/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild
index bf60d9f2be40..0c97430b866e 100644
--- a/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild
+++ b/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
@@ -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