From e878843ee0f01465d2ab5c2b3e356fc075ca6873 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Thu, 30 Mar 2023 09:03:52 +0000 Subject: [PATCH] [FIX] requirements: fix jinja version for py 3.11 The pinned version of markupsafe for python > 3.10 is incompatible with the pinned version of jinja. With this commit, the Jinja version is pinned to follow Debian bookworm version when python > 3.10 which should fix the issue. closes odoo/odoo#117191 X-original-commit: 548d177e16f364b35f61f861df132dfcedc71e28 Signed-off-by: Xavier Morel (xmo) Signed-off-by: Christophe Monniez (moc) --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a0df3ffe235..8eb273ea264 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,7 +18,8 @@ greenlet==0.4.17 ; python_version > '3.7' and python_version <= '3.9' greenlet==1.1.2 ; python_version > '3.9' and python_version <= '3.10' # (Jammy) greenlet==2.0.2 ; python_version > '3.10' idna==2.8 -Jinja2==2.11.3 # min version = 2.10.1 (Focal - with security backports) +Jinja2==2.11.3 ; python_version <= '3.10' # min version = 2.10.1 (Focal - with security backports) +Jinja2==3.1.2 ; python_version > '3.10' libsass==0.20.1 lxml==4.6.5 ; python_version <= '3.10' # min version = 4.5.0 (Focal - with security backports) lxml==4.9.2 ; python_version > '3.10'