Skip to content

Commit 720820c

Browse files
committed
Rename plain.mail to plain.email
1 parent 8fb38a4 commit 720820c

File tree

24 files changed

+20
-51
lines changed

24 files changed

+20
-51
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ With the official Plain ecosystem packages you can:
2424
- Use a built-in [user authentication](https://plainframework.com/docs/plain-auth/) system
2525
- [Lint and format code](https://plainframework.com/docs/plain-code/)
2626
- Run a [database-backed cache](https://plainframework.com/docs/plain-cache/)
27-
- [Send emails](https://plainframework.com/docs/plain-mail/)
27+
- [Send emails](https://plainframework.com/docs/plain-email/)
2828
- Streamline [local development](https://plainframework.com/docs/plain-dev/)
2929
- Manage [feature flags](https://plainframework.com/docs/plain-flags/)
3030
- Integrate [HTMX](https://plainframework.com/docs/plain-htmx/)
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# plain.mail
1+
# plain.email
22

33
Everything you need to send email.
44

55
## Installation
66

7-
Add `plain.mail` to your `INSTALLED_APPS`:
7+
Add `plain.email` to your `INSTALLED_APPS`:
88

99
```python
1010
# settings.py
1111
INSTALLED_APPS = [
1212
# ...
13-
'plain.mail',
13+
'plain.email',
1414
]
1515
```

plain-mail/plain/mail/default_settings.py renamed to plain-email/plain/email/default_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# The email backend to use. For possible shortcuts see plain.mail.
1+
# The email backend to use. For possible shortcuts see plain.email.
22
# The default is to use the SMTP backend.
33
# Third-party backends can be specified by providing a Python path
44
# to a module that defines an EmailBackend class.
File renamed without changes.
File renamed without changes.

plain-mail/pyproject.toml renamed to plain-email/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "plain.mail"
2+
name = "plain.email"
33
version = "0.7.0"
44
description = "Email sending for Plain."
55
authors = [{name = "Dave Gaeddert", email = "[email protected]"}]

plain-loginlink/plain/loginlink/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from plain import forms
22
from plain.auth import get_user_model
3-
from plain.mail import TemplateEmail
3+
from plain.email import TemplateEmail
44

55
from .links import generate_link_url
66

plain-loginlink/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readme = "README.md"
77
requires-python = ">=3.11"
88
dependencies = [
99
"plain<1.0.0",
10-
"plain-mail<1.0.0",
10+
"plain-email<1.0.0",
1111
]
1212

1313
[tool.hatch.build.targets.wheel]

plain-mail/plain/mail/backends/testing.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

plain-passwords/plain/passwords/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ urlpatterns = [
1919

2020
This sets up a basic login view where users can authenticate using their username and password.
2121

22-
For password resets to work, you also need to install [plain.mail](/plain-mail/README.md).
22+
For password resets to work, you also need to install [plain.email](/plain-email/README.md).
2323

2424
## FAQs
2525

plain-passwords/plain/passwords/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def send_mail(
2121
from_email,
2222
to_email,
2323
):
24-
from plain.mail import TemplateEmail
24+
from plain.email import TemplateEmail
2525

2626
email = TemplateEmail(
2727
template=template_name,

plain-support/plain/support/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from plain.auth import get_user_model
2-
from plain.mail import TemplateEmail
2+
from plain.email import TemplateEmail
33
from plain.models.forms import ModelForm
44
from plain.runtime import settings
55

plain-worker/plain/worker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Process background jobs with a database-driven worker.
44

55
```python
66
from plain.worker import Job
7-
from plain.mail import send_mail
7+
from plain.email import send_mail
88

99
# Create a new job class
1010
class WelcomeUserJob(Job):

plain/plain/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The `plain` package includes everything you need to start handling web requests
2929

3030
- [plain.models](/plain-models/README.md) - Define and interact with your database models.
3131
- [plain.cache](/plain-cache/README.md) - A database-driven general purpose cache.
32-
- [plain.mail](/plain-mail/README.md) - Send emails with SMTP or custom backends.
32+
- [plain.email](/plain-email/README.md) - Send emails with SMTP or custom backends.
3333
- [plain.sessions](/plain-sessions/README.md) - User sessions and cookies.
3434
- [plain.worker](/plain-worker/README.md) - Backgrounb jobs stored in the database.
3535
- [plain.api](/plain-api/README.md) - Build APIs with Plain views.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ requires-python = ">=3.11"
1717
"plain-htmx" = { workspace = true }
1818
"plain-importmap" = { workspace = true }
1919
"plain-loginlink" = { workspace = true }
20-
"plain-mail" = { workspace = true }
20+
"plain-email" = { workspace = true }
2121
"plain-models" = { workspace = true }
2222
"plain-oauth" = { workspace = true }
2323
"plain-pages" = { workspace = true }
@@ -47,7 +47,7 @@ members = [
4747
"plain-htmx",
4848
"plain-importmap",
4949
"plain-loginlink",
50-
"plain-mail",
50+
"plain-email",
5151
"plain-models",
5252
"plain-oauth",
5353
"plain-pages",

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)