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
When you have a dependency with version set to "^0", it errors out while executing poetry update. Currently released 1.1.6 version works fine with this. It's the new 1.2.0a1 that has the problem.
According to docs at (https://python-poetry.org/docs/versions/), you should be able to do this. It's equivalent to doing >=0.0.0 <1.0.0. If you do >=0.0.0 <1.0.0, that works for 1.2.0a1, so that's the workaround at the moment.
You can test it by creating a new project via:
poetry new
And then adding this dependency to the pyproject.toml file:
pendulum = "^0"
Then, finally doing an update:
poetry update
If you do these steps with version 1.1.6, it works fine. But version 1.2.0a1 will error out with this output (-vvv):
I am on the 1.2.0a1 alpha Poetry version (1.2.0a1)
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: MacOS 11.4; BigSur
Poetry version: 1.2.0a1
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/joshorr/d25b9edb7e20d00dab565dce771b69dd
Issue
When you have a dependency with version set to "^0", it errors out while executing
poetry update
. Currently released 1.1.6 version works fine with this. It's the new 1.2.0a1 that has the problem.According to docs at (https://python-poetry.org/docs/versions/), you should be able to do this. It's equivalent to doing
>=0.0.0 <1.0.0
. If you do>=0.0.0 <1.0.0
, that works for 1.2.0a1, so that's the workaround at the moment.You can test it by creating a new project via:
poetry new
And then adding this dependency to the
pyproject.toml
file:pendulum = "^0"
Then, finally doing an update:
poetry update
If you do these steps with version 1.1.6, it works fine. But version 1.2.0a1 will error out with this output (-vvv):
https://gist.github.com/joshorr/9093c552515451f9e1037adff54a990a
The text was updated successfully, but these errors were encountered: