Closed fredrikaverpil closed 4 years ago
If I followed right, these ranges that we see are the ones for dev-dependencies
in pyproject.toml
.
And indeed the *_add_dev_dependencies
is enabled, meaning the development dependencies will be added to deps
.
Two cases:
*_add_locked_dependencies = True
poetry.lock
file is read and it is the pinned dependencies from the lockfile for the dev
category that are added to deps
.*_add_locked_dependencies = False
as it is the case here
pyproject.toml
file is read, and it is the dev-dependencies
from pyproject.toml
that are added to deps
.If I followed right, these ranges that we see are the ones for dev-dependencies in pyproject.toml.
Correct.
*_add_locked_dependencies = False
as it is the case herethe pyproject.toml file is read, and it is the dev-dependencies from pyproject.toml that are added to deps.
Okay, never mind. I was probably too tired yesterday - there is no problem here as the latest versions of each dep is in both my poetry.lock as well as in the pyproject.toml-defined ranges. This essentially means installing with *_add_locked_dependencies
set to either True
or False
will yield the same installed versions right now. Sorry for this confusion. 👍
If you get the chance to test on a project where the locked versions are not simply the latest, let me know how it goes.
I was a little surprised to see the exact same ranges from the pyproject.toml and the pinned versions from my poetry.lock file, despite having forgotten to set
poetry_experimental_add_locked_dependencies = true
. Is the poetry.lock file used anyway?pyproject.toml:
poetry.lock:
tox.ini: