Skip to content
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

PEP610: handle optional vcs_info.requested_version #5274

Merged
merged 2 commits into from
Mar 5, 2022

Conversation

abn
Copy link
Member

@abn abn commented Mar 4, 2022

As per PEP610, presence of vcs_info.requested_version is optional in
direct_url.json for vcs packages. Prior to this change, Poetry would
crash when loading an environment with a vcs package not installed by
Poetry.

This PR also contains a linting fix for issue introduced in #4520.

Reference:
https://www.python.org/dev/peps/pep-0610/#specification

A requested_revision key (type string) MAY be present naming a branch/tag/ref/commit/revision/etc (in a format compatible with the VCS) to install.

abn added 2 commits March 4, 2022 21:52
As per PEP610, presence of `vcs_info.requested_version` is optional in
direct_url.json for vcs packages. Prior to this change, Poetry would
crash when loading an environment with a vcs package not installed by
Poetry.
@abn abn added the kind/bug Something isn't working as expected label Mar 4, 2022
@abn abn requested a review from a team March 4, 2022 20:56
@abn abn mentioned this pull request Mar 5, 2022
@abn abn merged commit ae4f981 into python-poetry:master Mar 5, 2022
@abn abn deleted the pep610-vcs-bug branch March 5, 2022 19:36
@finswimmer finswimmer mentioned this pull request Mar 6, 2022
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants