From b5188819969a7d986bf8b3123ed246d514aee00d Mon Sep 17 00:00:00 2001 From: mikolaj92 <7442637+mikolaj92@users.noreply.github.com> Date: Tue, 10 Feb 2026 20:31:29 +0100 Subject: [PATCH] calibre-web: switch pip installs to uv and fix service block order --- ct/calibre-web.sh | 4 +++- install/calibre-web-install.sh | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ct/calibre-web.sh b/ct/calibre-web.sh index b2ea6a504..0400755db 100644 --- a/ct/calibre-web.sh +++ b/ct/calibre-web.sh @@ -29,6 +29,8 @@ function update_script() { exit fi + setup_uv + if check_for_gh_release "calibre-web" "janeczku/calibre-web"; then msg_info "Stopping Service" systemctl stop calibre-web @@ -42,7 +44,7 @@ function update_script() { msg_info "Installing Dependencies" cd /opt/calibre-web - $STD pip3 install --no-cache-dir -r requirements.txt + $STD uv pip install --system --no-cache-dir -r requirements.txt msg_ok "Installed Dependencies" msg_info "Restoring Data" diff --git a/install/calibre-web-install.sh b/install/calibre-web-install.sh index 1b5d68c7d..3ec8c8adc 100644 --- a/install/calibre-web-install.sh +++ b/install/calibre-web-install.sh @@ -16,7 +16,6 @@ update_os msg_info "Installing Dependencies" $STD apt install -y \ python3 \ - python3-pip \ imagemagick \ libpango-1.0-0 \ libharfbuzz0b \ @@ -32,14 +31,17 @@ msg_info "Setting up Calibre-Web" fetch_and_deploy_gh_release "calibre-web" "janeczku/calibre-web" "tarball" "latest" "/opt/calibre-web" msg_ok "Setup Calibre-Web" +setup_uv + msg_info "Installing Python Dependencies" cd /opt/calibre-web -$STD pip3 install --no-cache-dir -r requirements.txt +$STD uv pip install --system --no-cache-dir -r requirements.txt msg_ok "Installed Python Dependencies" +mkdir -p /opt/calibre-web/data + msg_info "Creating Service" cat </etc/systemd/system/calibre-web.service -mkdir -p /opt/calibre-web/data [Unit] Description=Calibre-Web Service After=network.target