You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issues of this repo and believe that this is not a duplicate.
I have searched the documentation and believe that my question is not covered.
Feature Request
Add a configuration and command-line flag to say whether the contents of .python-version should be treated as a version restriction in the same way as the tool.poetry.dependencies.python setting. Projects which only support the exact version in .python-version could set this flag to True and remove tool.poetry.dependencies.python. Then they won't have to keep both settings in sync.
thanks a lot for your suggestion. However poetry will most likely not implement such a feature for various reasons:
The pyproject.toml is the single source of truth for all package metadata including the dependencies and python requirements
Poetry tries to avoid implementing configs that are specific to external tools
fin swimmer
Your reasoning implies that the suggestion excludes other frameworks, it doesn't. It simply provides a basic level of support for pyenv. It is inclusive rather than being exclusive.
pyenv is one of the best if not the best in its category. There should be at least some level of direct support for it on poetry. poetry env use is also bugged. I have to use pyenv global <preferred version> every time I am making a new environment in order to install the correct version.
To go full purism at this point is highly idealistic, and ignores the fact that poetry doesn't work as intended without these features frequently.
Feature Request
Add a configuration and command-line flag to say whether the contents of
.python-version
should be treated as a version restriction in the same way as thetool.poetry.dependencies.python
setting. Projects which only support the exact version in.python-version
could set this flag toTrue
and removetool.poetry.dependencies.python
. Then they won't have to keep both settings in sync.Example configuration:
or
This is not the same as #2019 or #2558.
The text was updated successfully, but these errors were encountered: