From 36a2343019781a6a2aca737a65c72134bb6e8920 Mon Sep 17 00:00:00 2001 From: Jakub Boukal Date: Thu, 11 Jan 2024 13:43:48 +0100 Subject: [PATCH] poetry: add `install` command, update page (#12056) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/poetry.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/poetry.md b/pages/common/poetry.md index 53fec1d0e..1415773e9 100644 --- a/pages/common/poetry.md +++ b/pages/common/poetry.md @@ -8,13 +8,13 @@ `poetry new {{project_name}}` -- Install a dependency and its subdependencies: +- Install and add a dependency and its sub-dependencies to the `pyproject.toml` file in the current directory: `poetry add {{dependency}}` -- Install a development dependency and its subdependencies: +- Install the project dependencies using the `pyproject.toml` file in the current directory: -`poetry add --group dev {{dependency}}` +`poetry install` - Interactively initialize the current directory as a new Poetry project: