From 697e580b2266fe593bdaeb2c3796b4b21dcbb0a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Hole=C4=8Dek?= Date: Mon, 25 Nov 2024 18:40:47 +0100 Subject: [PATCH] dashboard server: split requirements-dev.txt from requirements.txt --- dashboard/server/README.md | 6 +++++- dashboard/server/requirements-dev.txt | 2 ++ dashboard/server/requirements.txt | 2 -- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 dashboard/server/requirements-dev.txt diff --git a/dashboard/server/README.md b/dashboard/server/README.md index 0d8389a..331dcc0 100644 --- a/dashboard/server/README.md +++ b/dashboard/server/README.md @@ -2,8 +2,12 @@ ## Development -- `pip install -r requirements.txt` to install dependencies +- `pip install -r requirements.txt && pip install -r requirements-dev.txt` to + install dependencies (including development tools) - `python app.py` to run the development server (also done in Docker) +- `python ws_ssh.py` to run the websocket server + - The reason for 2 servers is a conflict of threading (used for SSH + connections in `ws_ssh.py`) and asyncio (used by Quart in http server) ## Code Quality diff --git a/dashboard/server/requirements-dev.txt b/dashboard/server/requirements-dev.txt new file mode 100644 index 0000000..53543eb --- /dev/null +++ b/dashboard/server/requirements-dev.txt @@ -0,0 +1,2 @@ +autopep8 +pylint diff --git a/dashboard/server/requirements.txt b/dashboard/server/requirements.txt index 4f79046..c7ee35c 100644 --- a/dashboard/server/requirements.txt +++ b/dashboard/server/requirements.txt @@ -4,5 +4,3 @@ flask-socketio eventlet paramiko ollama -autopep8 -pylint