From e85076f12bd5a766b92e939d46f1fc5fd74907b5 Mon Sep 17 00:00:00 2001 From: David Wobrock Date: Mon, 21 Apr 2025 16:41:02 +0200 Subject: [PATCH] chore: add support for Django 5.2 --- CHANGELOG.md | 6 +----- pyproject.toml | 1 + tox.ini | 2 ++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cfd71f..5a60609 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ This means that, an app that was previously referenced by its folder name, will Miscellaneous: - Add py.typed file (#303) +- Add support for Django 5.2 (#304) ## 5.2.0 @@ -16,7 +17,6 @@ Bug: - Don't detect an index creation during a transaction with an exclusive lock, when the table is being created (#264) Miscellaneous: - - Add support for Python 3.13 - Add support for Django 5.1 - Drop support for Python 3.7 and 3.8 @@ -33,7 +33,6 @@ Bug: - Don't consider UNIQUE INDEX creation as making a column not nullable Miscellaneous: - - Migrated from `setup.py` and `setup.cfg` to `pyproject.toml` - Add support for Python 3.12 - Add support for Django 5.0 @@ -48,18 +47,15 @@ One common reason for such an error is the SQL generation which requires the dat The crash is a sign to double-check the migration. But if you are certain the migration is safe, you can ignore it (issue #209) Features: - - Fixed `RunPython` model import check when using a `through` object like `MyModel.many_to_many.through.objects.filter(...)` (issue #218) - Mark the `IgnoreMigration` operation as `elidable=True` - Handle `functools.partial` functions in RunPython data migrations - Add a new check, `CREATE_INDEX_EXCLUSIVE` to detect index creation while an exclusive lock is held Bug: - - Don't detect not nullable field on partial index creation (issue #250) Miscellaneous: - - Add support for Python 3.11 - Add support for Django 4.1 - Add support for Django 4.2 diff --git a/pyproject.toml b/pyproject.toml index 95d62f3..a8ac12a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ classifiers = [ "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", "Framework :: Django :: 5.1", + "Framework :: Django :: 5.2", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.9", diff --git a/tox.ini b/tox.ini index 04749cc..89df9b9 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,7 @@ envlist = py{39,310,311,312}-django42 py{310,311,312}-django50 py{310,311,312,313}-django51 + py{310,311,312,313}-django52 lint coverage @@ -30,6 +31,7 @@ deps = django42: django>=4.2,<4.3 django50: django>=5.0,<5.1 django51: django>=5.1,<5.2 + django52: django>=5.2,<5.3 [testenv:lint] basepython = python3.12