mirror of https://github.com/CrimsonTome/tldr.git
poetry: add page (#3832)
* poetry: add page * Add period for command description. * Describe action rather than use a token Co-Authored-By: Zlatan Vasović <zlatanvasovic@gmail.com> * Expand virtualenv to virtual environment Co-Authored-By: Zlatan Vasović <zlatanvasovic@gmail.com> * Use description instead of token. * Update poetry.md Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>client-spec/clarity
parent
972359f339
commit
a3ccc785e8
|
@ -0,0 +1,24 @@
|
||||||
|
# poetry
|
||||||
|
|
||||||
|
> Manage Python packages and dependencies.
|
||||||
|
> More information: <https://python-poetry.org/docs>.
|
||||||
|
|
||||||
|
- 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}}`
|
Loading…
Reference in New Issue