From 3d2610360c195423cabb18ae7b49ad90619bd273 Mon Sep 17 00:00:00 2001 From: Robert Bendun Date: Wed, 17 Apr 2024 20:57:09 +0200 Subject: [PATCH] virtual environment --- .gitignore | 1 + README.md | 16 ++++++++++++++++ requirements.txt | 1 + 3 files changed, 18 insertions(+) create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index 4b23b15..8fcbeed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__ exchange.bin *.swp +.venv diff --git a/README.md b/README.md index d1e6ee1..4c4f35c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ +# Inicjalizacja + +1. Stwórz wirtualne środowisko: `python -m venv .venv` +2. Aktywuj: `. .venv/bin/activate` +3. Pobierz zależności: `pip install -r requirements.txt' +4. Uruchom projekt: `python main.py` + +Aby wyjść ze środowiska uruchom komendę `deactivate`. + +## Dodawanie paczek + +W środowisku wirtualnym: + +1. Zainstaluj paczkę: `pip install ` +2. Zaktualizuj listę zależności: `pip freeze > requirements.txt` + # Rekomendowane parametry/komponenty ## Punkt _a_ w dokumencie projektu diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..08e3598 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pycryptodome==3.20.0