diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cc155f..f132b19 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,21 @@ jobs: tox-env: - "dj42" # LTS - "dj50" + - "dj51" + - "dj52" # LTS + - "dj60" + - "djmain" + exclude: + # Django 6.0 requires Python >=3.12 + - python-version: "3.10" + - tox-env: "dj60" + - python-version: "3.11" + - tox-env: "dj60" + # Current main branch requires Python >=3.12 + - python-version: "3.10" + tox-env: "djmain" + - python-version: "3.11" + tox-env: "djmain" env: TOXENV: ${{ matrix.tox-env }} diff --git a/README.rst b/README.rst index 260aa7d..2dbfb26 100644 --- a/README.rst +++ b/README.rst @@ -26,7 +26,9 @@ Automated code metrics: * Free software: MIT license * Documentation for the Click command line library: https://click.palletsprojects.com/en/stable/ -* 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). +* 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 + * 3.10+ required for Django 5.0 and above + * 3.12+ required for Django 6.0 and above Installation diff --git a/setup.py b/setup.py index 2dc17e6..ba4cd8c 100755 --- a/setup.py +++ b/setup.py @@ -23,6 +23,11 @@ "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Framework :: Django :: 4.2", + "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", + "Framework :: Django :: 5.2", + "Framework :: Django :: 6.0", ] diff --git a/tox.ini b/tox.ini index a9a24aa..2d90058 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,15 @@ [tox] envlist = - dj{42,50} + dj{42,50,51,52,60,main} [gh-actions] django = 4.2: dj42 5.0: dj50 + 5.1: dj51 + 5.2: dj52 + 6.0: dj60 + main: djmain [testenv] package = editable @@ -17,4 +21,8 @@ deps = -rrequirements-test.txt dj42: django>=4.2,<4.3 dj50: django>=5.0,<5.1 + dj51: django>=5.1,<5.2 + dj52: django>=5.2,<5.3 + dj60: django>=6.0,<6.1 + djmain: https://github.com/django/django/archive/main.tar.gz commands = pytest -rxs --cov-report= --cov-append --cov djclick {posargs:djclick}