proper uv management
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -3,6 +3,10 @@
|
||||
__pycache__/
|
||||
*.pyo
|
||||
*.pyc
|
||||
.venv/
|
||||
|
||||
# sacrificial
|
||||
uv.lock
|
||||
|
||||
# configs
|
||||
config/
|
||||
|
||||
10
pyproject.toml
Normal file
10
pyproject.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
[project]
|
||||
name = "pi-dashboard-server"
|
||||
version = "0.1.0"
|
||||
description = "WebSocket servers for the ESP32-S3 RLCD dashboard"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
"websockets>=12.0",
|
||||
"psutil>=5.9.0",
|
||||
"Pillow>=10.0",
|
||||
]
|
||||
@@ -7,8 +7,8 @@ PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
UNIT_FILE="/etc/systemd/system/${SERVICE_NAME}.service"
|
||||
RUN_USER="$(whoami)"
|
||||
|
||||
echo "==> Installing Python dependencies..."
|
||||
uv pip install -r "${PROJECT_DIR}/requirements.txt"
|
||||
echo "==> Syncing Python dependencies..."
|
||||
uv sync --project "${PROJECT_DIR}"
|
||||
|
||||
echo "==> Generating systemd unit file..."
|
||||
cat > "/tmp/${SERVICE_NAME}.service" <<EOF
|
||||
|
||||
Reference in New Issue
Block a user