diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-06-03 10:15:50 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-06-03 10:17:01 +0200 |
commit | d51013cc3a86f3627b58ac2b61e260f230967609 (patch) | |
tree | 2de7dac9e3e2bde83487291e20dc6a5764557263 /dev-python/jaraco-itertools | |
parent | dev-python/jeepney: Enable py3.12 (diff) | |
download | gentoo-d51013cc3a86f3627b58ac2b61e260f230967609.tar.gz gentoo-d51013cc3a86f3627b58ac2b61e260f230967609.tar.bz2 gentoo-d51013cc3a86f3627b58ac2b61e260f230967609.zip |
dev-python/jaraco-itertools: Enable py3.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/jaraco-itertools')
-rw-r--r-- | dev-python/jaraco-itertools/jaraco-itertools-6.2.1.ebuild | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/dev-python/jaraco-itertools/jaraco-itertools-6.2.1.ebuild b/dev-python/jaraco-itertools/jaraco-itertools-6.2.1.ebuild index 73b3b3cd19a7..54091725a7e5 100644 --- a/dev-python/jaraco-itertools/jaraco-itertools-6.2.1.ebuild +++ b/dev-python/jaraco-itertools/jaraco-itertools-6.2.1.ebuild @@ -6,12 +6,15 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 PYPI_PN=${PN/-/.} -PYTHON_COMPAT=( pypy3 python3_{9..11} ) +PYTHON_COMPAT=( pypy3 python3_{10..12} ) inherit distutils-r1 pypi DESCRIPTION="Tools for working with iterables. Complements itertools and more_itertools" -HOMEPAGE="https://github.com/jaraco/jaraco.itertools" +HOMEPAGE=" + https://github.com/jaraco/jaraco.itertools/ + https://pypi.org/project/jaraco.itertools/ +" LICENSE="MIT" SLOT="0" @@ -28,10 +31,20 @@ BDEPEND=" distutils_enable_tests pytest python_test() { + local EPYTEST_DESELECT=() + if [[ ${EPYTHON} == python3.12 ]]; then + EPYTEST_DESELECT+=( + # prettier output in python3.12 + # https://github.com/jaraco/jaraco.itertools/issues/17 + jaraco/itertools.py::jaraco.itertools.partition_dict + ) + fi + # create a pkgutil-style __init__.py in order to fix pytest's # determination of package paths cat > jaraco/__init__.py <<-EOF || die __path__ = __import__('pkgutil').extend_path(__path__, __name__) EOF + epytest --doctest-modules } |