diff --git a/docs/changes.rst b/docs/changes.rst index 581a9fce1..85488250b 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -4,6 +4,7 @@ Change log Pending ------- +* Added Django 5.1 to the CI matrix. * Support select and explain buttons for ``UNION`` queries on PostgreSQL. * Fixed internal toolbar requests being instrumented if the Django setting ``FORCE_SCRIPT_NAME`` was set. diff --git a/pyproject.toml b/pyproject.toml index 451887d35..611015e13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,7 @@ classifiers = [ "Framework :: Django", "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", diff --git a/tox.ini b/tox.ini index 160b33db7..1bba8d38f 100644 --- a/tox.ini +++ b/tox.ini @@ -4,12 +4,13 @@ envlist = docs packaging py{38,39,310,311,312}-dj{42}-{sqlite,postgresql,postgis,mysql} - py{310,311,312}-dj{42,50,main}-{sqlite,postgresql,psycopg3,postgis,mysql} + py{310,311,312}-dj{42,50,51,main}-{sqlite,postgresql,psycopg3,postgis,mysql} [testenv] deps = dj42: django~=4.2.1 dj50: django~=5.0.2 + dj51: django~=5.1.0 djmain: https://github.com/django/django/archive/main.tar.gz postgresql: psycopg2-binary psycopg3: psycopg[binary] @@ -48,28 +49,28 @@ pip_pre = True commands = python -b -W always -m coverage run -m django test -v2 {posargs:tests} -[testenv:py{38,39,310,311,312}-dj{42,50,main}-{postgresql,psycopg3}] +[testenv:py{38,39,310,311,312}-dj{42,50,51,main}-{postgresql,psycopg3}] setenv = {[testenv]setenv} DB_BACKEND = postgresql DB_PORT = {env:DB_PORT:5432} -[testenv:py{38,39,310,311,312}-dj{42,50,main}-postgis] +[testenv:py{38,39,310,311,312}-dj{42,50,51,main}-postgis] setenv = {[testenv]setenv} DB_BACKEND = postgis DB_PORT = {env:DB_PORT:5432} -[testenv:py{38,39,310,311,312}-dj{42,50,main}-mysql] +[testenv:py{38,39,310,311,312}-dj{42,50,51,main}-mysql] setenv = {[testenv]setenv} DB_BACKEND = mysql DB_PORT = {env:DB_PORT:3306} -[testenv:py{38,39,310,311,312}-dj{42,50,main}-sqlite] +[testenv:py{38,39,310,311,312}-dj{42,50,51,main}-sqlite] setenv = {[testenv]setenv} DB_BACKEND = sqlite3