diff --git a/requirements.txt b/requirements.txt index b5ace8ee..b998995e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ djangorestframework<3.7 # Avoid JSONField errors with Django 1.8 +django-filter<1.1 # Avoid get_filter_name() errors with Django 1.8 -e .[api,brightcove,dev,docs,django18,forms,project,search,test,events,collections] diff --git a/setup.py b/setup.py index d83a4012..75b76cc7 100644 --- a/setup.py +++ b/setup.py @@ -68,6 +68,13 @@ def find_packages(*paths): 'requests', 'unidecode', 'bleach<2', # Bleach 2 adds a dependency on html5lib>=0.99999999, which breaks our above requirement of html5lib==0.999 + + # Django 1.8-specific version dependencies that must be here to be + # respected. Ideally these restrictions would go below in the + # 'django18' section but setuptools does not respect them there. + # TODO Remove these once GLAMkit uses Django > 1.8 by default. + 'djangorestframework<3.7' # Avoid JSONField errors with Django 1.8 + 'django-filter<1.1', # Avoid get_filter_name() errors with Django 1.8 ], extras_require={ 'api': [