diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aa7063d..15dceb0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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' diff --git a/CHANGES.rst b/CHANGES.rst index 9c7fb77..e8f73a9 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,8 @@ Changes ======= +- Drop Django < 3.2 support. + [hramezani] 5.27.0 (2021-11-04) ------------------- diff --git a/axes/__init__.py b/axes/__init__.py index 521048d..37645c8 100644 --- a/axes/__init__.py +++ b/axes/__init__.py @@ -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 diff --git a/docs/6_integration.rst b/docs/6_integration.rst index 1baa838..06220ff 100644 --- a/docs/6_integration.rst +++ b/docs/6_integration.rst @@ -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. diff --git a/pyproject.toml b/pyproject.toml index 6390bbb..fadd81f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/setup.py b/setup.py index a1a0bc8..4155fa9 100644 --- a/setup.py +++ b/setup.py @@ -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",