mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-04-27 01:12:26 +08:00
23 lines
995 B
Bash
Executable file
23 lines
995 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e -x
|
|
|
|
python -m pip install -r requirements-ci.txt
|
|
pip install -r requirements-test.txt
|
|
# Install cython and pycairo first, these are needed during install of others
|
|
if [ ${1:-latest} = minimal ] ; then
|
|
pip install Cython==0.29.14 pycairo==1.15.3
|
|
pip install requirements-builder
|
|
requirements-builder --req requirements.txt --level min > requirements-min.txt
|
|
requirements-builder --req requirements-optional.txt --level min >> requirements-min.txt
|
|
pip install -r requirements-min.txt
|
|
else
|
|
pip install Cython pycairo
|
|
pip install --upgrade-strategy eager -U -r requirements-optional.txt
|
|
if [ ${1:-latest} = edge ] ; then
|
|
pip install --upgrade https://github.com/translate/translate/archive/master.zip
|
|
pip install --upgrade https://github.com/WeblateOrg/language-data/archive/main.zip
|
|
pip install --upgrade https://github.com/WeblateOrg/translation-finder/archive/main.zip
|
|
pip install --upgrade --pre Django
|
|
fi
|
|
fi
|