Skip to content

Comments

PEP610: handle optional vcs_info.requested_version#5274

Merged
abn merged 2 commits intopython-poetry:masterfrom
abn:pep610-vcs-bug
Mar 5, 2022
Merged

PEP610: handle optional vcs_info.requested_version#5274
abn merged 2 commits intopython-poetry:masterfrom
abn:pep610-vcs-bug

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
@github-actions
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