diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8587e94..32b9334 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,4 +26,4 @@ repos: rev: 1.20.0 hooks: - id: django-upgrade - args: [--target-version, "3.2"] + args: [--target-version, "4.2"] diff --git a/CHANGELOG.md b/CHANGELOG.md index c72957c..7bf718d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,10 @@ ## Next Release #### Improvements + - feat: Added `LogEntry.remote_port` field. ([#671](https://github.com/jazzband/django-auditlog/pull/671)) - Drop Python 3.8 support. ([#678](https://github.com/jazzband/django-auditlog/pull/678)) +- Confirm Django 5.1 support and drop Django 3.2 support. ([#677](https://github.com/jazzband/django-auditlog/pull/677)) #### Fixes diff --git a/docs/requirements.txt b/docs/requirements.txt index 597a7cf..eb4b4b6 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,5 @@ # Docs requirements -django>=3.2,<3.3 +django>=4.2,<4.3 sphinx sphinx_rtd_theme psycopg2-binary diff --git a/docs/source/installation.rst b/docs/source/installation.rst index 1a17eda..b6b197a 100644 --- a/docs/source/installation.rst +++ b/docs/source/installation.rst @@ -12,9 +12,9 @@ The repository can be found at https://github.com/jazzband/django-auditlog/. **Requirements** - Python 3.9 or higher -- Django 3.2, 4.2 and 5.0 +- Django 4.2, 5.0 and 5.1 -Auditlog is currently tested with Python 3.9+ and Django 3.2, 4.2 and 5.0. The latest test report can be found +Auditlog is currently tested with Python 3.9+ and Django 4.2, 5.0 and 5.1. The latest test report can be found at https://github.com/jazzband/django-auditlog/actions. Adding Auditlog to your Django application diff --git a/setup.py b/setup.py index 644f84d..a87f52e 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ setup( long_description=long_description, long_description_content_type="text/markdown", python_requires=">=3.9", - install_requires=["Django>=3.2", "python-dateutil>=2.7.0"], + install_requires=["Django>=4.2", "python-dateutil>=2.7.0"], zip_safe=False, classifiers=[ "Programming Language :: Python :: 3", @@ -37,9 +37,9 @@ setup( "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Framework :: Django", - "Framework :: Django :: 3.2", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", "License :: OSI Approved :: MIT License", ], ) diff --git a/tox.ini b/tox.ini index a14e996..674904c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,7 @@ [tox] envlist = - {py39,py310}-django32 {py39,py310,py311}-django42 - {py310,py311,py312}-django{50,main} + {py310,py311,py312}-django{50,51,main} py39-docs py39-lint @@ -13,9 +12,9 @@ commands = coverage run --source auditlog runtests.py coverage xml deps = - django32: Django>=3.2,<3.3 django42: Django>=4.2,<4.3 django50: Django>=5.0,<5.1 + django51: Django>=5.1,<5.2 djangomain: https://github.com/django/django/archive/main.tar.gz # Test requirements coverage