From a3ccc785e811c6e651ac013251deb8b2950a9c7e Mon Sep 17 00:00:00 2001 From: Hugh Wimberly Date: Mon, 3 Feb 2020 11:46:41 -0500 Subject: [PATCH] poetry: add page (#3832) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * poetry: add page * Add period for command description. * Describe action rather than use a token Co-Authored-By: Zlatan Vasović * Expand virtualenv to virtual environment Co-Authored-By: Zlatan Vasović * Use description instead of token. * Update poetry.md Co-authored-by: Zlatan Vasović --- pages/common/poetry.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/poetry.md diff --git a/pages/common/poetry.md b/pages/common/poetry.md new file mode 100644 index 000000000..3bd286da6 --- /dev/null +++ b/pages/common/poetry.md @@ -0,0 +1,24 @@ +# poetry + +> Manage Python packages and dependencies. +> More information: . + +- Create a new Poetry project in the directory with a specific name: + +`poetry new {{project_name}}` + +- Install a dependency and its subdependencies: + +`poetry add {{dependency}}` + +- Interactively initialize the current directory as a new Poetry project: + +`poetry init` + +- Get the latest version of all dependencies and update poetry.lock: + +`poetry update` + +- Execute a command inside the project's virtual environment: + +`poetry run {{command}}`