Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 929484 - dev-python/pyannotate: needs upgrade to Python 3.12 (PythonCompatUpdate)
Summary: dev-python/pyannotate: needs upgrade to Python 3.12 (PythonCompatUpdate)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Sam James
URL: https://github.com/dropbox/pyannotate...
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: 921826
  Show dependency tree
 
Reported: 2024-04-13 08:35 UTC by Michał Górny
Modified: 2024-04-23 16:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-04-13 08:35:24 UTC
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.
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2024-04-22 00:15:29 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2024-04-23 16:01:19 UTC
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(+)