]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Add support for djangorestframework 3.10
authorStephen Finucane <stephen@that.guru>
Mon, 9 Sep 2019 09:12:55 +0000 (10:12 +0100)
committerStephen Finucane <stephen@that.guru>
Mon, 9 Sep 2019 10:53:47 +0000 (11:53 +0100)
This is necessary for proper Django 2.2 support. We retain support for
older versions since 3.10 is Python 3-only.

Signed-off-by: Stephen Finucane <stephen@that.guru>
releasenotes/notes/django-rest-framework-3-10-37a8c0713d3c7499.yaml [new file with mode: 0644]
requirements-dev.txt
requirements-prod.txt
tox.ini

diff --git a/releasenotes/notes/django-rest-framework-3-10-37a8c0713d3c7499.yaml b/releasenotes/notes/django-rest-framework-3-10-37a8c0713d3c7499.yaml
new file mode 100644 (file)
index 0000000..46227d7
--- /dev/null
@@ -0,0 +1,6 @@
+---
+upgrade:
+  - |
+    `Django REST Framework 3.10
+    <https://www.django-rest-framework.org/community/3.10-announcement/>`_ is
+    now supported.
index 7964a536f9d21b16db40769c9e7ab487213217dc..81e35f4e0814ed3f073f0c57814904748ed796fc 100644 (file)
@@ -1,6 +1,7 @@
 Django==2.2.5; python_version >= '3.5'
 Django==1.11.24; python_version < '3.0'  # pyup: ignore
-djangorestframework==3.9.2
+djangorestframework==3.10.3; python_version >= '3.5'
+djangorestframework==3.9.4; python_version < '3.0'  # pyup: ignore
 django-filter==2.2.0; python_version >= '3.5'
 django-filter==1.1.0; python_version < '3.0'  # pyup: ignore
 django-debug-toolbar==1.11
index 7e9772eee5683d25e10e51b2013bbc02c3e08bd1..4a7ca630f376db055272f5cce9c33b3bd93ee0bf 100644 (file)
@@ -1,6 +1,7 @@
 Django==2.2.5; python_version >= '3.5'
 Django==1.11.24; python_version < '3.0'  # pyup: ignore
-djangorestframework==3.9.2
+djangorestframework==3.10.3; python_version >= '3.5'
+djangorestframework==3.9.4; python_version < '3.0'  # pyup: ignore
 django-filter==2.2.0; python_version >= '3.5'
 django-filter==1.1.0; python_version < '3.0'  # pyup: ignore
 psycopg2-binary==2.8.3
diff --git a/tox.ini b/tox.ini
index 7742d1b8393684d86fb361806c74e79cf622785f..0c03857eeb0d163076d227dd3d7618193c1ba9dc 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,21 +1,22 @@
 [tox]
 minversion = 2.0
-envlist = pep8,docs,py{27}-django111,py{35,36,37}-django{111,20,21,22}
+envlist = pep8,docs,py27-django111,py{35,36,37}-django{111,20,21,22}
 skipsdist = True
 
 [testenv]
 deps =
     -r{toxinidir}/requirements-test.txt
     django111: django>=1.11,<2.0
-    django111: djangorestframework>=3.6,<3.10
+    django111: djangorestframework>=3.6,<3.11; python_version >= '3.5'
+    django111: djangorestframework>=3.6,<3.10; python_version < '3.0'
     django111: django-filter>=1.0,<3.0; python_version >= '3.5'
     django111: django-filter>=1.0,<2.0; python_version < '3.0'
     django20: django>=2.0,<2.1
     django21: django>=2.1,<2.2
-    django{20,21}: djangorestframework>=3.7,<3.10
+    django{20,21}: djangorestframework>=3.7,<3.11
     django{20,21}: django-filter>=2.0,<3.0
     django22: django>=2.2,<2.3
-    django22: djangorestframework>=3.9.2
+    django22: djangorestframework>=3.10,<3.11
     django22: django-filter>=2.1,<3.0
 setenv =
     DJANGO_SETTINGS_MODULE = patchwork.settings.dev