From 33fb726bdcfdb66fd1988d81010f6838910e1866 Mon Sep 17 00:00:00 2001 From: Josh Thomas Date: Mon, 21 Apr 2025 12:41:28 -0500 Subject: [PATCH] drop support for Django 5.0 (#99) --- CHANGELOG.md | 4 ++++ README.md | 4 ++-- noxfile.py | 7 +------ pyproject.toml | 1 - 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 659710c..4e8f186 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,10 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/ - Bumped PyO3 to 0.24. - **Internal**: Renamed template parsing crate to `djls-templates` +### Removed + +- Dropped support for 5.0. + ## [5.1.0a2] ### Added diff --git a/README.md b/README.md index 19738d6..bd21eac 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ cog.outl(f"![Django Version](https://img.shields.io/badge/django-{'%20%7C%20'.jo ]]] --> [![PyPI](https://img.shields.io/pypi/v/django-language-server)](https://pypi.org/project/django-language-server/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-language-server) -![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) +![Django Version](https://img.shields.io/badge/django-4.2%20%7C%205.1%20%7C%205.2%20%7C%20main-%2344B78B?labelColor=%23092E20) 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, 5.2 +- Django 4.2, 5.1, 5.2 See the [Versioning](#versioning) section for details on how this project's version indicates Django compatibility. diff --git a/noxfile.py b/noxfile.py index d8af72f..1229c21 100644 --- a/noxfile.py +++ b/noxfile.py @@ -27,12 +27,11 @@ PY_DEFAULT = PY_VERSIONS[0] 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, DJ52, DJMAIN] +DJ_VERSIONS = [DJ42, DJ51, DJ52, DJMAIN] DJ_LTS = [ version for version in DJ_VERSIONS if version.endswith(".2") and version != DJMAIN ] @@ -60,10 +59,6 @@ def should_skip(python: str, django: str) -> bool: # Django 5.1 requires Python 3.10+ return True - if django == DJ50 and version(python) < version(PY310): - # Django 5.0 requires Python 3.10+ - return True - return False diff --git a/pyproject.toml b/pyproject.toml index 1dc1e57..c6570e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,6 @@ classifiers = [ # cog.outl(f' "Framework :: Django :: {version}",') # ]]] --> "Framework :: Django :: 4.2", - "Framework :: Django :: 5.0", "Framework :: Django :: 5.1", "Framework :: Django :: 5.2", # [[[end]]]