zestsoftware / zest.releaser

Python software releasing made easy and repeatable
https://zestreleaser.readthedocs.io
GNU General Public License v2.0
198 stars 62 forks source link

Wheel does not contain the required METADATA file #429

Closed mauritsvanrees closed 10 months ago

mauritsvanrees commented 11 months ago

I saw this today while trying to release a wheel to PyPI:

Upload to pypi (Y/n)? 
Uploading distributions to https://upload.pypi.org/legacy/
Uploading collective.z3cform.colorpicker-3.0.0-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.2/23.2 kB • 00:00 • 54.1 MB/s
WARNING Error during upload. Retry with the --verbose option for more details.                                                                                                                                                          
Response status code: 400
Reason: Wheel 'collective.z3cform.colorpicker-3.0.0-py3-none-any.whl' does not contain the required METADATA file: collective_z3cform_colorpicker-3.0.0.dist-info/METADATA
There were errors or warnings.
ERROR Package upload has failed.                                                                                                                                                                                                        
          NoneType: None   

The generated wheel does contain the METADATA file, and seems fine. Running twine check over the wheel shows no problems.

This is with master (or latest alpha). When I try zest.releaser 8.0.0, it works fine. One difference is that with 8.0.0 no wheel is created, probably because I really only installed zest.releaser, and not wheel.

Repo is here: https://github.com/collective/collective.z3cform.colorpicker

Actually, the error message says it expects:

collective_z3cform_colorpicker-3.0.0.dist-info/METADATA

What is actually there, is:

collective.z3cform.colorpicker-3.0.0.dist-info

So with dots instead of underscores.

Has anyone seen this?

reinout commented 11 months ago

No, but I haven't released a package with a dot in the name in the last few months (apart from zest.releaser). Does it have to do with new/old style namespace packages? Releasing zest.releaser itself worked fine, right?

mauritsvanrees commented 10 months ago

I releases the same package to testpypi today, and it worked without problems. Closing.