From 59ad12c7a0dc7ee506372715de0311dc7eb7665d Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 17 Feb 2026 11:36:50 +0100 Subject: [PATCH] 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. --- ct/calibre-web.sh | 7 +++++-- install/calibre-web-install.sh | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ct/calibre-web.sh b/ct/calibre-web.sh index d16139d35..7e07b20d5 100644 --- a/ct/calibre-web.sh +++ b/ct/calibre-web.sh @@ -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" diff --git a/install/calibre-web-install.sh b/install/calibre-web-install.sh index 41e971332..082e9f0ab 100644 --- a/install/calibre-web-install.sh +++ b/install/calibre-web-install.sh @@ -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"