add support for Django 5.2 (#97)

This commit is contained in:
Josh Thomas 2025-04-21 12:22:00 -05:00 committed by GitHub
parent e6bde2d7aa
commit 0f389b01bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 3 deletions

View file

@ -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