calibre-web: use uv sync (native) instead of pip-compatible install

This commit is contained in:
mikolaj92 2026-02-10 20:33:47 +01:00
parent b518881996
commit 2b7eed2630
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ function update_script() {
msg_info "Installing Dependencies"
cd /opt/calibre-web
$STD uv pip install --system --no-cache-dir -r requirements.txt
$STD uv sync --no-dev
msg_ok "Installed Dependencies"
msg_info "Restoring Data"

View File

@ -35,7 +35,7 @@ setup_uv
msg_info "Installing Python Dependencies"
cd /opt/calibre-web
$STD uv pip install --system --no-cache-dir -r requirements.txt
$STD uv sync --no-dev
msg_ok "Installed Python Dependencies"
mkdir -p /opt/calibre-web/data
@ -50,7 +50,7 @@ After=network.target
Type=simple
User=root
WorkingDirectory=/opt/calibre-web
ExecStart=/usr/bin/python3 /opt/calibre-web/cps.py
ExecStart=/opt/calibre-web/.venv/bin/python /opt/calibre-web/cps.py
Restart=on-failure
RestartSec=5