Skip to content

Commit 86b6a6c

Browse files
committed
Update Python & Django version support
* Add Python 3.14 * Add Django 6.0 * Drop Django 5.1 (EoL)
1 parent e8d0630 commit 86b6a6c

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,16 @@ jobs:
4141
- "3.11"
4242
- "3.12"
4343
- "3.13"
44+
- "3.14"
4445
django-version:
45-
- "4.2.0"
46-
- "5.1.0"
47-
- "5.2.0"
46+
- "4.2"
47+
- "5.2"
48+
- "6.0"
49+
exclude:
50+
- python-version: "3.10"
51+
django-version: "6.0"
52+
- python-version: "3.11"
53+
django-version: "6.0"
4854
steps:
4955
- uses: actions/checkout@v6
5056
- uses: actions/setup-python@v6

mailauth/contrib/user/models.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ def anonymize(self, commit=True):
105105
return update_fields
106106

107107

108-
delattr(AbstractEmailUser, "password")
109-
110-
111108
class EmailUser(AbstractEmailUser):
112109
class Meta(AbstractEmailUser.Meta):
113110
swappable = "AUTH_USER_MODEL"

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ classifiers = [
2828
"Programming Language :: Python :: 3.11",
2929
"Programming Language :: Python :: 3.12",
3030
"Programming Language :: Python :: 3.13",
31+
"Programming Language :: Python :: 3.14",
3132
"Programming Language :: Python :: 3 :: Only",
3233
"Framework :: Django",
3334
"Framework :: Django :: 4.2",
34-
"Framework :: Django :: 5.1",
3535
"Framework :: Django :: 5.2",
36+
"Framework :: Django :: 6.0",
3637
"Framework :: Wagtail",
3738
"Framework :: Wagtail :: 6",
3839
"Framework :: Wagtail :: 7",

tests/contrib/auth/test_models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import pytest
2-
from django.core.exceptions import FieldDoesNotExist
32

43
from mailauth.contrib.user.models import EmailUser
54

@@ -30,8 +29,7 @@ def test_get_session_auth_hash__unique(self, db):
3029

3130
def test_password_field(self):
3231
user = EmailUser(email="spiderman@avengers.com")
33-
with pytest.raises(FieldDoesNotExist):
34-
assert user.password
32+
assert user.password is None
3533

3634

3735
class TestEmailUserManager:

0 commit comments

Comments
 (0)