-
Notifications
You must be signed in to change notification settings - Fork 309
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
KeyError: 'home-page' with importlib_metadata 8.0.0 #1125
Comments
See #1124 |
Would be helpful to have twine 5.1.0 yanked from pypi to prevent CI's relying on twine being broken, until bug gets fixed |
Why does 5.0 work? Was the bug added to 5.1 just before importlib-metadata 8 was released? I was about to reply that it didn't have anything to do with 5.1 but checked it and it seems 5.0 works with importlib-metadata 8 (I assume). I don't see the |
Ahh, I see it; it's due to the modernization of the build system, and the new build system doesn't set So yes, yanking 5.1 while waiting for 5.1.1 would be a temporary fix. You can also set |
This issue isn't due to a release of twine but due to a release of |
PiperOrigin-RevId: 646606486
PiperOrigin-RevId: 646606486
PiperOrigin-RevId: 646606486
PiperOrigin-RevId: 646606486
Just bumped into this as well! |
Same here! |
PiperOrigin-RevId: 646610752
Please yank the offending version - this is breaking all sorts of builds due to |
Just ran into this. For those looking for a quick fix, I changed my twine dependency to Thanks @henryiii |
I have to push back on this -- from a fresh py312 venv:
i.e. even with
|
5.1.0 stated relying on the fact that |
This reverts commit 4505c9b. It has been yanked because of pypa/twine#1125
I can confirm this issue is with |
Twine 5.1.0 has been yanked (removed) due to the issue described in pypa/twine#1125 This PR reverts the `requirements-dev.txt` file used by `jsii-pacmak` back to `twine~=5.0.0`.
Twine 5.1.1 was just released. I'm assuming this issue is addressed, but please don't hesitate to report if the issues aren't addressed. |
To avoid potential issue in pypa/twine#1125
Closes #1765: see https://github.com/pypa/cibuildwheel/releases/tag/v2.19.2 (specifically cibuildwheel 1917) Closes #1766: see pypa/twine#1125 Closes #1758: whitelist .pyd. See https://docs.python.org/3/faq/windows.html#is-a-pyd-file-the-same-as-a-dll To verify, the dev build runs smoothly: https://github.com/opendp/opendp/actions/runs/9881705627 I also pip-installed the above pre-release on a Windows computer and verified that the package runs smoothly.
Update `twine` to resolve build failures. pypa/twine#1125
Packaging opda with importlib_metadata 8.0.0 and twine 4.0.2 raises an exception: "KeyError: 'license'". The exception results from a change in importlib_metadata where requesting missing metadata used to return None but now raises a KeyError. Upgrading twine to 5.1.1 resolves the issue. For more information, see pypa/twine#977 which discusses the missing license metadata in twine 4.0.2, and see pypa/twine#1125 for how the release of importlib_metadata 8.0.0 triggered the issue.
The locked version 5.1.0 for twine is a yanked version. Reason for being yanked: pypa/twine#1125
The locked version 5.1.0 for twine is a yanked version. Reason for being yanked: pypa/twine#1125
Fixed in twine pypa/twine#1125
* Increase upper bound of python to include 3.12 * Add tests for different python versions * Minor formatting * Use quotes for version to avoid parsing errors * Ensure build dependencies are installed distutils was removed for python 3.12 * Add more build dependencies * Try different resources * Temp test on <3.12 * Remove importlib_metadata pin Fixed in twine pypa/twine#1125 * Revert "Temp test on <3.12" This reverts commit 5b27366. * Change install order of build dependencies * Remove numpy pin * Update CHANGELOG.md
Is there an existing issue for this?
What keywords did you use to search existing issues?
No response
What operating system are you using?
Linux
If you selected 'Other', describe your Operating System here
No response
What version of Python are you running?
Python 3.10.13
How did you install twine? Did you use your operating system's package manager or pip or something else?
pip install twine
What version of twine do you have installed (include the complete output)
5.1.0
Which package repository are you using?
pypi.org
Please describe the issue that you are experiencing
importlib_metadata
has just released 8.0.0 and CI jobs callingtwine upload
started failing with the following error:Please list the steps required to reproduce this behaviour
pip install --upgrade setuptools wheel twine poetry tomlkit virtualenv
Anything else you'd like to mention?
No response
The text was updated successfully, but these errors were encountered: