mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
Merge branch 'testing' into example
This commit is contained in:
commit
e1afae8f0b
7 changed files with 23 additions and 17 deletions
|
@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
Weblate is a libre web-based translation tool with tight version control integration. It provides two user interfaces, propagation of translations across components, quality checks and automatic linking to source files.
|
Weblate is a libre web-based translation tool with tight version control integration. It provides two user interfaces, propagation of translations across components, quality checks and automatic linking to source files.
|
||||||
|
|
||||||
**Shipped version:** 4.11~ynh2
|
**Shipped version:** 4.11.2~ynh1
|
||||||
|
|
||||||
**Demo:** https://hosted.weblate.org/
|
**Demo:** https://hosted.weblate.org/
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
||||||
|
|
||||||
Weblate est un outil de traduction libre avec une intégration étroite du contrôle de version. Il fournit deux interfaces utilisateur, la propagation des traductions entre les composants, les contrôles de qualité et la liaison automatique aux fichiers source.
|
Weblate est un outil de traduction libre avec une intégration étroite du contrôle de version. Il fournit deux interfaces utilisateur, la propagation des traductions entre les composants, les contrôles de qualité et la liaison automatique aux fichiers source.
|
||||||
|
|
||||||
**Version incluse :** 4.11~ynh2
|
**Version incluse :** 4.11.2~ynh1
|
||||||
|
|
||||||
**Démo :** https://hosted.weblate.org/
|
**Démo :** https://hosted.weblate.org/
|
||||||
|
|
||||||
|
|
|
@ -860,7 +860,6 @@ REST_FRAMEWORK = {
|
||||||
else "rest_framework.permissions.IsAuthenticatedOrReadOnly"
|
else "rest_framework.permissions.IsAuthenticatedOrReadOnly"
|
||||||
],
|
],
|
||||||
"DEFAULT_AUTHENTICATION_CLASSES": (
|
"DEFAULT_AUTHENTICATION_CLASSES": (
|
||||||
"weblate.api.authentication.ProjectTokenAuthentication",
|
|
||||||
"rest_framework.authentication.TokenAuthentication",
|
"rest_framework.authentication.TokenAuthentication",
|
||||||
"weblate.api.authentication.BearerAuthentication",
|
"weblate.api.authentication.BearerAuthentication",
|
||||||
"rest_framework.authentication.SessionAuthentication",
|
"rest_framework.authentication.SessionAuthentication",
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Translation platform using Git and Python",
|
"en": "Translation platform using Git and Python",
|
||||||
"fr": "Plateforme de traduction utilisant Git et Python"
|
"fr": "Plateforme de traduction utilisant Git et Python"
|
||||||
},
|
},
|
||||||
"version": "4.11~ynh2",
|
"version": "4.11.2~ynh2",
|
||||||
"url": "https://weblate.org",
|
"url": "https://weblate.org",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
|
|
|
@ -5,15 +5,20 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# dependencies used by the app
|
# dependencies used by the app
|
||||||
pkg_dependencies="libxml2-dev libxslt-dev libfreetype6-dev libjpeg-dev libz-dev libyaml-dev \
|
weblate_dependencies="libxml2-dev libxslt-dev libfreetype6-dev libjpeg-dev libz-dev libyaml-dev \
|
||||||
libffi-dev libcairo-dev gir1.2-pango-1.0 libgirepository1.0-dev \
|
libffi-dev libcairo-dev gir1.2-pango-1.0 libgirepository1.0-dev \
|
||||||
libacl1-dev libacl1 libssl-dev libpq-dev libjpeg62-turbo-dev build-essential \
|
libacl1-dev libssl-dev libpq-dev libjpeg62-turbo-dev build-essential \
|
||||||
python3-gdbm python3-dev python3-pip python3-virtualenv virtualenv git \
|
python3-gdbm python3-dev python3-pip python3-virtualenv virtualenv git \
|
||||||
uwsgi uwsgi-plugin-python3 redis-server postgresql postgresql-contrib \
|
uwsgi uwsgi-plugin-python3 redis-server postgresql postgresql-contrib hub"
|
||||||
liblz4-dev libzstd-dev libxxhash-dev python3-enchant libglib2.0-dev mailutils python-celery-common hub pkg-config python3-pkgconfig"
|
|
||||||
|
# because weblate install borgbackup
|
||||||
|
borgbackup_dependencies="libacl1-dev libacl1 libssl-dev liblz4-dev libzstd-dev libxxhash-dev \
|
||||||
|
build-essential pkg-config python3-pkgconfig"
|
||||||
|
|
||||||
|
pkg_dependencies="$weblate_dependencies $borgbackup_dependencies"
|
||||||
|
|
||||||
# Weblate's version for PIP and settings file
|
# Weblate's version for PIP and settings file
|
||||||
weblate_version="4.11"
|
weblate_version="4.11.2"
|
||||||
|
|
||||||
debian_maj_version=$(sed 's/\..*//' /etc/debian_version)
|
debian_maj_version=$(sed 's/\..*//' /etc/debian_version)
|
||||||
|
|
||||||
|
|
|
@ -140,9 +140,10 @@ chown -R $app: "$final_path"
|
||||||
set -o nounset
|
set -o nounset
|
||||||
cd "${final_path}"
|
cd "${final_path}"
|
||||||
|
|
||||||
sudo --user=$app $final_path/venv/bin/pip install --upgrade pip setuptools wheel
|
sudo --user=$app $final_path/venv/bin/pip install --upgrade pip setuptools wheel pkgconfig
|
||||||
# Tmp fix
|
|
||||||
sudo --user=$app $final_path/venv/bin/pip install --upgrade cffi==1.14
|
# Read the "Note" section in https://docs.weblate.org/en/weblate-4.11/admin/install/venv-debian.html#python-modules
|
||||||
|
sudo --user=$app $final_path/venv/bin/pip install --force-reinstall --no-binary :all: cffi
|
||||||
# Still needed with latest version of weblate?
|
# Still needed with latest version of weblate?
|
||||||
sudo --user=$app BORG_OPENSSL_PREFIX=/usr/lib/x86_64-linux-gnu/ $final_path/venv/bin/pip install Weblate=="$weblate_version"
|
sudo --user=$app BORG_OPENSSL_PREFIX=/usr/lib/x86_64-linux-gnu/ $final_path/venv/bin/pip install Weblate=="$weblate_version"
|
||||||
sudo --user=$app $final_path/venv/bin/pip install psycopg2-binary ruamel.yaml aeidon phply
|
sudo --user=$app $final_path/venv/bin/pip install psycopg2-binary ruamel.yaml aeidon phply
|
||||||
|
|
|
@ -158,9 +158,10 @@ upgrade() {
|
||||||
set -o nounset
|
set -o nounset
|
||||||
cd "${final_path}"
|
cd "${final_path}"
|
||||||
|
|
||||||
sudo --user=$app $final_path/venv/bin/pip install --upgrade pip setuptools wheel
|
sudo --user=$app $final_path/venv/bin/pip install --upgrade pip setuptools wheel pkgconfig
|
||||||
# Tmp fix
|
|
||||||
sudo --user=$app $final_path/venv/bin/pip install --upgrade cffi==1.14
|
# Read the "Note" section in https://docs.weblate.org/en/weblate-4.11/admin/install/venv-debian.html#python-modules
|
||||||
|
sudo --user=$app $final_path/venv/bin/pip install --force-reinstall --no-binary :all: cffi
|
||||||
# Still needed with latest version of weblate?
|
# Still needed with latest version of weblate?
|
||||||
sudo --user=$app $final_path/venv/bin/pip install --upgrade Weblate=="$new_version"
|
sudo --user=$app $final_path/venv/bin/pip install --upgrade Weblate=="$new_version"
|
||||||
sudo --user=$app $final_path/venv/bin/pip install psycopg2-binary ruamel.yaml aeidon phply
|
sudo --user=$app $final_path/venv/bin/pip install psycopg2-binary ruamel.yaml aeidon phply
|
||||||
|
|
Loading…
Add table
Reference in a new issue