From c2ab8a6c3dc0aa26acaa31f3ee48cf7f5b843315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 29 Sep 2026 14:53:40 +0200 Subject: [PATCH] dev-python/tomlkit: Enable pypy3.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny Part-of: https://codeberg.org/gentoo/gentoo/pulls/1973 --- dev-python/tomlkit/tomlkit-0.15.1.ebuild | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/dev-python/tomlkit/tomlkit-0.15.1.ebuild b/dev-python/tomlkit/tomlkit-0.15.1.ebuild index 8be2506a2f0a8..de08570250ac8 100644 --- a/dev-python/tomlkit/tomlkit-0.15.1.ebuild +++ b/dev-python/tomlkit/tomlkit-0.15.1.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=flit-core -PYTHON_COMPAT=( python3_{12..15} python3_{14,15}t ) +PYTHON_COMPAT=( pypy3_12 python3_{12..15} python3_{14,15}t ) inherit distutils-r1 pypi @@ -18,12 +18,6 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" -BDEPEND=" - test? ( - dev-python/pyyaml[${PYTHON_USEDEP}] - ) -" - EPYTEST_PLUGINS=() distutils_enable_tests pytest @@ -46,3 +40,16 @@ src_configure() { # which are older than what zip can handle... find -exec touch {} + || die } + +python_test() { + local EPYTEST_DESELECT=() + + if [[ ${EPYTHON} == pypy* ]]; then + EPYTEST_DESELECT+=( + # https://github.com/python-poetry/tomlkit/issues/619 + tests/test_items.py::test_times_behave_like_times + ) + fi + + epytest +}