I have a lockfile where tablib was pinned to v3.2.0, and djhtml was pinned to v1.4.11. Running poetry install in a fresh virtual environment, I get the expected v3.2.0 and v1.4.11 versions installed.
Now if I want to update to the latest djhtml, I run poetry update djhtml and get an unexpected version bump on tablib as well (which djhtml doesn’t depend on):
This only seems to happen when the tablib version is defined with extras. If I repeat all of the above but with tablib defined as tablib = "~3.2.0" (and a matching lockfile), poetry update djhtml gives the correct output:
Looking at other issues, #5010 seems potentially related but it’s a stretch (I’m on Python 3.9.1). I couldn’t find anything else about unwanted updates though there are other issues about different behavior with extras.
-vvv
option).Issue
I’m getting unwanted updates to my dependencies defining extras, when updating other unrelated dependencies with
poetry update <package>
/poetry add <package>@latest
/ manual pyproject.toml updates.For example, take the following dependencies:
I have a lockfile where
tablib
was pinned to v3.2.0, anddjhtml
was pinned tov1.4.11
. Runningpoetry install
in a fresh virtual environment, I get the expected v3.2.0 and v1.4.11 versions installed.Now if I want to update to the latest
djhtml
, I runpoetry update djhtml
and get an unexpected version bump ontablib
as well (whichdjhtml
doesn’t depend on):This only seems to happen when the
tablib
version is defined with extras. If I repeat all of the above but with tablib defined astablib = "~3.2.0"
(and a matching lockfile),poetry update djhtml
gives the correct output:Looking at other issues, #5010 seems potentially related but it’s a stretch (I’m on Python 3.9.1). I couldn’t find anything else about unwanted updates though there are other issues about different behavior with extras.