From ffb4893c977876ec4be9252dbf255f97d263ceb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 14 Apr 2024 14:48:57 +0200 Subject: dev-python/antlr4-python3-runtime: Enable py3.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/929434 Signed-off-by: Michał Górny --- .../antlr4-python3-runtime-4.13.1.ebuild | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'dev-python/antlr4-python3-runtime') diff --git a/dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.1.ebuild b/dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.1.ebuild index 31dcc7c87016..495831c62f21 100644 --- a/dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.1.ebuild +++ b/dev-python/antlr4-python3-runtime/antlr4-python3-runtime-4.13.1.ebuild @@ -1,10 +1,10 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 @@ -25,6 +25,13 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" +src_prepare() { + # https://github.com/antlr/antlr4/pull/4593 + sed -i -e 's:assertEquals:assertEqual:' tests/TestIntervalSet.py || die + + distutils-r1_src_prepare +} + python_test() { "${EPYTHON}" tests/run.py -v || die "Tests failed with ${EPYTHON}" } -- cgit v1.2.3