-
Notifications
You must be signed in to change notification settings - Fork 986
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 |
Fix failing python release for windows: https://github.com/lancedb/lancedb/actions/runs/12019637086/job/33506642964 Also updates pkginfo to fix twine build as suggested here: pypi/warehouse#15611 failing release: https://github.com/lancedb/lancedb/actions/runs/12091344173/job/33719622146
SHORT VERSION : updating I slammed against this same issue today. I did everything IDENTICALLY to my usual protocol that had worked just fine until 1 month ago, to generate the distribution package, namely running So far so good - but then attempting to run ''' When I double-clicked on the At any rate, I found out which version of As others on this thread have pointed out, the problem did NOT go away by upgrading As suggested on this thread, I then investigated
and, MIRACLE, PS: puzzled by the word "legacy" in |
Found this thread working through the error in #15611 (comment) After updating Twine to 6.1.0, and pkginfo to 1.12.0 (latest at time of writing) I get this error.
Downgrading Twine to 6.0.1 worked. |
@jhcole Is it possible your metadata is actually malformed? Can you show us what you're trying to build or provide the distribution you're trying to upload? |
@di I ran into the same issue. Downgrading to
|
@jhcole @ariebovenberg Looks like this is pypa/twine#1216 |
Can confirm, have the same symptom for the build of https://github.com/pacman82/arrow-odbc-py, stumbled on this thread debugging CI. Downgrading to twine 6.0.1 helped me also, but I still do not know what's going on here. Best, Markus |
Same issue. Also using Maturin. Just downgraded to 6.0.1 |
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: