From 9a8136c8c40a7b17ccab43ccb52b1e5e4fed2c67 Mon Sep 17 00:00:00 2001 From: Tianyu Liu Date: Wed, 17 Jul 2024 17:28:00 +0200 Subject: [PATCH] Add installe, no automation yet --- helper/install.sh | 11 +++++++++++ helper/poo_recorder.conf | 15 +++++++++++++++ requirements.txt | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100755 helper/install.sh create mode 100644 helper/poo_recorder.conf create mode 100644 requirements.txt diff --git a/helper/install.sh b/helper/install.sh new file mode 100755 index 0000000..194b3b9 --- /dev/null +++ b/helper/install.sh @@ -0,0 +1,11 @@ +#!/usr/bin/bash + +TARGET_DIR="$HOME/.local/poo-recorder" + +mkdir -p $TARGET_DIR + +cp ../main.py ../poo.py ../requirements.txt $TARGET_DIR + +python -m venv "$TARGET_DIR/venv" + +$TARGET_DIR/venv/bin/pip install -r $TARGET_DIR/requirements.txt diff --git a/helper/poo_recorder.conf b/helper/poo_recorder.conf new file mode 100644 index 0000000..8caa060 --- /dev/null +++ b/helper/poo_recorder.conf @@ -0,0 +1,15 @@ +[program:poo_recorder_backend] +environment=PYTHONUNBUFFERED=1 +command= +directory= +user= +group= +autostart=true +autorestart=true +startsecs=1 +startretries=100 +stopwaitsecs=30 +redirect_stderr=true +stdout_logfile=/var/log/supervisor/%(program_name)s.log +stdout_logfile_maxbytes=5MB +stdout_logfile_backups=5 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..046e712 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,35 @@ +annotated-types==0.7.0 +anyio==4.4.0 +certifi==2024.7.4 +click==8.1.7 +dnspython==2.6.1 +email_validator==2.2.0 +fastapi==0.111.1 +fastapi-cli==0.0.4 +fastapi-mqtt==2.2.0 +gmqtt==0.6.16 +h11==0.14.0 +httpcore==1.0.5 +httptools==0.6.1 +httpx==0.27.0 +idna==3.7 +Jinja2==3.1.4 +markdown-it-py==3.0.0 +MarkupSafe==2.1.5 +mdurl==0.1.2 +pydantic==2.8.2 +pydantic_core==2.20.1 +Pygments==2.18.0 +python-dotenv==1.0.1 +python-multipart==0.0.9 +PyYAML==6.0.1 +rich==13.7.1 +shellingham==1.5.4 +sniffio==1.3.1 +starlette==0.37.2 +typer==0.12.3 +typing_extensions==4.12.2 +uvicorn==0.30.1 +uvloop==0.19.0 +watchfiles==0.22.0 +websockets==12.0