From e6ced24d28044bfa0314af6743b3a81c1ae5bf02 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 6 Nov 2023 18:01:44 +0100 Subject: dev-python/pyre2: Enable py3.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/pyre2/pyre2-1.0.7-r1.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'dev-python/pyre2') diff --git a/dev-python/pyre2/pyre2-1.0.7-r1.ebuild b/dev-python/pyre2/pyre2-1.0.7-r1.ebuild index 75ab7c25b76c..c79bf410219d 100644 --- a/dev-python/pyre2/pyre2-1.0.7-r1.ebuild +++ b/dev-python/pyre2/pyre2-1.0.7-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 @@ -31,3 +31,11 @@ RDEPEND=" " distutils_enable_tests unittest + +src_prepare() { + # py3.12 + # https://github.com/facebook/pyre2/pull/26 + sed -e 's:assertRaisesRegexp:assertRaisesRegex:' \ + -i tests/test_match.py || die + distutils-r1_src_prepare +} -- cgit v1.2.3-65-gdbad