mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-19 08:40:41 +00:00
add support for Django 5.2 (#97)
This commit is contained in:
parent
e6bde2d7aa
commit
0f389b01bf
4 changed files with 10 additions and 3 deletions
|
@ -21,6 +21,7 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
|
|||
### Added
|
||||
|
||||
- Added `html-django` as an alternative Language ID for Django templates
|
||||
- Support for Django 5.2.
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ cog.outl(f"](https://pypi.org/project/django-language-server/)
|
||||

|
||||

|
||||

|
||||
<!-- [[[end]]] -->
|
||||
|
||||
A language server for the Django web framework.
|
||||
|
@ -66,7 +66,7 @@ cog.outl(f"- Python {', '.join([version for version in PY_VERSIONS])}")
|
|||
cog.outl(f"- Django {', '.join([version for version in DJ_VERSIONS if version != 'main'])}")
|
||||
]]] -->
|
||||
- Python 3.9, 3.10, 3.11, 3.12, 3.13
|
||||
- Django 4.2, 5.0, 5.1
|
||||
- Django 4.2, 5.0, 5.1, 5.2
|
||||
<!-- [[[end]]] -->
|
||||
|
||||
See the [Versioning](#versioning) section for details on how this project's version indicates Django compatibility.
|
||||
|
|
|
@ -29,9 +29,10 @@ PY_LATEST = PY_VERSIONS[-1]
|
|||
DJ42 = "4.2"
|
||||
DJ50 = "5.0"
|
||||
DJ51 = "5.1"
|
||||
DJ52 = "5.2"
|
||||
DJMAIN = "main"
|
||||
DJMAIN_MIN_PY = PY312
|
||||
DJ_VERSIONS = [DJ42, DJ50, DJ51, DJMAIN]
|
||||
DJ_VERSIONS = [DJ42, DJ50, DJ51, DJ52, DJMAIN]
|
||||
DJ_LTS = [
|
||||
version for version in DJ_VERSIONS if version.endswith(".2") and version != DJMAIN
|
||||
]
|
||||
|
@ -51,6 +52,10 @@ def should_skip(python: str, django: str) -> bool:
|
|||
# Django main requires Python 3.10+
|
||||
return True
|
||||
|
||||
if django == DJ52 and version(python) < version(PY310):
|
||||
# Django 5.2 requires Python 3.10+
|
||||
return True
|
||||
|
||||
if django == DJ51 and version(python) < version(PY310):
|
||||
# Django 5.1 requires Python 3.10+
|
||||
return True
|
||||
|
|
|
@ -38,6 +38,7 @@ classifiers = [
|
|||
"Framework :: Django :: 4.2",
|
||||
"Framework :: Django :: 5.0",
|
||||
"Framework :: Django :: 5.1",
|
||||
"Framework :: Django :: 5.2",
|
||||
# [[[end]]]
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue