Skip to content

Commit d0c7813

Browse files
Drop Django 4.2 support (#526)
1 parent 2cac62f commit d0c7813

9 files changed

Lines changed: 10 additions & 18 deletions

File tree

AGENTS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Before pushing, run `just clippy`, `just fmt`, and `just lint`. Never use `cargo
2020
## Testing
2121
**All tests must pass.** If a test fails, it is your responsibility to fix it — even if you didn't cause the failure. Never dismiss failures as "pre-existing" or "unrelated".
2222

23+
## Generated Content
24+
- Do not edit text inside cog-generated blocks by hand. Update the source of truth, then run `just cog` to regenerate the block.
25+
2326
## Code Style
2427
- Use `tower-lsp-server`, not `tower-lsp`; import LSP types via `tower_lsp_server::ls_types`.
2528
- Use `camino::Utf8Path`/`Utf8PathBuf` as canonical path types. Convert from `std::path` only at API boundaries.

CHANGELOG.md

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

5353
### Removed
5454

55+
- Dropped Django 4.2 from supported versions.
5556
- Dropped Django 5.1 from supported versions.
5657

5758
### Fixed

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ Available recipes:
276276
clippy *ARGS
277277
corpus *ARGS
278278
fmt *ARGS
279-
lint # run pre-commit on all files
279+
lint *ARGS # run pre-commit on all files
280+
run *ARGS
280281
test *ARGS
281282
testall *ARGS
282283
dev:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cog.outl(f"![Django Version](https://img.shields.io/badge/django-{'%20%7C%20'.jo
1616
]]] -->
1717
[![PyPI](https://img.shields.io/pypi/v/django-language-server)](https://pypi.org/project/django-language-server/)
1818
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-language-server)
19-
![Django Version](https://img.shields.io/badge/django-4.2%20%7C%205.2%20%7C%206.0%20%7C%20main-%2344B78B?labelColor=%23092E20)
19+
![Django Version](https://img.shields.io/badge/django-5.2%20%7C%206.0%20%7C%20main-%2344B78B?labelColor=%23092E20)
2020
<!-- [[[end]]] -->
2121

2222
A language server for the Django web framework.

crates/djls-corpus/manifest.lock

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,6 @@ url = "https://github.com/jazzband/django-widget-tweaks.git"
198198
tag = "1.5.1"
199199
ref = "93b601137eaba07924b7258c7d5496fb8a6d48b8"
200200

201-
[[repo]]
202-
name = "django-4.2"
203-
url = "https://github.com/django/django.git"
204-
tag = "4.2.28"
205-
ref = "20c71f6b91324cf401056c72136c14e0ec2bf7bf"
206-
207201
[[repo]]
208202
name = "django-5.2"
209203
url = "https://github.com/django/django.git"

crates/djls-corpus/manifest.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,6 @@ url = "https://github.com/jazzband/django-widget-tweaks.git"
167167
ref = "1.5.1"
168168

169169
# https://endoflife.date/django
170-
[[repo]]
171-
name = "django-4.2"
172-
url = "https://github.com/django/django.git"
173-
ref = "4.2.28"
174-
175170
[[repo]]
176171
name = "django-5.2"
177172
url = "https://github.com/django/django.git"

docs/versioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cog.outl(f"- Python {', '.join(PY_VERSIONS)}")
2727
cog.outl(f"- Django {', '.join(django_versions)}")
2828
]]] -->
2929
- Python 3.10, 3.11, 3.12, 3.13, 3.14
30-
- Django 4.2, 5.2, 6.0
30+
- Django 5.2, 6.0
3131
<!-- [[[end]]] -->
3232

3333
## Version numbering

noxfile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@
2222
PY_DEFAULT = PY_VERSIONS[0]
2323
PY_LATEST = PY_VERSIONS[-1]
2424

25-
DJ42 = "4.2"
2625
DJ52 = "5.2"
2726
DJ60 = "6.0"
2827
DJMAIN = "main"
2928
DJMAIN_MIN_PY = PY312
30-
DJ_VERSIONS = [DJ42, DJ52, DJ60, DJMAIN]
29+
DJ_VERSIONS = [DJ52, DJ60, DJMAIN]
3130
DJ_LTS = [
3231
version for version in DJ_VERSIONS if version.endswith(".2") and version != DJMAIN
3332
]
@@ -158,7 +157,7 @@ def lint(session):
158157

159158

160159
@nox.session
161-
@nox.parametrize("django", [DJ42, DJ52, DJ60, DJMAIN])
160+
@nox.parametrize("django", [DJ52, DJ60, DJMAIN])
162161
def analyze_tags(session, django):
163162
"""Analyze Django template tags and generate TagSpec suggestions."""
164163
if django == DJMAIN:

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ classifiers = [
4747
# continue
4848
# cog.outl(f' "Framework :: Django :: {display_version(version)}",')
4949
# ]]] -->
50-
"Framework :: Django :: 4.2",
5150
"Framework :: Django :: 5.2",
5251
"Framework :: Django :: 6.0",
5352
# [[[end]]]

0 commit comments

Comments
 (0)