RE: [OE-core] [PATCH 16/17] python3-wheel: upgrade 0.46.1 -> 0.46.3

Mingyu Wang (Fujitsu)
2026-01-29T08:07:05Z

The failure occurs in the test_pkginfo_to_metadatatest with the following error:
FAILED tests/test_metadata.py::test_pkginfo_to_metadata - assert [('Metadata-V...win32"'), ...] == [('Metadata-V...win32"'), ...]
At index 3 diff: ('Requires-Dist', 'pip@ https://github.com/pypa/pip/archive/1.3.1.zip')
!= ('Requires-Dist', 'pip @ https://github.com/pypa/pip/archive/1.3.1.zip')
Root cause analysis:
The issue was introduced in wheel version 0.46.3, where the upstream maintainers modified the test expectations in tests/test_metadata.py. Specifically, they changed the expected @symbol spacing format:
Upstream change (in wheel 0.46.3):
- ("Requires-Dist", "pip@ https://github.com/pypa/pip/archive/1.3.1.zip"),
+ ("Requires-Dist", "pip @ https://github.com/pypa/pip/archive/1.3.1.zip"),

- ("Requires-Dist", 'foo@ http://host/foo.zip ; sys_platform == "win32"'),
+ ("Requires-Dist", 'foo @ http://host/foo.zip ; sys_platform == "win32"'),

- ("Requires-Dist", 'bar@ http://host/bar.zip ; extra == "extra"'),
+ ("Requires-Dist", 'bar @ http://host/bar.zip ; extra == "extra"'),

However, the actual implementation in wheel/metadata.pystill produces the old format (pip@ https://...), creating a mismatch between test expectations and code behavior.
The conflict:
Test expects: "pip @ https://..."(space before @)
Code produces: "pip@ https://..."(space after @)

While we could simply revert the test file to match the implementation, this would nullify the upstream change without understanding its purpose. The upstream commit message indicates "Fixed test failures due to metadata normalization changes," suggesting this change was intentional.

I have already reported this inconsistency to the wheel upstream team

--
Best Regards
---------------------------------------------------
Wang Mingyu
FUJITSU NANJING SOFTWARE TECHNOLOGY CO., LTD. (FNST)
No.6 Wenzhu Road, Nanjing, 210012, China
TEL：+86+25-86630566--8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: wangmy@fujitsu.com

> -----Original Message-----
> From: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
> Sent: Thursday, January 29, 2026 12:45 AM
> To: Wang, Mingyu/王 鸣瑜 <wangmy@fujitsu.com>;
> openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH 16/17] python3-wheel: upgrade 0.46.1 -> 0.46.3
>
> On Mon Jan 26, 2026 at 1:38 PM CET, wangmy via lists.openembedded.org
> wrote:
> > From: Wang Mingyu <wangmy@fujitsu.com>
> >
> > Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
> > ---
>
> Hi Wang,
>
> It looks like we also have a failing ptest with this one. I'm not sure why id didn't
> show on my previous builds, either it is linked with other commits or it's a bit
> intermittent.
>
> Failed ptests:
> {'python3-wheel': ['tests/test_metadata.py:test_pkginfo_to_metadata']}
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1004
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/2963
>
> Thanks,
> Mathieu
>
> --
> Mathieu Dubois-Briand, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com