Bug 2359507

Summary: python-pkginfo fails to build when we rebuilt wheel with the newest flit_core: AssertionError: assert '2.4' == '2.3'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-pkginfoAssignee: Karolina Surma <ksurma>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mail, mhayden, mhroncok, python-packagers-sig, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pkginfo-1.12.1.2-2.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-04-24 07:57:59 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: 2322407, 2339432    

Description Karolina Surma 2025-04-14 13:40:11 UTC
python-pkginfo (will) fail to build in Fedora Rawhide.

_______________________ test_installed_ctor_w_dist_info ________________________

    def test_installed_ctor_w_dist_info():
        from packaging import version
        import wheel
    
        installed = _make_installed('wheel')
    
        assert(installed.package == wheel)
        assert(installed.package_name == 'wheel')
    
        # See: https://bugs.launchpad.net/pkginfo/+bug/2090840
        installed_version = version.Version(installed.version)
        if installed_version < version.Version('0.44.dev0'):
            assert(installed.metadata_version == '2.1')
        else:
>           assert(installed.metadata_version == '2.3')
E           AssertionError: assert '2.4' == '2.3'
E             
E             - 2.3
E             + 2.4

We've already discussed it will have to be done once wheel is rebuilt in Fedora with the new flit_core and changes the metadata_version value.
Logging this to make sure we don't forget about this issue.

Comment 2 Fedora Update System 2025-04-24 07:53:32 UTC
FEDORA-2025-2263bf3ef7 (python-pkginfo-1.12.1.2-2.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-2263bf3ef7

Comment 3 Fedora Update System 2025-04-24 07:57:59 UTC
FEDORA-2025-2263bf3ef7 (python-pkginfo-1.12.1.2-2.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.