Drop Django < 3.2 support.

This commit is contained in:
Hasan Ramezani 2021-12-10 20:29:18 +01:00 committed by Aleksi Häkli
parent 85f156b661
commit 2c2fdbe0d9
6 changed files with 5 additions and 14 deletions

View file

@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', 'pypy-3.8']
django-version: ['2.2', '3.1', '3.2']
django-version: ['3.2']
# Tox configuration for QA environment
include:
- python-version: '3.8'

View file

@ -2,6 +2,8 @@
Changes
=======
- Drop Django < 3.2 support.
[hramezani]
5.27.0 (2021-11-04)
-------------------

View file

@ -1,8 +1,4 @@
from pkg_resources import get_distribution
import django
if django.VERSION < (3, 2):
default_app_config = "axes.apps.AppConfig"
__version__ = get_distribution("django-axes").version

View file

@ -126,7 +126,7 @@ And then configure your application to load it in ``examples/apps.py``::
Please check the Django signals documentation for more information:
https://docs.djangoproject.com/en/3.1/topics/signals/
https://docs.djangoproject.com/en/3.2/topics/signals/
When a user login fails a signal is emitted and PermissionDenied
raises a HTTP 403 reply which interrupts the login process.

View file

@ -10,7 +10,6 @@ DJANGO_SETTINGS_MODULE = "tests.settings"
legacy_tox_ini = """
[tox]
envlist =
py{36,37,38,39,py3}-dj{22,31}
py{36,37,38,39,310}-dj32
py{38,39,310}-djmain
py38-djqa
@ -26,8 +25,6 @@ python =
[gh-actions:env]
DJANGO =
2.2: dj22
3.1: dj31
3.2: dj32
main: djmain
qa: djqa
@ -36,8 +33,6 @@ DJANGO =
[testenv]
deps =
-r requirements-test.txt
dj22: django>=2.2,<2.3
dj31: django>=3.1,<3.2
dj32: django>=3.2,<3.3
djmain: https://github.com/django/django/archive/main.tar.gz
usedevelop = true

View file

@ -36,7 +36,7 @@ setup(
use_scm_version=True,
setup_requires=["setuptools_scm"],
python_requires="~=3.6",
install_requires=["django>=2.2", "django-ipware>=3,<5", "setuptools"],
install_requires=["django>=3.2", "django-ipware>=3,<5", "setuptools"],
include_package_data=True,
packages=find_packages(exclude=["tests"]),
classifiers=[
@ -44,8 +44,6 @@ setup(
"Environment :: Web Environment",
"Environment :: Plugins",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",