From 72047cbe687ac8f55c6f9afa5056b196e84ff355 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Fri, 10 Apr 2020 07:14:39 +1000 Subject: [PATCH] Require jinja2<3.0.0 due to use of f-strings. --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7788b5a1..157b9113 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,9 @@ install_requires = [ 'pytest-xdist', 'werkzeug>=0.7,<1.0.0', 'celery>=3.0', - 'jinja2', + # Jinja2 3.0.0 uses f-strings (Python 3.7 and above) but `pip install` on + # Debian 9 doesn't seem to respect Jinja2's 'python_requires=">=3.6"' line. + 'jinja2<3.0.0', 'Babel>=1.3', 'WebTest>=2.0.18', 'ConfigObj', -- 2.25.1