poetry update --no-dev
removes dev dependencies
#5468
Labels
kind/bug
Something isn't working as expected
poetry update --no-dev
removes dev dependencies
#5468
-vvv
option).Issue
Suppose we have a project with runtime and development dependencies. We may want to try running the project with the newest version of all runtime dependencies, but without updating development dependencies. For example, in matrix-org/synapse#12472 I wanted to run typecheckers against the latest version of all runtime dependencies, without bumping the version of
mypy
in use.One attempt I had to do this was to use
poetry update --no-dev
. This correctly updated my lockfile but removed all development dependencies---not what I expected!For a minimal example: given the following
pyproject.toml
filepoetry install
. This should install bottle, black, and black's dependencies.poetry run pip list
to confirm the contents of the venv.poetry update --no-dev
. This removes black's dependencies, leaving onlybottle
behind.poetry run pip list
to confirm the contents of the venv.The text was updated successfully, but these errors were encountered: