weblate/dev-docker/weblate-dev/start-dev
renovate[bot] 0fddb5af33
chore(deps): update weblate/weblate docker tag to v5.10.0.0 (#13881)
* chore(deps): update weblate/weblate docker tag to v5.10.0.0

* chore: avoid installing xmlsec from binary

These are not compatible on Python 3.13

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michal Čihař <michal@cihar.com>
2025-02-17 09:49:23 +00:00

30 lines
763 B
Bash
Executable file

#!/bin/sh
# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
set -e
cd /app/src
echo "Exporting Weblate requirements..."
uv export --no-config --format requirements-txt --python /usr/local/bin/python --all-extras --no-sources > /tmp/requirements.txt
echo "Checking /app/venv..."
if [ ! -f /app/venv/bin/activate ]; then
uv venv --no-config /app/venv
fi
echo "/app/data/python" > "/app/venv/lib/python${PYVERSION}/site-packages/weblate-docker.pth"
# shellcheck disable=SC1091
. /app/venv/bin/activate
echo "Installing Weblate requirements..."
uv pip install \
--no-config \
--no-binary xmlsec \
--no-binary lxml \
-r /tmp/requirements.txt
echo "Starting Weblate..."
exec /app/bin/start "$@"