chore: add support for Django 5.2

This commit is contained in:
David Wobrock authored and David Wobrock committed 2025-04-21 16:50:00 +02:00
1 parent 0ee05a2b30
commit e85076f12b
3 files changed
+4 -5

No files matched your search

+1 -5
View File
@@ -6,6 +6,7 @@ This means that, an app that was previously referenced by its folder name, will
Miscellaneous: Miscellaneous:
- Add py.typed file (#303) - Add py.typed file (#303)
- Add support for Django 5.2 (#304)
## 5.2.0 ## 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) - Don't detect an index creation during a transaction with an exclusive lock, when the table is being created (#264)
Miscellaneous: Miscellaneous:
- Add support for Python 3.13 - Add support for Python 3.13
- Add support for Django 5.1 - Add support for Django 5.1
- Drop support for Python 3.7 and 3.8 - 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 - Don't consider UNIQUE INDEX creation as making a column not nullable
Miscellaneous: Miscellaneous:
- Migrated from `setup.py` and `setup.cfg` to `pyproject.toml` - Migrated from `setup.py` and `setup.cfg` to `pyproject.toml`
- Add support for Python 3.12 - Add support for Python 3.12
- Add support for Django 5.0 - 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) 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: Features:
- Fixed `RunPython` model import check when using a `through` object like `MyModel.many_to_many.through.objects.filter(...)` (issue #218) - 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` - Mark the `IgnoreMigration` operation as `elidable=True`
- Handle `functools.partial` functions in RunPython data migrations - 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 - Add a new check, `CREATE_INDEX_EXCLUSIVE` to detect index creation while an exclusive lock is held
Bug: Bug:
- Don't detect not nullable field on partial index creation (issue #250) - Don't detect not nullable field on partial index creation (issue #250)
Miscellaneous: Miscellaneous:
- Add support for Python 3.11 - Add support for Python 3.11
- Add support for Django 4.1 - Add support for Django 4.1
- Add support for Django 4.2 - Add support for Django 4.2
+1
View File
@@ -29,6 +29,7 @@ classifiers = [
"Framework :: Django :: 4.2", "Framework :: Django :: 4.2",
"Framework :: Django :: 5.0", "Framework :: Django :: 5.0",
"Framework :: Django :: 5.1", "Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Programming Language :: Python", "Programming Language :: Python",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
+2
View File
@@ -6,6 +6,7 @@ envlist =
py{39,310,311,312}-django42 py{39,310,311,312}-django42
py{310,311,312}-django50 py{310,311,312}-django50
py{310,311,312,313}-django51 py{310,311,312,313}-django51
py{310,311,312,313}-django52
lint lint
coverage coverage
@@ -30,6 +31,7 @@ deps =
django42: django>=4.2,<4.3 django42: django>=4.2,<4.3
django50: django>=5.0,<5.1 django50: django>=5.0,<5.1
django51: django>=5.1,<5.2 django51: django>=5.1,<5.2
django52: django>=5.2,<5.3
[testenv:lint] [testenv:lint]
basepython = python3.12 basepython = python3.12