-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
create_package_from_pep610 breaks without "requested_revision" #4290
Comments
Trying to write tests for my PR and something is working unexpectedly: https://github.com/xkortex/poetry/tree/issues-4290-requested_revision
I have no clue why it's failing to populate |
This is not present in 1.1.7, but is in the preview release 1.2.0a2. |
Yes, this is just with the 1.2 alpha. I'm itching to use https://github.com/tiangolo/poetry-version-plugin, which requires 1.2, which I believe is when plugin capability is introduced. |
I have the same issue with 1.2.0a2. |
fixed at #5274 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
Any poetry command which hits
create_package_from_pep610
when a URL installed package is installed, and thedirect_url.json
lacks "requested_revision", causes a KeyError. This is not PEP610 compliant:poetry/poetry/repositories/installed_repository.py
Line 206 in 5278823
https://www.python.org/dev/peps/pep-0610/#:~:text=a%20requested_revision%20key%20(type%20string)%20may%20be%20present%20naming%20a%20branch%2Ftag%2Fref%2Fcommit%2Frevision%2Fetc%20(in%20a%20format%20compatible%20with%20the%20vcs)%20to%20install.
The offending
direct_url.json
:Steps to reproduce
Trace:
The text was updated successfully, but these errors were encountered: