From d3d4f9f36b2b16aa54837b67733f2de5cf93457b Mon Sep 17 00:00:00 2001 From: Andrew Donnellan Date: Wed, 8 Apr 2020 22:47:54 +0100 Subject: Add Django 3.0 support Add the latest version of Django. Signed-off-by: Andrew Donnellan Signed-off-by: Stephen Finucane Closes: #311 --- patchwork/api/patch.py | 2 +- releasenotes/notes/django-3-0-support-b961e7345456b88f.yaml | 5 +++++ tox.ini | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/django-3-0-support-b961e7345456b88f.yaml diff --git a/patchwork/api/patch.py b/patchwork/api/patch.py index 15fce8e..d881504 100644 --- a/patchwork/api/patch.py +++ b/patchwork/api/patch.py @@ -9,7 +9,7 @@ import email.parser from django.core.exceptions import ValidationError from django.utils.text import slugify -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from rest_framework import status from rest_framework.exceptions import APIException from rest_framework.exceptions import PermissionDenied diff --git a/releasenotes/notes/django-3-0-support-b961e7345456b88f.yaml b/releasenotes/notes/django-3-0-support-b961e7345456b88f.yaml new file mode 100644 index 0000000..63ba225 --- /dev/null +++ b/releasenotes/notes/django-3-0-support-b961e7345456b88f.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + `Django 3.0 `_ is + now supported. diff --git a/tox.ini b/tox.ini index 39254c8..8ba7547 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.2 -envlist = pep8,docs,py{36,37,38}-django{22} +envlist = pep8,docs,py{36,37,38}-django{22,30} skipsdist = true ignore_basepython_conflict = true @@ -11,6 +11,9 @@ deps = django22: django>=2.2,<2.3 django22: djangorestframework>=3.10,<3.12 django22: django-filter>=2.1,<3.0 + django30: django>=3.0,<3.1 + django30: djangorestframework>=3.10,<3.12 + django30: django-filter>=2.2,<3.0 setenv = DJANGO_SETTINGS_MODULE = patchwork.settings.dev PYTHONDONTWRITEBYTECODE = 1 -- cgit v1.2.3