Upgrade to Django 2.2 and modern DRF and py.test (#1246)

* Upgrade django and stuff

* Update to Django 2.2 and recent versions of similar packages

* Provide explicit orderings to all models used in paginated queries

* Resolve naive datetime warnings in test suite

* Deal with deprecation warnings

* Fix sqlparse version
This commit is contained in:
Raphael Michel
2019-04-07 14:09:49 +01:00
committed by GitHub
parent cb531a7a6a
commit 6d1dea7922
39 changed files with 126 additions and 102 deletions

View File

@@ -1,5 +1,5 @@
django-debug-toolbar==1.9.1
sqlparse==0.2.1 # pinned due to difficulties with django-debug-toolbar
django-debug-toolbar==1.11
sqlparse==0.3.* # pinned due to difficulties with django-debug-toolbar
# Testing requirements
pycodestyle==2.5.*
pyflakes==2.1.*
@@ -7,15 +7,16 @@ pep8-naming
flake8==3.7.*
codecov
coverage
pytest==3.6.*
pytest==4.4.*
pytest-django
pytest-xdist==1.27.*
isort
pytest-rerunfailures==4.*
pytest-mock==1.6.*
pytest-cache
pytest-sugar
pytest-rerunfailures==7.*
pytest-mock==1.10.*
responses
potypo
freezegun
# Not really required, just nice to have
pytest-xdist==1.28.*
pytest-cache
pytest-sugar

View File

@@ -1,19 +1,19 @@
# Functional requirements
Django>=2.1,<2.2
djangorestframework==3.8.*
python-dateutil
Django==2.2.*
djangorestframework==3.9.*
python-dateutil==2.8.*
pytz
django-bootstrap3==10.0.*
django-bootstrap3==11.0.*
django-formset-js-improved==0.5.0.2
django-compressor==2.2.*
django-hierarkey==1.0.*,>=1.0.3
django-filter==2.0.*
django-filter==2.1.*
reportlab==3.5.*
PyPDF2==1.26.*
Pillow==5.*
django-libsass
libsass
django-otp==0.4.*
django-otp==0.5.*
python-u2flib-server==4.*
django-formtools==2.1
celery==4.3.*
@@ -28,7 +28,7 @@ dj-static
csscompressor
django-markup
markdown<=2.2
bleach==2.*
bleach==3.1.*
sentry-sdk==0.7.*
babel
django-i18nfield>=1.4.0