-
Notifications
You must be signed in to change notification settings - Fork 16
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
ASDF_POETRY_INSTALL_URL
: Optionally override installer URL
#16
ASDF_POETRY_INSTALL_URL
: Optionally override installer URL
#16
Conversation
If you haven't, uninstall: asdf uninstall poetry 1.1.8; Default installer for <1.2 (get-poetry.py): asdf install poetry 1.1.8 Uninstall again: asdf uninstall poetry 1.1.8; Notice the warning: > This installer is deprecated. Poetry versions installed using this > script will not be able to use 'self update' command to upgrade to > 1.2.0a1 or later. Force install-poetry.py: ASDF_POETRY_INSTALL_URL=https://install.python-poetry.org asdf install poetry 1.1.8
6c729dd
to
c428bfd
Compare
@crflynn @Kurt-von-Laven: Thoughts on this approach in favor of #14? All existing behavior is the same. If |
I do like this better than a |
This looks OK although I tend to agree with Kurt on preferring a boolean over a URL as I don't think there would be other options for the URL. I don't plan on using this anyway so in that regard I'm indifferent. I'll just note that if newer versions of poetry revert to the original method of detecting python versions (and have better compatibility in general) I will re-evaluate and likely remove this feature, since I consider it a footgun as it allows for broken installations of poetry with respect to asdf functionality via #10. |
@crflynn Have a preference on the variable name? |
The current implementation is fine I suppose. Could you please document this under #usage in the readme? |
@crflynn To clarify one thing:
By that, does that mean keep it as-is (where install URL is specified) or keep the variable name the same and switch it to a boolean?
|
Lets just keep it as-is. |
331f2f2
to
e036b92
Compare
e036b92
to
c1b5565
Compare
c1b5565
to
57b7a7e
Compare
@crflynn Thank you for the review! @Kurt-von-Laven thank you for checking into both this and #14 as well |
Thanks for actually doing the work and coming up with a reasonable workaround to a sticky situation. I'm sure everyone will be looking forward to the next Poetry 1.2 release candidate. |
Escape hatch for #14 issue (python
3.10
support for>=1.1.9;<1.2
) while preserving theget-poetry.py
default behavior. This only changes behavior whenASDF_POETRY_INSTALL_URL
is passed in. Example:If you haven't, uninstall:
asdf uninstall poetry 1.1.8;
See also:
asdf-python
's environmental variable e.g.ASDF_PYTHON_PATCH_URL
,asdf-nodejs
's environmental variable e.g.NODEJS_CHECK_SIGNATURES
Default installer for <1.2 (get-poetry.py):
Uninstall again:
Notice the warning:
Force install-poetry.py: