Skip to content

Commit

Permalink
Add support for Django 5.2 (#62)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
joshuadavidthomas and pre-commit-ci[bot] authored Jan 21, 2025
1 parent e0859be commit 956c162
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/

### Added

- Added support for Django 5.1.
- Added support for Django 5.1 and 5.2.

### Removed

Expand Down
7 changes: 6 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
DJ42 = "4.2"
DJ50 = "5.0"
DJ51 = "5.1"
DJ52 = "5.2a1"
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
]
Expand All @@ -41,6 +42,10 @@ def should_skip(python: str, django: str) -> bool:
# Django main requires Python 3.12+
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
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ classifiers = [
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
Expand Down

0 comments on commit 956c162

Please sign in to comment.