Skip to content

Commit 171e7f1

Browse files
add support for Django 5.0 & remove 4.1 (#122)
1 parent 45d9f8f commit 171e7f1

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
24-
django-version: ['3.2', '4.1', '4.2', 'main']
24+
django-version: ['3.2', '4.2', '5.0', 'main']
2525
steps:
2626
- uses: actions/checkout@v4
2727

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Support for Django 5.0.
13+
14+
### Removed
15+
16+
- Support for Django 4.1.
17+
1018
## [0.2.1]
1119

1220
### Fixed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
[![PyPI](https://img.shields.io/pypi/v/django-email-relay)](https://pypi.org/project/django-email-relay/)
55
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-email-relay)
6-
![Django Version](https://img.shields.io/badge/django-3.2%20%7C%204.1%20%7C%204.2-%2344B78B?labelColor=%23092E20)
6+
![Django Version](https://img.shields.io/badge/django-3.2%20%7C%204.2%20%7C%205.0-%2344B78B?labelColor=%23092E20)
77
<!-- https://shields.io/badges -->
8-
<!-- django-3.2 | 4.1 | 4.2-#44B78B -->
8+
<!-- django-3.2 | 4.2 | 5.0-#44B78B -->
99
<!-- labelColor=%23092E20 -->
1010

1111
`django-email-relay` enables Django projects without direct access to a preferred SMTP server to use that server for email dispatch.

docs/installation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ django-app
1111
## Requirements
1212

1313
- Python 3.8, 3.9, 3.10, 3.11, or 3.12
14-
- Django 3.2, 4.1, or 4.2
14+
- Django 3.2, 4.2, or 5.0
1515
- PostgreSQL (for provided Docker image)

noxfile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
PY_DEFAULT = PY38
1515

1616
DJ32 = "3.2"
17-
DJ41 = "4.1"
1817
DJ42 = "4.2"
18+
DJ50 = "5.0"
1919
DJMAIN = "main"
2020
DJMAIN_MIN_PY = PY310
21-
DJ_VERSIONS = [DJ32, DJ41, DJ42, DJMAIN]
21+
DJ_VERSIONS = [DJ32, DJ42, DJ50, DJMAIN]
2222
DJ_DEFAULT = DJ32
2323

2424

@@ -35,6 +35,9 @@ def should_skip(python: str, django: str) -> tuple[bool, str | None]:
3535
if django == DJ32 and version(python) >= version(PY312):
3636
return True, f"Django {DJ32} requires Python < {PY312}"
3737

38+
if django == DJ50 and version(python) < version(PY310):
39+
return True, f"Django {DJ50} requires Python {PY310}+"
40+
3841
return False, None
3942

4043

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ classifiers = [
1212
"Framework :: Django :: 3",
1313
"Framework :: Django :: 3.2",
1414
"Framework :: Django :: 4",
15-
"Framework :: Django :: 4.1",
1615
"Framework :: Django :: 4.2",
16+
"Framework :: Django :: 5.0",
1717
"License :: OSI Approved :: MIT License",
1818
"Operating System :: OS Independent",
1919
"Programming Language :: Python",

0 commit comments

Comments
 (0)