https://bugzilla.redhat.com/show_bug.cgi?id=2279990
Bug ID: 2279990 Summary: python-pure-eval fails to build with Python 3.13: test_sys_modules: AssertionError Product: Fedora Version: rawhide Status: NEW Component: python-pure-eval Assignee: lbalhar@redhat.com Reporter: ksurma@redhat.com CC: epel-packagers-sig@lists.fedoraproject.org, ksurma@redhat.com, lbalhar@redhat.com, mhroncok@redhat.com, michel@michel-slm.name, python-packagers-sig@lists.fedoraproject.org Blocks: 2244836 (PYTHON3.13) Target Milestone: --- Classification: Fedora
python-pure-eval fails to build with Python 3.13.0b1.
=================================== FAILURES =================================== _______________________________ test_sys_modules _______________________________
def test_sys_modules(): modules = sys_modules_sources() if not os.environ.get('PURE_EVAL_SLOW_TESTS'): modules = islice(modules, 0, 3)
for filename, source, tree in modules: print(filename) if not filename.endswith("ast.py"):
check_copy_ast_without_context(tree)
tests/test_utils.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tree = <ast.Module object at 0x7f87699d70d0>
def check_copy_ast_without_context(tree): tree2 = copy_ast_without_context(tree) dump1 = ast.dump(tree) dump2 = ast.dump(tree2) normalised_dump1 = re.sub( r", ctx=(Load|Store|Del)()", "", dump1 )
assert normalised_dump1 == dump2
E assert "Module(body=...e__'))]))])])" == "Module(body=...e__'))]))])])" E Skipping 4274 identical leading characters in diff, use -v to show E - alue=List()), Assign(targets=[Attribute(value=Name(id='self'), attr='_iterating')], value=Call(func=Name(id='set'))), Assign(targets=[Attribute(value=Name(id='self'), attr='data')], value=Dict())]), FunctionDef(name='_commit_removals', args=arguments(args=[arg(arg='self')]), body=[Assign(targets=[Name(id='pop')], value=Attribute(value=Attribute(value=Name(id='self'), attr='_pending_removals'), attr='pop')), Assign(targets=[Name(id='d')], value=Attribute(value=Name(id='self'), attr='data')), While(test=C... E E ...Full output truncated (4 lines hidden), use '-vv' to show
tests/test_utils.py:65: AssertionError FAILED tests/test_utils.py::test_sys_modules - assert "Module(body=...e__'))]...
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-ra...
For all our attempts to build python-pure-eval with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-p...
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.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=2244836 [Bug 2244836] Python 3.13
https://bugzilla.redhat.com/show_bug.cgi?id=2279990
Lumír Balhar lbalhar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Link ID| |Github | |alexmojaki/pure_eval/issues | |/16
--- Comment #1 from Lumír Balhar lbalhar@redhat.com --- Reported upstream: https://github.com/alexmojaki/pure_eval/issues/16
https://bugzilla.redhat.com/show_bug.cgi?id=2279990
Lumír Balhar lbalhar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |RAWHIDE Last Closed| |2024-05-15 08:49:31
--- Comment #2 from Lumír Balhar lbalhar@redhat.com --- Fixed in https://github.com/cloudpipe/cloudpickle/pull/534
epel-packagers-sig@lists.fedoraproject.org