Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1981724

Summary: python-traitlets: FTBFS in Fedora rawhide
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-traitletsAssignee: Tomáš Hrnčiar <thrnciar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mhroncok, orion, python-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/python-traitlets
Whiteboard:
Fixed In Version: python-traitlets-5.0.5-5.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-23 14:36:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1890881, 1927309    

Description Tomáš Hrnčiar 2021-07-13 08:20:18 UTC
Description of problem:
Package python-traitlets fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
5.0.5-4.fc35

Steps to Reproduce:
koji build --scratch f35 python-traitlets-5.0.5-4.fc35.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-traitlets

Comment 1 Miro Hrončok 2021-07-23 13:58:43 UTC
This is Python 3.10.0b4+ related, the enum repr changes were reverted upstream.

________________ 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)
            if sys.version_info < (3, 10):
                self.assertEqual(str(example.color), value)
            else:
>               self.assertEqual(repr(example.color), value)
E               AssertionError: '<Color.red: 1>' != 'Color.red'
E               - <Color.red: 1>
E               ? -         ----
E               + Color.red
traitlets/tests/test_traitlets_enum.py:94: AssertionError

We just need to drop this patch one again: https://src.fedoraproject.org/rpms/python-traitlets/c/a6a391e999bfac652c0541fbb4e8f79d70bd03c6?branch=rawhide