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

Use new Poetry installer whenever possible #20

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

Kurt-von-Laven
Copy link
Contributor

Fixes #19.

Previously, the new installer hosted at https://install.python-poetry.org was only used for versions of Poetry that require it, namely 1.2+. The official Poetry documentation recommends immediate migration from the old, deprecated, get-poetry.py installer to the new installer. Hence, use the new installer for all versions of Poetry that support it, namely 1.1.7+.

See this official Poetry blog post announcing the release of 1.2.0 for additional context.

@Kurt-von-Laven Kurt-von-Laven requested a review from a team as a code owner September 1, 2022 02:27
@crflynn
Copy link
Member

crflynn commented Sep 1, 2022

This looks good. Although I think we should fix #10 first by setting poetry config virtualenvs.prefer-active-python true conditionally on 1.2+, so that asdf+poetry behaves as expected moving forward.

@Kurt-von-Laven
Copy link
Contributor Author

Thank you for fixing #10! I rebased on your fix.

@crflynn
Copy link
Member

crflynn commented Sep 1, 2022

Just need to update the tests from 1.2 to 1.1.7

Previously, the new installer hosted at
https://install.python-poetry.org was only used for versions of Poetry
that require it, namely 1.2+. The official Poetry documentation
recommends immediate migration from the old, deprecated, get-poetry.py
installer to the new installer. Hence, use the new installer for all
versions of Poetry that support it, namely 1.1.7+.
@Kurt-von-Laven
Copy link
Contributor Author

Whoops; just pushed take two.

Copy link
Member

@crflynn crflynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@crflynn crflynn merged commit 2115a14 into asdf-community:master Sep 1, 2022
@Kurt-von-Laven Kurt-von-Laven deleted the prefer-new-installer branch September 1, 2022 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support Installation of Poetry 1.1.x
2 participants