Skip to content

Commit

Permalink
add Django 3.2 back
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadavidthomas committed Dec 12, 2023
1 parent 7419c79 commit df3c6b8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 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: ['4.2', '5.0b1', 'main']
django-version: ['3.2', '4.2', '5.0', 'main']
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/

### Removed

- Support for Django 3.2, 4.0, and 4.1.
- Support for Django 4.0 and 4.1.

## [0.2.1]

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

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

`django-email-relay` enables Django projects without direct access to a preferred SMTP server to use that server for email dispatch.
Expand Down
2 changes: 1 addition & 1 deletion docs/installation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ django-app
## Requirements

- Python 3.8, 3.9, 3.10, 3.11, or 3.12
- Django 4.2 or 5.0
- Django 3.2, 4.2, or 5.0
- PostgreSQL (for provided Docker image)
10 changes: 7 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
PY_VERSIONS = [PY38, PY39, PY310, PY311, PY312]
PY_DEFAULT = PY38

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


def version(ver: str) -> tuple[int, ...]:
Expand All @@ -31,6 +32,9 @@ def should_skip(python: str, django: str) -> tuple[bool, str | None]:
if django == 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):
return True, f"Django {DJ32} requires Python < {PY312}"

if django == DJ50 and version(python) < version(PY310):
return True, f"Django {DJ50} requires Python {PY310}+"

Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ authors = [
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Django",
"Framework :: Django :: 3",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
Expand All @@ -24,7 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = ["django>=4.2"]
dependencies = ["django>=3.2"]
description = "Centralize and relay email from multiple distributed Django projects to an internal SMTP server via a database queue."
dynamic = ["version"]
keywords = []
Expand Down

0 comments on commit df3c6b8

Please sign in to comment.