Skip to content

Bump twine version to >= 6 #1328

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

Merged
merged 2 commits into from
May 5, 2025
Merged

Bump twine version to >= 6 #1328

merged 2 commits into from
May 5, 2025

Conversation

benoit-cty
Copy link
Contributor

Technical changes

The previous build of Core refuses to upload, the error was:

 Uploading distributions to https://upload.pypi.org/legacy/
ERROR    InvalidDistribution: Metadata is missing required fields: Name,        
         Version.                                                               
         Make sure the distribution includes the files where those fields are   
         specified, and is using a supported Metadata-Version: 1.0, 1.1, 1.2,   
         2.0, 2.1, 2.2, 2.3.  

In the METADATA file inside the dist archive we read:
Metadata-Version: 2.4

The solution proposed here is to bump the twine version to support Metadata-Version 2.4.

I also add a check of the dist files before trying to upload them.

@benoit-cty benoit-cty merged commit 47927e9 into master May 5, 2025
23 checks passed
@benoit-cty benoit-cty deleted the fix/pypi_upload branch May 5, 2025 09:03
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

Successfully merging this pull request may close these issues.

2 participants