poetry add
should choose latest supported package version for project's Python constraints
#9295
Labels
poetry add
should choose latest supported package version for project's Python constraints
#9295
Issue Kind
Change in current behaviour
Description
Let's say my project has python version configured like this:
Then if I try to simply run
poetry add numpy
, I will get the following output:But if I run
poetry add "numpy:*"
it will successfully resolve and install numpy version 1.24.4, which is the last version that supports Python 3.8. Then I have to manually change the numpy version inpyproject.toml
from "*" to "^1.24.4".I suggest that
poetry add
should automatically search for the latest compatible package if no version constraints are specified, because I don't see a reason why it should fail when it might not. 😅Impact
Poetry will install new project dependencies, ensuring Python version compatibility out of the box (like pip does that).
Workarounds
Specifying compatible package version to add manually.
The text was updated successfully, but these errors were encountered: