File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 2121DJ42 = "4.2"
2222DJ50 = "5.0"
2323DJ51 = "5.1"
24+ DJ52 = "5.2a1"
2425DJMAIN = "main"
25- DJMAIN_MIN_PY = PY310
26+ DJMAIN_MIN_PY = PY312
2627DJ_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+ ]
2831DJ_DEFAULT = DJ_LTS [0 ]
2932DJ_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
You can’t perform that action at this time.
0 commit comments