From 622e15c9116d02768d7d2be31d1446f26d95d9ee Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sun, 11 Aug 2024 10:36:44 +0100 Subject: [PATCH] Update the run.sh and README for using venv --- README.md | 7 +------ run.sh | 3 +++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b69a668..2050dfb 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,7 @@ Only usable by `OWNER` users, reloads the config and syncs commands, or closes d ## Dependencies * `python3` - Obviously - -### Python modules -* `discord.py` - Discord bot functionality -* `pytest` - Testing -* `schema` - File format validation -* `pytest-cov` - Code coverage testing +* `venv` - Used for the python virtual env, specs in `requirements.txt` ## Config Matchy is configured by a `config.json` file that takes this format: diff --git a/run.sh b/run.sh index b3a3f3d..bd2e5b1 100755 --- a/run.sh +++ b/run.sh @@ -2,7 +2,10 @@ set -x set -e +source .venv/bin/activate + while python matchy.py do git pull + python -m pip install -r requirements.txt done