Skip to content

Commit

Permalink
Update Django version support to 4.2 - 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed Nov 25, 2024
1 parent 4b72e37 commit 9960f2c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------
Expand Down
2 changes: 1 addition & 1 deletion linkcheck/tests/test_linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ def test_found_links(self):
Here's a link: <a href="http://www.example.org">Example</a>,
and an image: <img src="http://www.example.org/logo.png" alt="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
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down

0 comments on commit 9960f2c

Please sign in to comment.