-
Notifications
You must be signed in to change notification settings - Fork 965
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
Can't run a twine upload due to version problem #15611
Comments
Hi, are you using the latest version of |
I have the same issue - updating to the latest version of twine (5.0.0) did not help |
Are you using the latest version of |
Yes, as per my initial post |
I had to downgrade python from 3.11.7 to 3.10.10 to fix this issue |
On 15 March, I updated a package using Related issues I have located are as follows: |
@umarbutler thanks a lot, bumping |
This worked perfectly. Ashamed of how long it took me to stumble on this response. Thank you <3 |
Needed to upgrade to upload new version. See pypi/warehouse#15611
This is still a problem with twine==5.1.1, pkginfo==1.11.1, hatchling==1.25.0, python=3.12.4 on Ubuntu 24. I tried multiple versions of the packages and Python, it's always the same error message
There is As I see it, the only working workaround is to modify the header in PKG_INFO manually. |
Interesting thing. Make sure to use your specific python version if it's applicable to you. |
After update package python3 -m pip install --upgrade pkginfo |
I'm trying to upload a distrubtion of a package to pypy using python3 -m twine upload dist/.16
I get an error saying
"
InvalidDistribution: Metadata is missing required fields: Name, Version.
"
If I unpack the whl file and look at the METADATA file I notice that an exact older version which uploaded correctly had the line
Metadata-Version: 2.1
When I currently try to build the package it won't upload (and also fails a twine check). When I look at the METADATA from the newer version is says
Metadata-Version: 2.3
If I simply change 2.3 to 2.1 I can rezip the whl package and it now passes the twine check and everything is fine.
How can I fix this?
The text was updated successfully, but these errors were encountered: