feat: install wsgi extra
Some checks failed
Pre-commit check / pre-commit (push) Has been cancelled
Test / native (push) Has been cancelled
Test / system (push) Has been cancelled
Test / docker (push) Has been cancelled

This commit is contained in:
Michal Čihař 2025-09-17 13:55:43 +02:00
parent afa02b5238
commit fb1f472e78
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ WEBLATE_HOME=~weblate


# Install Weblate and deps # Install Weblate and deps
sudo -u weblate virtualenv --python=python3 "$WEBLATE_HOME/weblate-env" sudo -u weblate virtualenv --python=python3 "$WEBLATE_HOME/weblate-env"
sudo -u weblate "$WEBLATE_HOME/weblate-env/bin/pip" install "Weblate[all,zxcvbn]$WEBLATE_VERSION" wllegal 'pygobject<3.52' sudo -u weblate "$WEBLATE_HOME/weblate-env/bin/pip" install "Weblate[all,zxcvbn,wsgi]$WEBLATE_VERSION" wllegal 'pygobject<3.52'


PYVER=$(python3 -c 'import sys; print("{}.{}".format(*sys.version_info[:2]))') PYVER=$(python3 -c 'import sys; print("{}.{}".format(*sys.version_info[:2]))')



View file

@ -123,7 +123,7 @@ else
WEBLATE_PKG="Weblate" WEBLATE_PKG="Weblate"
PIP_ARGS="" PIP_ARGS=""
fi fi
WEBLATE_FLAGS="all,zxcvbn,wllegal" WEBLATE_FLAGS="all,zxcvbn,wllegal,wsgi"
if [ -d "$WEBLATE_HOME/hosted" ]; then if [ -d "$WEBLATE_HOME/hosted" ]; then
PIP_ARGS="--editable $WEBLATE_HOME/hosted $PIP_ARGS" PIP_ARGS="--editable $WEBLATE_HOME/hosted $PIP_ARGS"
WEBLATE_FLAGS="$WEBLATE_FLAGS,mysql,saml2idp" WEBLATE_FLAGS="$WEBLATE_FLAGS,mysql,saml2idp"