summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2020-04-08 21:57:59 +0100
committerStephen Finucane <stephen@that.guru>2020-04-08 23:30:39 +0100
commitdc9c4fe12c1af3efe578e2ac428aed01969bf95b (patch)
tree4f9aee3b5b6a636159707ac518143e821f6efddb
parent5b998c91ff7b9e54c57f5bdc76003879a7156ab3 (diff)
downloadpatchwork-dc9c4fe12c1af3efe578e2ac428aed01969bf95b.tar
patchwork-dc9c4fe12c1af3efe578e2ac428aed01969bf95b.tar.gz
tox: Drop support for Django < 2.2, Python < 3.6
Each of these versions of Django is now EOL, and Python 3.5 will be EOL by time we release the next version. Drop it. The Python 2.7 cleanup will be done separately. Signed-off-by: Stephen Finucane <stephen@that.guru>
-rw-r--r--.travis.yml2
-rw-r--r--releasenotes/notes/remove-django-1-11-2-0-and-2-1-support-4e98262f9be9911b.yaml12
-rw-r--r--releasenotes/notes/remove-python-2-7-3-5-support-4a1314b1145cb1db.yaml5
-rw-r--r--requirements-dev.txt4
-rw-r--r--requirements-prod.txt3
-rw-r--r--tox.ini19
6 files changed, 21 insertions, 24 deletions
diff --git a/.travis.yml b/.travis.yml
index 71777d3..5f15f59 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,8 +4,6 @@ dist: xenial
sudo: false
python:
- - 2.7
- - 3.5
- 3.6
- 3.7
- 3.8
diff --git a/releasenotes/notes/remove-django-1-11-2-0-and-2-1-support-4e98262f9be9911b.yaml b/releasenotes/notes/remove-django-1-11-2-0-and-2-1-support-4e98262f9be9911b.yaml
new file mode 100644
index 0000000..2f1a2c6
--- /dev/null
+++ b/releasenotes/notes/remove-django-1-11-2-0-and-2-1-support-4e98262f9be9911b.yaml
@@ -0,0 +1,12 @@
+---
+upgrade:
+ - |
+ Django 1.11, 2.0 and 2.1 are no longer supported. These are no longer
+ supported upstream and most distributions provide a newer version.
+ - |
+ djangorestframework 3.6, 3.7, 3.8 and 3.9 are no longer supported. These
+ were only used with Django 1.11 to 2.1 and are not compatible with any
+ version now supported by Patchwork.
+ - |
+ django-filter 1.1.0 is no longer supported. This was only used with Django
+ 1.11 and is not compatible with any version now supported by Patchwork.
diff --git a/releasenotes/notes/remove-python-2-7-3-5-support-4a1314b1145cb1db.yaml b/releasenotes/notes/remove-python-2-7-3-5-support-4a1314b1145cb1db.yaml
new file mode 100644
index 0000000..0ca5c51
--- /dev/null
+++ b/releasenotes/notes/remove-python-2-7-3-5-support-4a1314b1145cb1db.yaml
@@ -0,0 +1,5 @@
+---
+upgrade:
+ - |
+ Python 2.7 and 3.5 are no longer supported. These are no longer supported
+ upstream and most distributions provide a newer version.
diff --git a/requirements-dev.txt b/requirements-dev.txt
index b165f3a..4415209 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -1,10 +1,6 @@
Django~=2.2.0; python_version >= '3.5' # pyup: >= 2.2.0,<2.3.0
-Django~=1.11.0; python_version < '3.0' # pyup: ignore
djangorestframework~=3.11.0; python_version >= '3.5'
-djangorestframework~=3.9.0; python_version < '3.0' # pyup: ignore
django-filter~=2.2.0; python_version >= '3.5' # pyup: >=2.2.0,<2.3.0
-django-filter~=1.1.0; python_version < '3.0' # pyup: ignore
django-debug-toolbar~=2.0.0; python_version >= '3.5' # pyup: ignore
-django-debug-toolbar~=1.11.0; python_version < '3.0' # pyup: ignore
django-dbbackup~=3.2.0 # pyup: >=3.2.0,<3.3.0
-r requirements-test.txt
diff --git a/requirements-prod.txt b/requirements-prod.txt
index 4093b3a..f6477ac 100644
--- a/requirements-prod.txt
+++ b/requirements-prod.txt
@@ -1,8 +1,5 @@
Django~=2.2.0; python_version >= '3.5' # pyup: >=2.2.0,<2.3.0
-Django~=1.11.0; python_version < '3.0' # pyup: ignore
djangorestframework~=3.11.0; python_version >= '3.5' # pyup: >=3.10.0,<3.12.0
-djangorestframework~=3.9.0; python_version < '3.0' # pyup: ignore
django-filter~=2.2.0; python_version >= '3.5' # pyup: >=2.2.0,<2.3.0
-django-filter~=1.1.0; python_version < '3.0' # pyup: ignore
psycopg2-binary~=2.8.0 # pyup: >=2.8.0,<2.9.0
sqlparse~=0.3.0 # pyup: >=0.3.0,<0.4.0
diff --git a/tox.ini b/tox.ini
index 8fbb136..39254c8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
[tox]
minversion = 3.2
-envlist = pep8,docs,py27-django111,py{35,36,37,38}-django{111,20,21,22}
+envlist = pep8,docs,py{36,37,38}-django{22}
skipsdist = true
ignore_basepython_conflict = true
@@ -8,25 +8,14 @@ ignore_basepython_conflict = true
basepython = python3
deps =
-r{toxinidir}/requirements-test.txt
- django111: django>=1.11,<2.0
- django111: djangorestframework>=3.6,<3.12; 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.12
- django{20,21}: django-filter>=2.0,<3.0
django22: django>=2.2,<2.3
django22: djangorestframework>=3.10,<3.12
django22: django-filter>=2.1,<3.0
setenv =
DJANGO_SETTINGS_MODULE = patchwork.settings.dev
PYTHONDONTWRITEBYTECODE = 1
- DJANGO_LIVE_TEST_SERVER_ADDRESS = localhost:9000-9200
- py27: PYTHONWARNINGS = once
- py{34,36}:PYTHONWARNINGS = once,ignore::ImportWarning:backports
- py35:PYTHONWARNINGS = once,ignore::ResourceWarning:unittest.suite,ignore::ImportWarning:backports
+ py36: PYTHONWARNINGS = once,ignore::ResourceWarning:unittest.suite,ignore::ImportWarning:backports
+ py{37,38}: PYTHONWARNINGS = once
passenv =
http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
PW_TEST_DB_TYPE PW_TEST_DB_USER PW_TEST_DB_PASS PW_TEST_DB_HOST
@@ -84,4 +73,4 @@ commands =
[travis]
python =
- 2.7: py27, pep8, coverage
+ 3.6: py36, pep8, coverage