diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3505334..76dab97 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,12 +13,16 @@ jobs: max-parallel: 5 matrix: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] - django-version: ['3.2', '4.1', '4.2', '5.0'] + django-version: ['4.2', '5.0', '5.1'] exclude: - python-version: '3.8' django-version: '5.0' - python-version: '3.9' django-version: '5.0' + - python-version: '3.8' + django-version: '5.1' + - python-version: '3.9' + django-version: '5.1' steps: - uses: actions/checkout@v4 diff --git a/CHANGELOG b/CHANGELOG index eab615a..15d830a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,8 @@ Unreleased * Add index to Link (David Venhoff, #202) +* Add support for Django 5.1 +* Remove support for Django < 4.2 2.3.0 (2023-12-27) diff --git a/README.rst b/README.rst index 7da35fd..685c788 100644 --- a/README.rst +++ b/README.rst @@ -27,7 +27,7 @@ automatically when objects are saved. This is handled by signals. Minimal requirements -------------------- -django-linkcheck requires Python 3.8 and Django 3.2. +django-linkcheck requires Python 3.8 and Django 4.2. Basic usage ----------- diff --git a/linkcheck/tests/test_linkcheck.py b/linkcheck/tests/test_linkcheck.py index 22fdeb2..8a3f1e1 100644 --- a/linkcheck/tests/test_linkcheck.py +++ b/linkcheck/tests/test_linkcheck.py @@ -898,7 +898,7 @@ def test_found_links(self): Here's a link: Example, and an image: logo""") self.assertEqual(Url.objects.all().count(), 2) - self.assertQuerysetEqual( + self.assertQuerySetEqual( Url.objects.all().order_by('url'), ["http://www.example.org", "http://www.example.org/logo.png"], transform=lambda obj: obj.url diff --git a/pyproject.toml b/pyproject.toml index f58c8c8..a839ec8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,15 +31,14 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Framework :: Django", - "Framework :: Django :: 3.2", - "Framework :: Django :: 4.1", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", ] license = {text = "BSD-3-Clause"} requires-python = ">=3.8" dependencies = [ - "django>=3.2", + "django>=4.2", "requests", ]