Skip to content

Commit 457e1c3

Browse files
committed
Add support for Django 5.1, 5.2, 6.0, and the main branch
1 parent 72a0a3b commit 457e1c3

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ jobs:
2121
tox-env:
2222
- "dj42" # LTS
2323
- "dj50"
24+
- "dj51"
25+
- "dj52" # LTS
26+
- "dj60"
27+
- "djmain"
28+
exclude:
29+
# Django 6.0 requires Python >=3.12
30+
- python-version: "3.10"
31+
- tox-env: "dj60"
32+
- python-version: "3.11"
33+
- tox-env: "dj60"
34+
# Current main branch requires Python >=3.12
35+
- python-version: "3.10"
36+
tox-env: "djmain"
37+
- python-version: "3.11"
38+
tox-env: "djmain"
2439

2540
env:
2641
TOXENV: ${{ matrix.tox-env }}

README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ Automated code metrics:
2626

2727
* Free software: MIT license
2828
* Documentation for the Click command line library: https://click.palletsprojects.com/en/stable/
29-
* Compatible with Django 4.2 and 5.0 running on Python 3.10, 3.11, 3.12, 3.13 and 3.14 (note: 3.10+ required for Django 5.0).
29+
* Compatible with Django 4.2, 5.0, 5.1, 5.2 and 6.0 running on Python 3.10, 3.11, 3.12, 3.13 and 3.14
30+
* 3.10+ required for Django 5.0 and above
31+
* 3.12+ required for Django 6.0 and above
3032

3133

3234
Installation

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
"Programming Language :: Python :: 3.12",
2424
"Programming Language :: Python :: 3.13",
2525
"Programming Language :: Python :: 3.14",
26+
"Framework :: Django :: 4.2",
27+
"Framework :: Django :: 5.0",
28+
"Framework :: Django :: 5.1",
29+
"Framework :: Django :: 5.2",
30+
"Framework :: Django :: 6.0",
2631
]
2732

2833

tox.ini

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
[tox]
22
envlist =
3-
dj{42,50}
3+
dj{42,50,51,52,60,main}
44

55
[gh-actions]
66
django =
77
4.2: dj42
88
5.0: dj50
9+
5.1: dj51
10+
5.2: dj52
11+
6.0: dj60
12+
main: djmain
913

1014
[testenv]
1115
package = editable
@@ -17,4 +21,8 @@ deps =
1721
-rrequirements-test.txt
1822
dj42: django>=4.2,<4.3
1923
dj50: django>=5.0,<5.1
24+
dj51: django>=5.1,<5.2
25+
dj52: django>=5.2,<5.3
26+
dj60: django>=6.0,<6.1
27+
djmain: https://github.com/django/django/archive/main.tar.gz
2028
commands = pytest -rxs --cov-report= --cov-append --cov djclick {posargs:djclick}

0 commit comments

Comments
 (0)