Skip to content

Commit d1074c9

Browse files
bump min Python version for main Django and add 5.2a1 (#156)
1 parent 213ac03 commit d1074c9

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

noxfile.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@
2121
DJ42 = "4.2"
2222
DJ50 = "5.0"
2323
DJ51 = "5.1"
24+
DJ52 = "5.2a1"
2425
DJMAIN = "main"
25-
DJMAIN_MIN_PY = PY310
26+
DJMAIN_MIN_PY = PY312
2627
DJ_VERSIONS = [DJ42, DJ50, DJ51, DJMAIN]
27-
DJ_LTS = [DJ42]
28+
DJ_LTS = [
29+
version for version in DJ_VERSIONS if version.endswith(".2") and version != DJMAIN
30+
]
2831
DJ_DEFAULT = DJ_LTS[0]
2932
DJ_LATEST = DJ_VERSIONS[-2]
3033

@@ -38,17 +41,21 @@ def should_skip(python: str, django: str) -> bool:
3841
"""Return True if the test should be skipped"""
3942

4043
if django == DJMAIN and version(python) < version(DJMAIN_MIN_PY):
41-
# Django main requires Python 3.10+
44+
# Django main requires Python 3.12+
4245
return True
4346

44-
if django == DJ50 and version(python) < version(PY310):
45-
# Django 5.0 requires Python 3.10+
47+
if django == DJ52 and version(python) < version(PY310):
48+
# Django 5.1 requires Python 3.10+
4649
return True
4750

4851
if django == DJ51 and version(python) < version(PY310):
4952
# Django 5.1 requires Python 3.10+
5053
return True
5154

55+
if django == DJ50 and version(python) < version(PY310):
56+
# Django 5.0 requires Python 3.10+
57+
return True
58+
5259
return False
5360

5461

0 commit comments

Comments
 (0)