python-astunparse fails to build with Python 3.13.0b1. 42 tests fail with different values of the asserted objects. For example: ====================================================================== FAIL: test_with_simple (tests.test_dump.DumpTestCase.test_with_simple) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/astunparse-1.6.3/tests/common.py", line 403, in test_with_simple self.check_roundtrip(with_simple) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ File "/builddir/build/BUILD/astunparse-1.6.3/tests/test_dump.py", line 24, in check_roundtrip self.assertASTEqual(dump1, dump2) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "/builddir/build/BUILD/astunparse-1.6.3/tests/test_dump.py", line 18, in assertASTEqual self.assertEqual(dump1, dump2) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ AssertionError: "Modu[72 chars]ad()), args=[], keywords=[]))], body=[Expr(val[50 chars]=[])" != "Modu[72 chars]ad())))], body=[Expr(value=Name(id='suite1', ctx=Load()))])])" - Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='f', ctx=Load()), args=[], keywords=[]))], body=[Expr(value=Name(id='suite1', ctx=Load()))])], type_ignores=[]) ? ---------------------- ----------------- + Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='f', ctx=Load())))], body=[Expr(value=Name(id='suite1', ctx=Load()))])]) ====================================================================== FAIL: test_with_two_items (tests.test_dump.DumpTestCase.test_with_two_items) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/astunparse-1.6.3/tests/common.py", line 410, in test_with_two_items self.check_roundtrip(with_two_items) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/astunparse-1.6.3/tests/test_dump.py", line 24, in check_roundtrip self.assertASTEqual(dump1, dump2) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "/builddir/build/BUILD/astunparse-1.6.3/tests/test_dump.py", line 18, in assertASTEqual self.assertEqual(dump1, dump2) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ AssertionError: "Modu[72 chars]ad()), args=[], keywords=[]), optional_vars=Na[214 chars]=[])" != "Modu[72 chars]ad())), optional_vars=Name(id='x', ctx=Store()[153 chars]])])" - Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='f', ctx=Load()), args=[], keywords=[]), optional_vars=Name(id='x', ctx=Store())), withitem(context_expr=Call(func=Name(id='g', ctx=Load()), args=[], keywords=[]), optional_vars=Name(id='y', ctx=Store()))], body=[Expr(value=Name(id='suite1', ctx=Load()))])], type_ignores=[]) + Module(body=[With(items=[withitem(context_expr=Call(func=Name(id='f', ctx=Load())), optional_vars=Name(id='x', ctx=Store())), withitem(context_expr=Call(func=Name(id='g', ctx=Load())), optional_vars=Name(id='y', ctx=Store()))], body=[Expr(value=Name(id='suite1', ctx=Load()))])]) ---------------------------------------------------------------------- Ran 94 tests in 0.057s FAILED (failures=42, skipped=8) 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/07433964-python-astunparse/ For all our attempts to build python-astunparse with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-astunparse/ 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 2291624 has been marked as a duplicate of this bug. ***
I've orphaned the package.
This package has been orphaned. You can pick it up at https://src.fedoraproject.org/rpms/python-astunparse by clicking button "Take". If nobody picks it up, it will be retired and removed from a distribution.
Automation has figured out the package is retired in Fedora Rawhide. If you like it to be unretired, please open a ticket at https://pagure.io/releng/new_issue?template=package_unretirement