Skip to content

Commit

Permalink
dev-python/antlr4-python3-runtime: Enable py3.12
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/929434
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Apr 14, 2024
1 parent 5077f3d commit ffb4893
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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

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

0 comments on commit ffb4893

Please sign in to comment.