Skip to content

Commit

Permalink
⬆️ Adds Django 5.0 support. 🔥 Drops 4.1 (#5)
Browse files Browse the repository at this point in the history
* ⬆️ Adds Django 5.0 support. 🔥 Drops 4.1

* ⚙️ Adds Django 5.0
  • Loading branch information
jefftriplett authored Dec 5, 2023
1 parent 33457aa commit a05d40c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
django-version: ['3.2', '4.1', '4.2', 'main']
django-version: ['3.2', '4.2', '5.0', 'main']
steps:
- uses: actions/checkout@v4

Expand Down
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
PY_DEFAULT = PY38

DJ32 = "3.2"
DJ41 = "4.1"
DJ42 = "4.2"
DJ50 = "5.0"
DJMAIN = "main"
DJMAIN_MIN_PY = PY310
DJ_VERSIONS = [DJ32, DJ41, DJ42, DJMAIN]
DJ_VERSIONS = [DJ32, DJ42, DJ50, DJMAIN]
DJ_DEFAULT = DJ32


Expand All @@ -29,7 +29,7 @@ def version(ver: str) -> tuple[int, ...]:

def should_skip(python: str, django: str) -> tuple[bool, str | None]:
"""Return True if the test should be skipped"""
if django == DJMAIN and version(python) < version(DJMAIN_MIN_PY):
if django in [DJ50, DJMAIN] and version(python) < version(DJMAIN_MIN_PY):
return True, f"Django {DJMAIN} requires Python {DJMAIN_MIN_PY}+"

if django == DJ32 and version(python) >= version(PY312):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ classifiers = [
"Framework :: Django :: 3",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
Expand Down

0 comments on commit a05d40c

Please sign in to comment.