Drop Django 2.2 support

This commit is contained in:
Hasan Ramezani 2022-04-13 15:07:29 +02:00 committed by Aleksi Häkli
parent 6f806b046a
commit fdf37feb54
6 changed files with 5 additions and 8 deletions

View file

@ -5,6 +5,7 @@ Changes
- Drop Django 3.1 support.
- Confirm support for Django 4.0
- Confirm support for Python 3.10
- Drop Django 2.2 support.
0.9.1
-----

View file

@ -109,7 +109,7 @@ Requirements
------------
* Python: 3.6, 3.7, 3.8, 3.9, 3.10, PyPy
* Django: 2.2, 3.x, 4.x
* Django: 3.x, 4.x
* Redis

View file

@ -45,12 +45,11 @@ TEMPLATES = [
"django.template.context_processors.static",
"django.template.context_processors.tz",
"django.contrib.messages.context_processors.messages",
"django.template.context_processors.request",
],
},
},
]
if django.VERSION >= (3, 2):
TEMPLATES[0]["OPTIONS"]["context_processors"].append("django.template.context_processors.request")
SECRET_KEY = os.environ.get("SECRET_KEY", "too-secret-for-test")

View file

@ -41,12 +41,11 @@ TEMPLATES = [
"django.template.context_processors.static",
"django.template.context_processors.tz",
"django.contrib.messages.context_processors.messages",
"django.template.context_processors.request",
],
},
},
]
if django.VERSION >= (3, 2):
TEMPLATES[0]["OPTIONS"]["context_processors"].append("django.template.context_processors.request")
SECRET_KEY = os.environ.get("SECRET_KEY", "too-secret-for-test")

View file

@ -31,7 +31,6 @@ setup(
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Intended Audience :: Developers",

View file

@ -1,7 +1,7 @@
[tox]
envlist =
# list of supported Django/Python versions:
py{36,37,38,39,py3}-dj{22,32}
py{36,37,38,39,py3}-dj{32}
py{38,39,310}-dj{40,main}
py38-{lint,docs}
@ -17,7 +17,6 @@ python =
[testenv]
deps =
-rrequirements.txt
dj22: django>=2.2,<2.3
dj32: django>=3.2,<4.0
dj40: django>=4.0,<4.1
djmain: https://github.com/django/django/archive/main.tar.gz