From 24ba69cbb190049628a03bc98827cd65644eb074 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 2 Jul 2019 15:40:50 +0200 Subject: [PATCH] TT#61761 Use Django 1.11.17 to support Python 3.7 Otherwise building against Debian/buster with python 3.7 fails with: | File "/build/repoapi-0.3.0+0~20190702124241.289+buster~1.gbp167a8a/venv_prod/lib/python3.7/site-packages/django/contrib/admin/widgets.py", line 151 | '%s=%s' % (k, v) for k, v in params.items(), | ^ | SyntaxError: Generator expression must be parenthesized The underlying issue is #32012 in python (see https://bugs.python.org/issue32012), which disallows ambiguous syntax f(x for x in [1],), which is fixed only with Django >=1.11.17, see https://github.com/django/django/commit/931c60c5216bd71bc11f489e00e063331cf21f40 Quoting from https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django: | Django version | Python versions +----------------+------------------------------------------- | 1.11 | 2.7, 3.4, 3.5, 3.6, 3.7 (added in 1.11.17) | 2.0 | 3.4, 3.5, 3.6, 3.7 | 2.1, 2.2 | 3.5, 3.6, 3.7 | 3.0 | 3.6, 3.7, 3.8 Change-Id: I4a1db7488792e5374c0f82629dfcfba0a6419be5 --- requirements/common.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/common.txt b/requirements/common.txt index 0b0e915..a590f13 100644 --- a/requirements/common.txt +++ b/requirements/common.txt @@ -1,4 +1,4 @@ -Django==1.11 +Django==1.11.17 django-extensions yuicompressor django-assets