From 0f48de516c92a5b4f52f1c0b23fc55b2b2d9195f Mon Sep 17 00:00:00 2001 From: NeoZhao Date: Tue, 5 Apr 2022 22:33:00 +0800 Subject: [PATCH] set the upper bound version of Jinja2 Jinja2 has published 3.1.x version and it will throw ImportError, thus we have to set a upper bound version of Jinja2 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 539f0847..dfc46569 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ setup( python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", install_requires=[ 'Werkzeug>=0.14', - 'Jinja2>=2.4', + 'Jinja2>=2.4, <3.1', 'itsdangerous>=0.21', 'click>=2.0', ],