Require jinja2<3.0.0 due to use of f-strings.
authorBen Sturmfels <ben@sturm.com.au>
Thu, 9 Apr 2020 21:14:39 +0000 (07:14 +1000)
committerBen Sturmfels <ben@sturm.com.au>
Thu, 9 Apr 2020 21:14:39 +0000 (07:14 +1000)
setup.py

index 7788b5a1bd1400ec539c130f42be96abb839631d..157b9113207bbe24d0719e0738db1c59abdde0ce 100644 (file)
--- 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',