1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Upgrade upstream to 3.x

Should fix the failing level2 of yunohost-apps CI also (infinite redirection
bug fixed upstream).

Fix #30
Ref https://github.com/YunoHost/apps/pull/553#issuecomment-448883502
This commit is contained in:
Jocelyn Delalande 2018-12-20 07:29:45 +01:00
parent 2eaa22469f
commit 6fde558788
4 changed files with 3 additions and 7 deletions

View file

@ -7,7 +7,7 @@
"fr": "Une application web de comptes partagés à plusieurs" "fr": "Une application web de comptes partagés à plusieurs"
}, },
"url": "http://ihatemoney.org/", "url": "http://ihatemoney.org/",
"version": "2.1~ynh1", "version": "3.0~ynh1",
"license": "free", "license": "free",
"maintainer": { "maintainer": {
"name": "Jocelyn Delalande", "name": "Jocelyn Delalande",

View file

@ -35,10 +35,6 @@ create_system_dirs() {
init_virtualenv () { init_virtualenv () {
sudo virtualenv /opt/yunohost/ihatemoney/venv --python /usr/bin/python3 sudo virtualenv /opt/yunohost/ihatemoney/venv --python /usr/bin/python3
# Will no longer be necessary for ihm>=3.x
# https://github.com/spiral-project/ihatemoney/blob/master/CHANGELOG.rst#fixed
sudo /opt/yunohost/ihatemoney/venv/bin/pip install 'pip<10'
# PyMySQL → cryptography → setuptools>=18.5 # PyMySQL → cryptography → setuptools>=18.5
# Required on Jessie, Stretch has setuptools>=18.5 # Required on Jessie, Stretch has setuptools>=18.5
/opt/yunohost/ihatemoney/venv/bin/pip install 'setuptools>=18.5' /opt/yunohost/ihatemoney/venv/bin/pip install 'setuptools>=18.5'

View file

@ -46,7 +46,7 @@ init_virtualenv
sudo /opt/yunohost/ihatemoney/venv/bin/pip install \ sudo /opt/yunohost/ihatemoney/venv/bin/pip install \
'gunicorn>=19.3.0' \ 'gunicorn>=19.3.0' \
'PyMySQL>=0.9,<0.10' \ 'PyMySQL>=0.9,<0.10' \
'ihatemoney>=2,<3' \ 'ihatemoney>=3,<4' \
create_system_dirs create_system_dirs

View file

@ -85,7 +85,7 @@ fi
# Upgrade code and dependencies # Upgrade code and dependencies
sudo ${PIP} install --upgrade 'gunicorn>=19.3.0' PyMySQL 'ihatemoney>=2,<3' sudo ${PIP} install --upgrade 'gunicorn>=19.3.0' PyMySQL 'ihatemoney>=3,<4'
#-----------------------POST-UPGRADE MIGRATIONS----------------- #-----------------------POST-UPGRADE MIGRATIONS-----------------