Skip to content

Commit

Permalink
Add Django 5.2a1 to test matrix (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadavidthomas authored Jan 16, 2025
1 parent 4a2abed commit 9f752fc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
DJ42 = "4.2"
DJ50 = "5.0"
DJ51 = "5.1"
DJ52 = "5.2a1"
DJMAIN = "main"
DJMAIN_MIN_PY = PY310
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
]
Expand All @@ -42,6 +43,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.2a1 requires Python 3.10+
return True

if django == DJ51 and version(python) < version(PY310):
# Django 5.1 requires Python 3.10+
return True
Expand Down

0 comments on commit 9f752fc

Please sign in to comment.