python-traitlets fails to build with Python 3.11.0a2. =================================== FAILURES =================================== ________________ TestUseEnum.test_assign_scoped_enum_value_name ________________ self = <traitlets.tests.test_traitlets_enum.TestUseEnum testMethod=test_assign_scoped_enum_value_name> def test_assign_scoped_enum_value_name(self): # -- CONVERT: string => Enum value (item) scoped_names = ["Color.red", "Color.green", "Color.blue", "Color.yellow"] for value in scoped_names: example = self.Example() example.color = value self.assertIsInstance(example.color, Color) > self.assertEqual(str(example.color), value) E AssertionError: 'red' != 'Color.red' E - red E + Color.red example = <traitlets.tests.test_traitlets_enum.TestUseEnum.Example object at 0x7eff12ab2a40> scoped_names = ['Color.red', 'Color.green', 'Color.blue', 'Color.yellow'] self = <traitlets.tests.test_traitlets_enum.TestUseEnum testMethod=test_assign_scoped_enum_value_name> value = 'Color.red' traitlets/tests/test_traitlets_enum.py:90: AssertionError ============================= slowest 10 durations ============================= 0.01s call traitlets/tests/test_traitlets.py::TestTraitType::test_deprecated_metadata_access 0.01s call traitlets/tests/test_traitlets.py::TestTraitType::test_deprecated_method_warnings (8 durations < 0.005s hidden. Use -vv to show these durations.) =========================== short test summary info ============================ FAILED traitlets/tests/test_traitlets_enum.py::TestUseEnum::test_assign_scoped_enum_value_name ======================== 1 failed, 398 passed in 2.57s ========================= 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/02992642-python-traitlets/ For all our attempts to build python-traitlets with Python 3.11, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-traitlets/ 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.
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36.
Recent builds in COPR started to pass so I am closing this. https://copr.fedorainfracloud.org/coprs/g/python/python3.11/build/4305109/