This package does not support Python 3.12. Please test it with Python 3.12 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg99104.html. Please check the information provided in the tracker. Ask in #gentoo-python on IRC if need any help.
To get tests to run at all, I had to adjust imports into lib2to3, using a pattern like this for all of test_annotate{_json,}_py{2,3}.py: --- a/pyannotate_tools/fixes/tests/test_annotate_py3.py +++ b/pyannotate_tools/fixes/tests/test_annotate_py3.py @@ -1,7 +1,13 @@ # flake8: noqa # Our flake extension misfires on type comments in strings below. -from lib2to3.tests.test_fixers import FixerTestCase +import sys + +if sys.version_info < (3, 12): + from lib2to3.tests.test_fixers import FixerTestCase +else: + from test.test_lib2to3.test_fixers import FixerTestCase + import unittest # deadcode: fix_annotate is used as part of the fixer_pkg for this test I then get errors similar to URL. Seems dead upstream, no commits in 3 years.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ce0a956b23805b3a2d1608e800a1d0356efec5b commit 2ce0a956b23805b3a2d1608e800a1d0356efec5b Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-04-23 15:57:12 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-04-23 15:57:12 +0000 package.mask: Last rite dev-python/pyannotate Bug: https://bugs.gentoo.org/929484 Signed-off-by: Michał Górny <mgorny@gentoo.org> profiles/package.mask | 5 +++++ 1 file changed, 5 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3cbdceae07c13acd6e2df9129275c427424cf68 commit d3cbdceae07c13acd6e2df9129275c427424cf68 Author: Arthur Zamarin <arthurzam@gentoo.org> AuthorDate: 2024-05-31 19:19:23 +0000 Commit: Arthur Zamarin <arthurzam@gentoo.org> CommitDate: 2024-05-31 19:19:23 +0000 dev-python/pyannotate: treeclean Closes: https://bugs.gentoo.org/929484 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> dev-python/pyannotate/Manifest | 1 - dev-python/pyannotate/metadata.xml | 21 --------------------- dev-python/pyannotate/pyannotate-1.2.0-r1.ebuild | 23 ----------------------- profiles/package.mask | 5 ----- 4 files changed, 50 deletions(-)