-
I develop and maintain a library with poetry. This package depends on numpy and I want it to be compatible with Python3.6-3.10, so I specifcy
But poetry complains that
Is it possible to do what I want to do? With
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can either updated your project to use numpy = [
{ version = "^1.18.5", python = ">=3.6, <3.10" },
{ version = "^1.21.4", python = ">=3.10, <3.11" },
] The issue is by default the upper bound of |
Beta Was this translation helpful? Give feedback.
You can either updated your project to use
python = "^3.6, <3.11"
or update your numpy requirement to be:The issue is by default the upper bound of
^3.6
is4.0
(special case). This implies the project, unless explicitly specified supports all new 3.x versions of after 3.6. The changes above declares that either your project is only known good till 3.11 or that numpy will be installed only for versions<3.11
. Personally the more correct solution is to specifiy your python support version upper bound.