diff --git a/noxfile.py b/noxfile.py index 86f089a..f9f257f 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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 ] @@ -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