fedora-python/pyp2rpm

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

petersilva opened this issue · 1 comments


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.

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.