[Feature Request] poetry init
and poetry new
could/should respect virtualenvs.prefer-active-python
configuration option
#7073
Labels
area/cli
Related to the command line
area/init
Related to 'poetry init'/project creation
area/ux
Features and improvements related to the user experience
kind/feature
Feature requests/implementations
Discussed in https://github.com/orgs/python-poetry/discussions/7059
Originally posted by david-vicente November 19, 2022
Consider the following situation: I'm using
pyenv
to manage my python versions and want to start a new project usingpoetry
.I thought that if I ran
$ pyenv versions * system 3.11.0
Then using poetry to start a new project, like
would create a new folder with all the relevant stuff inside, and file
pyproject.toml
would benotice the python version. However this is not the case as
poetry new <project name>
seems to ignore the active python version and go with the system one.Is this the intended behavior? Shouldn't
poetry new
andpoetry init
take into consideration the active python version?I'm aware of other issues with similar questions:
poetry install
considering the active python version, so it regards the virtualenvs managed by poetry but not thepyproject.toml
file.The text was updated successfully, but these errors were encountered: