Install deps from requirements files

Replace the previous `pip install calibreweb` and `uv sync` steps with explicit upgrades of pip/setuptools/wheel and installing dependencies from requirements.txt. If present, optional-requirements.txt is installed as well. Changes applied to both the installer and container update scripts to provide clearer, reproducible dependency management.
This commit is contained in:
CanbiZ (MickLesk) 2026-02-17 11:36:50 +01:00
parent 792f03aeed
commit 59ad12c7a0
2 changed files with 10 additions and 4 deletions

View File

@ -44,8 +44,11 @@ function update_script() {
msg_info "Installing Dependencies"
cd /opt/calibre-web
$STD uv venv
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir calibreweb
$STD uv sync --no-dev --no-build-isolation
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir --upgrade pip setuptools wheel
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir -r requirements.txt
if [[ -f optional-requirements.txt ]]; then
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir -r optional-requirements.txt
fi
msg_ok "Installed Dependencies"
msg_info "Restoring Data"

View File

@ -33,8 +33,11 @@ setup_uv
msg_info "Installing Python Dependencies"
cd /opt/calibre-web
$STD uv venv
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir calibreweb
$STD uv sync --no-dev --no-build-isolation
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir --upgrade pip setuptools wheel
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir -r requirements.txt
if [[ -f optional-requirements.txt ]]; then
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir -r optional-requirements.txt
fi
msg_ok "Installed Python Dependencies"
msg_info "Creating Service"