Poetry 1.2.0a2 issue adding packages with major version 0 (version 0.Y.Z) using only ^0
#5277
Closed
3 tasks done
Labels
kind/bug
Something isn't working as expected
-vvv
option).Issue
Poetry 1.2.0a2 cannot find matching package versions for major version 0, where the caret is supplied as
^0
only. This works on Poetry 1.1, and is also a dependency specification example in themaster
documentation.For example, using
scikit-learn
(the error occurs when adding other packages with the^0
condition):Running
poetry add scikit-learn@^0 -vvv
shows the following:If
scikit-learn = "^0"
is added manually to thepyproject.toml
,poetry install -vvv
shows:In the above, it seems Poetry is searching for
scikit-learn (>=0,<0.1)
when given^0
. Whilst there is noscikit-learn=0.0.Z
package, Poetry should actually search forscikit-learn (>=0,<1)
according to the documentation.The text was updated successfully, but these errors were encountered: