From 0f904d99367cfec27ec5fe303941fbf1124a7571 Mon Sep 17 00:00:00 2001 From: Jocelyn Delalande Date: Tue, 4 May 2021 11:20:33 +0200 Subject: [PATCH] Fix current installation of package (current installation leads to 502 error with sqlalchemy.cimmutabledict.immutabledict' object has no attribute 'setdefault' exception). Workaround SQLA 4.x backward incompatible change --- manifest.json | 2 +- scripts/_common.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 6b41a65..5e1bd73 100644 --- a/manifest.json +++ b/manifest.json @@ -7,7 +7,7 @@ "fr": "Une application web de comptes partagés à plusieurs" }, "url": "http://ihatemoney.org/", - "version": "4.1.5~ynh1", + "version": "4.1.5~ynh2", "license": "free", "maintainer": { "name": "Jocelyn Delalande", diff --git a/scripts/_common.sh b/scripts/_common.sh index 29243e4..8c54da6 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -40,10 +40,13 @@ init_virtualenv () { } pip_install () { + # SQLAlchemy requirement is workaround https://github.com/pallets/flask-sqlalchemy/issues/910 + # Might be removed later when IHM dependency set will no longer prevent working installation. /opt/yunohost/ihatemoney/venv/bin/pip install --upgrade \ 'gunicorn>=19.3.0' \ 'PyMySQL>=0.9,<0.10' \ 'ihatemoney>=4,<5' \ + 'SQLAlchemy<1.4' \ }