python-distlib fails to build with Python 3.11.0a3. ====================================================================== FAIL: test_sequencer_basic (test_util.UtilTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/distlib-0.3.4/tests/test_util.py", line 410, in test_sequencer_basic self.assertIn(actual, expected) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: [('upload_sdist',), ('sdist',), ('install',), ('install_distinfo',), ('install_data',), ('install_scripts',), ('install_lib',), ('install_headers',), ('test',), ('upload_bdist',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('register',), ('check',)] not found in ([('test',), ('upload_bdist',), ('install',), ('install_distinfo',), ('install_data',), ('install_scripts',), ('install_lib',), ('install_headers',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('upload_sdist',), ('sdist',), ('register',), ('check',)], [('install',), ('install_distinfo',), ('install_data',), ('install_scripts',), ('install_lib',), ('install_headers',), ('test',), ('upload_bdist',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('upload_sdist',), ('sdist',), ('register',), ('check',)], [('upload_sdist',), ('sdist',), ('install',), ('install_distinfo',), ('install_data',), ('upload_bdist',), ('register',), ('install_scripts',), ('install_lib',), ('install_headers',), ('test',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('check',)], [('upload_sdist',), ('sdist',), ('upload_bdist',), ('register',), ('test',), ('install',), ('install_distinfo',), ('install_data',), ('install_scripts',), ('install_lib',), ('install_headers',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('check',)], [('upload_sdist',), ('sdist',), ('upload_bdist',), ('register',), ('install',), ('install_distinfo',), ('install_data',), ('install_scripts',), ('install_lib',), ('install_headers',), ('test',), ('build',), ('build_scripts',), ('build_py',), ('build_ext',), ('build_clibs',), ('check',)]) ---------------------------------------------------------------------- Ran 235 tests in 10.582s FAILED (failures=1, skipped=32) 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/03057695-python-distlib/ For all our attempts to build python-distlib with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-distlib/ 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.
Version 0.3.3 builds well with Python 3.11, seems like the problem was introduced in 0.3.4.
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36.
(In reply to Tomáš Hrnčiar from comment #1) > Version 0.3.3 builds well with Python 3.11, seems like the problem was > introduced in 0.3.4. Disregard this comment. It turned out that tests were disabled on 0.3.3 and that's why the build passed. When I enabled them, 0.3.3 also failed with Python 3.11. This was already reported in the upstream and the problem is that the test is sensitive to dictionary ordering.
FEDORA-2022-bf65dc871c has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-bf65dc871c
FEDORA-2022-bf65dc871c has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.