Open 0num4 opened 6 months ago
This is probably 1.8.2
❯ curl -sSL https://install.python-poetry.org | python3 - --uninstall
Removing Poetry (1.7.1)
but VERSION file is the application itself, it shouldn't show the poetry version, I guess
Same here got poetry 1.8.2 and VERSION file seems to be stuck at 1.5.1 (maybe this file is correlated to something else maybe it has been deprecated, maybe something else).
Regarding your question: I am not sure to understand it very well but if you want poetry to use the python defined by pyenv you can set virtualenvs.prefer-active-python
to true
then activate the desired python version with pyenv before running poetry new
.
This file is probably used when uninstalling poetry.
I just ran the uninstall script and it echoed Removing Poetry (1.5.1) which was not the version of my poetry but actually the content of the VERSION file.
Not a big deal but still a good thing to let the core team know this.
Looks like the file is created/used only by the install script. Afaik Poetry itself does not know anything about a VERSION
file so it cannot update the version in its self
commands.
I think there are two options:
self
commands update the VERSION file.Workaround: Use the install script to update Poetry instead of self
commands.
Description
After executing the above command, only the VERSION is not updated.
Also, I have a related question. Originally, I was having trouble with the pyenv version not updating even when I ran the poetry new command. During my investigation, I found that editing the pyvenv.cfg file might allow me to use the desired Python version. However, I was wondering if it is possible to do something like poetry new --python-version 3.12 or --python-path /path/to/python to specify the Python version or path directly when creating a new project?
Workarounds
no.
Poetry Installation Method
install.python-poetry.org
Operating System
Mac OS
Poetry Version
1.8.2
Poetry Configuration