Drop Python 2 and Django 1.11 support

Minimum supported versions are now Django 2.0, Python 3.5.

This touches a lot of code, to:
* Remove obsolete portability code and workarounds
  (six, backports of email parsers, test utils, etc.)
* Use Python 3 syntax (class defs, raise ... from, etc.)
* Correct inheritance for mixin classes
* Fix outdated docs content and links
* Suppress Python 3 "unclosed SSLSocket" ResourceWarnings
  that are beyond our control (in integration tests due to boto3, 
  python-sparkpost)
This commit is contained in:
Mike Edmunds
2020-08-01 14:53:10 -07:00
committed by GitHub
parent c803108481
commit 85cec5e9dc
87 changed files with 672 additions and 1278 deletions

15
tox.ini
View File

@@ -3,27 +3,24 @@ envlist =
# Factors: django-python-extras
# Test these environments first, to catch most errors early...
lint
django30-py37-all
django111-py27-all
django31-py38-all
django20-py35-all
docs
# ... then test all the other supported combinations:
django30-py{36,38,py3}-all
django31-py{36,37,py3}-all
django30-py{36,37,38,py3}-all
django22-py{35,36,37,py3}-all
django21-py{35,36,37,py3}-all
django20-py{35,36,py3}-all
django111-py{34,35,36,py}-all
django20-py{36,py3}-all
# ... then prereleases (if available):
django31-py{36,37,38,py3}-all
djangoDev-py{36,37,38}-all
# ... then partial installation (limit extras):
django22-py37-{none,amazon_ses,sparkpost}
django31-py37-{none,amazon_ses,sparkpost}
# ... then older versions of some dependencies:
django111-py27-all-old_urllib3
django22-py37-all-old_urllib3
[testenv]
deps =
django111: django~=1.11.0
django20: django~=2.0.0
django21: django~=2.1.0
django22: django~=2.2.0