Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unable to extract package metadata from .whl archive" when it should... #297

Open
petersilva opened this issue Nov 5, 2023 · 1 comment

Comments

@petersilva
Copy link


host% pyp2rpm metpx-sr3
Unable to extract package metadata from .whl archive. This might be caused by an old .whl format version. You may ask the upstream to upload fresh wheels created with wheel >= 0.17.0 or to upload an sdist as well to workaround this problem.
host%

the wheel was created with version 0.37.0... so the complaint does not accurately describe the problem.

I looked at the source, and it is looking for the metadata.json file to be present in the .whl archive. The wheels for this package are built with setuptools, and I'm trying out hatch/hatchling now... the current versions do not include this file with a wheel.

In this wheel, the metadata is in: "sarracenia-3.0.46.dist-info/METADATA " ... ther is nothing manually overridden or special about this. It seems like a wrong assumption in the pyp2rpm.

@petersilva
Copy link
Author

https://packaging.python.org/en/latest/specifications/binary-distribution-format/#binary-distribution-format ... says METADATA is the right place for this information and makes no mention of the metadata.json (or any .json) to be in wheels. So this should never work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant