dev-python/antlr4-python3-runtime: Enable py3.12

Closes: https://bugs.gentoo.org/929434
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-04-14 14:48:57 +02:00
parent 5077f3d5cd
commit ffb4893c97

View File

@@ -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}"
}