fix(endurain): pin uv to the version required by the project

Add UV_VERSION support to setup_uv and install the required uv release
before backend setup so poetry/uv venv no longer fails on version drift.
This commit is contained in:
MickLesk
2026-06-22 21:39:24 +02:00
parent 6b931ef4d4
commit 05b563ed00
3 changed files with 21 additions and 15 deletions
+2
View File
@@ -61,6 +61,8 @@ function update_script() {
msg_info "Updating Backend"
cd /opt/endurain/backend
UV_VERSION=$(grep -Po 'required-version\s*=\s*"\K[^"]+' pyproject.toml 2>/dev/null || echo "0.11.18")
UV_VERSION="$UV_VERSION" setup_uv
$STD poetry export -f requirements.txt --output requirements.txt --without-hashes
$STD uv venv --clear
$STD uv pip install -r requirements.txt