From 58293b40252548abb9a1728a5f2fe301e6cf5b84 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 13 Oct 2023 22:53:05 +0100 Subject: [PATCH] Support Django 5.0 --- docs/changes.rst | 1 + pyproject.toml | 1 + tox.ini | 11 ++++++----- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/changes.rst b/docs/changes.rst index ab774136d..638d2d658 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -10,6 +10,7 @@ Pending content. * Fixed template panel to avoid evaluating ``LazyObject`` when not already evaluated. +* Added support for Django 5.0. 4.2.0 (2023-08-10) ------------------ diff --git a/pyproject.toml b/pyproject.toml index 637dada5e..a40af2769 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ classifiers = [ "Framework :: Django :: 4.0", "Framework :: Django :: 4.1", "Framework :: Django :: 4.2", + "Framework :: Django :: 5.0", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", diff --git a/tox.ini b/tox.ini index 5154d4907..1bbdef0e1 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ envlist = py{38,39,310}-dj32-{sqlite,postgresql,postgis,mysql} py310-dj40-sqlite py{310,311}-dj41-{sqlite,postgresql,postgis,mysql} - py{310,311}-dj{42,main}-{sqlite,postgresql,psycopg3,postgis,mysql} + py{310,311}-dj{42,50,main}-{sqlite,postgresql,psycopg3,postgis,mysql} [testenv] deps = @@ -14,6 +14,7 @@ deps = dj40: django~=4.0.0 dj41: django~=4.1.3 dj42: django~=4.2.1 + dj50: django~=5.0a1 djmain: https://github.com/django/django/archive/main.tar.gz postgresql: psycopg2-binary psycopg3: psycopg[binary] @@ -49,25 +50,25 @@ allowlist_externals = make pip_pre = True commands = python -b -W always -m coverage run -m django test -v2 {posargs:tests} -[testenv:py{38,39,310,311}-dj{32,40,41,42,main}-{postgresql,psycopg3}] +[testenv:py{38,39,310,311}-dj{32,40,41,42,50,main}-{postgresql,psycopg3}] setenv = {[testenv]setenv} DB_BACKEND = postgresql DB_PORT = {env:DB_PORT:5432} -[testenv:py{38,39,310,311}-dj{32,40,41,42,main}-postgis] +[testenv:py{38,39,310,311}-dj{32,40,41,42,50,main}-postgis] setenv = {[testenv]setenv} DB_BACKEND = postgis DB_PORT = {env:DB_PORT:5432} -[testenv:py{38,39,310,311}-dj{32,40,41,42,main}-mysql] +[testenv:py{38,39,310,311}-dj{32,40,41,42,50,main}-mysql] setenv = {[testenv]setenv} DB_BACKEND = mysql DB_PORT = {env:DB_PORT:3306} -[testenv:py{38,39,310,311}-dj{32,40,41,42,main}-sqlite] +[testenv:py{38,39,310,311}-dj{32,40,41,42,50,main}-sqlite] setenv = {[testenv]setenv} DB_BACKEND = sqlite3