Skip to content

Commit 0f389b0

Browse files
add support for Django 5.2 (#97)
1 parent e6bde2d commit 0f389b0

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
2121
### Added
2222

2323
- Added `html-django` as an alternative Language ID for Django templates
24+
- Support for Django 5.2.
2425

2526
### Changed
2627

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cog.outl(f"![Django Version](https://img.shields.io/badge/django-{'%20%7C%20'.jo
1313
]]] -->
1414
[![PyPI](https://img.shields.io/pypi/v/django-language-server)](https://pypi.org/project/django-language-server/)
1515
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-language-server)
16-
![Django Version](https://img.shields.io/badge/django-4.2%20%7C%205.0%20%7C%205.1%20%7C%20main-%2344B78B?labelColor=%23092E20)
16+
![Django Version](https://img.shields.io/badge/django-4.2%20%7C%205.0%20%7C%205.1%20%7C%205.2%20%7C%20main-%2344B78B?labelColor=%23092E20)
1717
<!-- [[[end]]] -->
1818

1919
A language server for the Django web framework.
@@ -66,7 +66,7 @@ cog.outl(f"- Python {', '.join([version for version in PY_VERSIONS])}")
6666
cog.outl(f"- Django {', '.join([version for version in DJ_VERSIONS if version != 'main'])}")
6767
]]] -->
6868
- Python 3.9, 3.10, 3.11, 3.12, 3.13
69-
- Django 4.2, 5.0, 5.1
69+
- Django 4.2, 5.0, 5.1, 5.2
7070
<!-- [[[end]]] -->
7171

7272
See the [Versioning](#versioning) section for details on how this project's version indicates Django compatibility.

noxfile.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
DJ42 = "4.2"
3030
DJ50 = "5.0"
3131
DJ51 = "5.1"
32+
DJ52 = "5.2"
3233
DJMAIN = "main"
3334
DJMAIN_MIN_PY = PY312
34-
DJ_VERSIONS = [DJ42, DJ50, DJ51, DJMAIN]
35+
DJ_VERSIONS = [DJ42, DJ50, DJ51, DJ52, DJMAIN]
3536
DJ_LTS = [
3637
version for version in DJ_VERSIONS if version.endswith(".2") and version != DJMAIN
3738
]
@@ -51,6 +52,10 @@ def should_skip(python: str, django: str) -> bool:
5152
# Django main requires Python 3.10+
5253
return True
5354

55+
if django == DJ52 and version(python) < version(PY310):
56+
# Django 5.2 requires Python 3.10+
57+
return True
58+
5459
if django == DJ51 and version(python) < version(PY310):
5560
# Django 5.1 requires Python 3.10+
5661
return True

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ classifiers = [
3838
"Framework :: Django :: 4.2",
3939
"Framework :: Django :: 5.0",
4040
"Framework :: Django :: 5.1",
41+
"Framework :: Django :: 5.2",
4142
# [[[end]]]
4243
"Intended Audience :: Developers",
4344
"License :: OSI Approved :: Apache Software License",

0 commit comments

Comments
 (0)