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
{{ message }}
Repository navigation
Improve documentation on the behaviour of update and install #4117
How does poetry update behave when "extra" dependencies are declared or with respect to development dependencies? Does it follow what poetry install did when last executed? (for example if poetry install --no-dev then poetry update will not touch the developement dependencies, if poetry install (without -E foo0 then poetry update will not touch the foo extra dependencies?
Same issue with poetry install . Always confused with this command help.
Help also should explain:
where dependencies will be installed - exactly into virtual environment (even poetry shell virtual env not activated). Not to system python dependencies. Even poetry shell / virtual env not activated. While virtualenvs.create = true
I understand now that it assumed and expected but not clear from docs. At first, I have trying to install packages into system via poetry install. Exactly because not well documented.
Are dev (or other groups) dependencies installed by default?
The best intro to the feature is the release announcement which goes into detail with examples. Yes, they are installed by default using Poetry (but not captured by tools that build/install as a Python package).
Activity
finswimmer commentedon May 30, 2021
The purpose of
poetry installis to:poetry.lockif None existsA
poetry installis only necessary if you:pyproject.tomlThe purpose of
poetry updateis to:pyproject.tomlspecified version rangepoetry.lockpyproject.tomlremain untouchedchernals commentedon May 30, 2021
Thanks !
How does
poetry updatebehave when "extra" dependencies are declared or with respect to development dependencies? Does it follow whatpoetry installdid when last executed? (for example ifpoetry install --no-devthenpoetry updatewill not touch the developement dependencies, ifpoetry install(without-E foo0 thenpoetry updatewill not touch thefooextra dependencies?mrkeuz commentedon Jun 11, 2022
Same issue with
poetry install. Always confused with this command help.Help also should explain:
virtualenvs.create = trueI understand now that it assumed and expected but not clear from docs. At first, I have trying to install packages into system via
poetry install. Exactly because not well documented.rafrafek commentedon Oct 13, 2022
Are dev (or other groups) dependencies installed by default?
neersighted commentedon Oct 13, 2022
The best intro to the feature is the release announcement which goes into detail with examples. Yes, they are installed by default using Poetry (but not captured by tools that build/install as a Python package).
rafrafek commentedon Oct 13, 2022
Can we add this information to the docs here: https://python-poetry.org/docs/cli/#install
neersighted commentedon Oct 13, 2022
PRs welcome :)
abdullahmujahidali commentedon Feb 1, 2026
Hi, I'd like to work on this. I'll improve the documentation for
installandupdatecommands to clarify:updateinstalls new packagespyproject.tomlgets updatedWill submit a PR soon.
github-actions commentedon Mar 17, 2026
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.