python-gast fails to build with Python 3.13.0b1. 30 tests fail with similar issues: ____________________________ APITestCase.test_dump _____________________________ self = <tests.test_api.APITestCase testMethod=test_dump> def test_dump(self): code = 'lambda x: x' tree = gast.parse(code, mode='eval') dump = gast.dump(tree) norm = ("Expression(body=Lambda(args=arguments(args=[Name(" "id='x', ctx=Param(), " "annotation=None, type_comment=None)], posonlyargs=[], " "vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, " "defaults=[]), body=Name(id='x', ctx=Load(), " "annotation=None, type_comment=None)" "))") > self.assertEqual(dump, norm) E AssertionError: "Expr[59 chars]ram())]), body=Name(id='x', ctx=Load())))" != "Expr[59 chars]ram(), annotation=None, type_comment=None)], p[148 chars]e)))" E - Expression(body=Lambda(args=arguments(args=[Name(id='x', ctx=Param())]), body=Name(id='x', ctx=Load()))) E + Expression(body=Lambda(args=arguments(args=[Name(id='x', ctx=Param(), annotation=None, type_comment=None)], posonlyargs=[], vararg=None, kwonlyargs=[], kw_defaults=[], kwarg=None, defaults=[]), body=Name(id='x', ctx=Load(), annotation=None, type_comment=None))) tests/test_api.py:44: AssertionError https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/07434069-python-gast/ For all our attempts to build python-gast with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-gast/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
*** Bug 2291711 has been marked as a duplicate of this bug. ***
https://src.fedoraproject.org/rpms/python-gast/pull-request/7