python-parso fails to build with Python 3.11.0a7. =================================== FAILURES =================================== ________________ [doctest] parso.python.token.PythonTokenTypes _________________ EXAMPLE LOCATION UNKNOWN, not showing all tests of that example ??? >>> PythonTokenTypes(TokenType(STRING)) UNEXPECTED EXCEPTION: NameError("name 'STRING' is not defined") Traceback (most recent call last): File "/usr/lib64/python3.11/doctest.py", line 1346, in __run exec(compile(example.source, filename, "single", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<doctest parso.python.token.PythonTokenTypes[1]>", line 1, in <module> NameError: name 'STRING' is not defined /builddir/build/BUILD/parso-0.8.3/parso/python/token.py:None: UnexpectedException https://docs.python.org/3.11/whatsnew/3.11.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04304224-python-parso/ For all our attempts to build python-parso with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-parso/ 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.11: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/ Let us know here if you have any questions. Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11. 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.
I was thinking that removing the `--doctest-modules` flag [0] would be sufficient to resolve this. I did that in a PR [1], but the resulting COPR build [2] failed. The normal scratch build (using Python 3.10) [3] failed also. A Python 3.10 local build is working for me. I'm not sure what's going on here. [0] https://github.com/davidhalter/parso/blob/v0.8.3/pytest.ini#L2 [1] https://src.fedoraproject.org/rpms/python-parso/pull-request/4 [2] https://copr.fedorainfracloud.org/coprs/g/python/python3.11/build/4325970/ [3] https://koji.fedoraproject.org/koji/taskinfo?taskID=86228456
(In reply to Carl George 🤠 from comment #1) > ...I did that in a PR [1], but the resulting COPR > build [2] failed. The normal scratch build (using Python 3.10) [3] failed > also. A Python 3.10 local build is working for me. I'm not sure what's > going on here. > > > [1] https://src.fedoraproject.org/rpms/python-parso/pull-request/4 > [2] > https://copr.fedorainfracloud.org/coprs/g/python/python3.11/build/4325970/ > [3] https://koji.fedoraproject.org/koji/taskinfo?taskID=86228456 IMHO this is an RPM 4.18 regression wrt %generate_buildrequires.
Try (even on branch rawhide, without your PR): $ mock -r fedora-rawhide-x86_64 clean $ mock -r fedora-rawhide-x86_64 --scrub=all $ fedpkg --release rawhide mockbuild -N --enablerepo=local Or see https://koschei.fedoraproject.org/package/python-parso
FEDORA-2022-9295c2519a has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-9295c2519a
FEDORA-2022-9295c2519a has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.