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

Update to new Poetry Install Script #9

Merged
merged 3 commits into from
Jun 12, 2021
Merged

Update to new Poetry Install Script #9

merged 3 commits into from
Jun 12, 2021

Conversation

iwoloschin
Copy link
Contributor

Fixes #8.

Update the plugin to use the new poetry install script (https://python-poetry.org/blog/announcing-poetry-1.2.0a1/#deprecation-of-the-get-poetrypy-script). The new script is python3 only and no longer attempts to modify $PATH.

I've also unset the PIP_REQUIRE_VIRTUALENV variable during poetry install. The environmental variable shouldn't need to be unset, that is a bug, see python-poetry/poetry#4089 for more details.

@iwoloschin iwoloschin requested a review from a team as a code owner June 12, 2021 12:32
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. Are we sure that this new script works with prior versions? Looks like you were unsure in the issue. I expect it would but just want to be sure.

Edit: I just tested it locally and seems like it works fine 👍

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.

Thanks!

@crflynn crflynn merged commit 1b24bb7 into asdf-community:master Jun 12, 2021
@cocoonkid
Copy link

Thanks for working on this. Does It work already?

asdf install poetry latest 

Does still try install 1.1.17

@iwoloschin
Copy link
Contributor Author

I believe that is correct, 1.1.17 is the latest release, 1.2.0a1 is a beta release and probably is not installed unless explicitly requested. Try asdf install poetry 1.2.0a1, that should work fine.

@smorimoto
Copy link
Member

Yes, the "latest" selector has an implementation on the asdf side that is intended to avoid rc and beta.

@cocoonkid
Copy link

Thank you. That makes complete sense of course. And yes it worked as suggested.

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.

New Poetry Installer
4 participants