From 0dc216d9f4e43e4c3f4dea52a90d8c9a6da58fd5 Mon Sep 17 00:00:00 2001 From: fiersik Date: Sat, 24 Feb 2024 21:13:51 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D0=BB=20ho?= =?UTF-8?q?w-to=20install=20deps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + how-to install deps.md | 46 +++++++++++++++++++++++++++++++++++++----- 2 files changed, 42 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index cd8d226..344a92f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .vscode .env env +.venv venv __pycache__ OCAB.db diff --git a/how-to install deps.md b/how-to install deps.md index 79c77e0..9415845 100644 --- a/how-to install deps.md +++ b/how-to install deps.md @@ -1,9 +1,45 @@ -Ставим poetry: -```bash -pip install poetry +## Poetry + +### Установка с официального сайта + +```shell +curl -sSL https://install.python-poetry.org | python3 - ``` -Ставим зависимости: -```bash +### Установка с PyPi + +```shell +python3 -m pip install poetry +``` + +## Зависимости + +### Добавление зависимости +```shell +poetry add NAME +``` +`NAME` - название зависимости. + +### Установка зависимостей +```shell poetry install +``` + +### Обновление зависимостей +```shell +poetry update +``` + +## Виртуальное окружение + +### Создание/активация +```shell +poetry shell +``` + +### Настройка + +Хранить окружение внутри проекта +```shell +poetry config virtualenvs.in-project true ``` \ No newline at end of file