plain.dev 0.34.0__py3-none-any.whl → 0.36.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plain/dev/CHANGELOG.md +21 -0
- plain/dev/README.md +2 -2
- plain/dev/core.py +3 -16
- plain/dev/precommit/cli.py +9 -2
- {plain_dev-0.34.0.dist-info → plain_dev-0.36.0.dist-info}/METADATA +3 -3
- {plain_dev-0.34.0.dist-info → plain_dev-0.36.0.dist-info}/RECORD +9 -9
- {plain_dev-0.34.0.dist-info → plain_dev-0.36.0.dist-info}/WHEEL +0 -0
- {plain_dev-0.34.0.dist-info → plain_dev-0.36.0.dist-info}/entry_points.txt +0 -0
- {plain_dev-0.34.0.dist-info → plain_dev-0.36.0.dist-info}/licenses/LICENSE +0 -0
plain/dev/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# plain-dev changelog
|
2
2
|
|
3
|
+
## [0.36.0](https://github.com/dropseed/plain/releases/plain-dev@0.36.0) (2025-09-25)
|
4
|
+
|
5
|
+
### What's changed
|
6
|
+
|
7
|
+
- The `plain preflight` command has been updated to use `plain preflight check` with a `--quiet` flag for cleaner output in development workflows ([b0b610d](https://github.com/dropseed/plain/commit/b0b610d461))
|
8
|
+
- Pre-commit hooks now use the updated preflight check syntax ([b0b610d](https://github.com/dropseed/plain/commit/b0b610d461))
|
9
|
+
|
10
|
+
### Upgrade instructions
|
11
|
+
|
12
|
+
- No changes required
|
13
|
+
|
14
|
+
## [0.35.0](https://github.com/dropseed/plain/releases/plain-dev@0.35.0) (2025-09-22)
|
15
|
+
|
16
|
+
### What's changed
|
17
|
+
|
18
|
+
- Removed automatic `PLAIN_ALLOWED_HOSTS` configuration from the dev server as this is now handled by the core Plain framework ([d3cb771](https://github.com/dropseed/plain/commit/d3cb7712b9))
|
19
|
+
|
20
|
+
### Upgrade instructions
|
21
|
+
|
22
|
+
- No changes required
|
23
|
+
|
3
24
|
## [0.34.0](https://github.com/dropseed/plain/releases/plain-dev@0.34.0) (2025-09-19)
|
4
25
|
|
5
26
|
### What's changed
|
plain/dev/README.md
CHANGED
@@ -39,7 +39,7 @@ This will:
|
|
39
39
|
The `plain dev` command does several things:
|
40
40
|
|
41
41
|
- Sets `PLAIN_CSRF_TRUSTED_ORIGINS` to localhost by default
|
42
|
-
- Runs `plain preflight` to check for any issues
|
42
|
+
- Runs `plain preflight check` to check for any issues
|
43
43
|
- Executes any pending model migrations
|
44
44
|
- Starts `gunicorn` with `--reload`
|
45
45
|
- Serves HTTPS on port 8443 by default (uses the next free port if 8443 is taken and no port is specified)
|
@@ -96,7 +96,7 @@ Runs:
|
|
96
96
|
- Custom commands defined in `pyproject.toml` at `tool.plain.pre-commit.run`
|
97
97
|
- `plain code check`, if [`plain.code`](https://plainframework.com/docs/plain-code/plain/code/) is installed
|
98
98
|
- `uv lock --locked`, if using uv
|
99
|
-
- `plain preflight
|
99
|
+
- `plain preflight check`
|
100
100
|
- `plain migrate --check`
|
101
101
|
- `plain makemigrations --dry-run --check`
|
102
102
|
- `plain build`
|
plain/dev/core.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
import json
|
2
1
|
import os
|
3
2
|
import platform
|
4
3
|
import socket
|
@@ -136,7 +135,6 @@ class DevProcess(ProcessManager):
|
|
136
135
|
|
137
136
|
self.symlink_plain_src()
|
138
137
|
self.modify_hosts_file()
|
139
|
-
self.set_allowed_hosts()
|
140
138
|
|
141
139
|
click.secho("→ Running preflight checks... ", dim=True, nl=False)
|
142
140
|
self.run_preflight()
|
@@ -261,21 +259,10 @@ class DevProcess(ProcessManager):
|
|
261
259
|
)
|
262
260
|
sys.exit(1)
|
263
261
|
|
264
|
-
def set_allowed_hosts(self):
|
265
|
-
if "PLAIN_ALLOWED_HOSTS" not in os.environ:
|
266
|
-
hostnames = [self.hostname]
|
267
|
-
if self.tunnel_url:
|
268
|
-
# Add the tunnel URL to the allowed hosts
|
269
|
-
hostnames.append(self.tunnel_url.split("://")[1])
|
270
|
-
allowed_hosts = json.dumps(hostnames)
|
271
|
-
self.plain_env["PLAIN_ALLOWED_HOSTS"] = allowed_hosts
|
272
|
-
self.custom_process_env["PLAIN_ALLOWED_HOSTS"] = allowed_hosts
|
273
|
-
click.secho(
|
274
|
-
f"Automatically set PLAIN_ALLOWED_HOSTS={allowed_hosts}", dim=True
|
275
|
-
)
|
276
|
-
|
277
262
|
def run_preflight(self):
|
278
|
-
if subprocess.run(
|
263
|
+
if subprocess.run(
|
264
|
+
["plain", "preflight", "check", "--quiet"], env=self.plain_env
|
265
|
+
).returncode:
|
279
266
|
click.secho("Preflight check failed!", fg="red")
|
280
267
|
sys.exit(1)
|
281
268
|
|
plain/dev/precommit/cli.py
CHANGED
@@ -63,7 +63,8 @@ def cli(install):
|
|
63
63
|
"Running preflight checks",
|
64
64
|
"plain",
|
65
65
|
"preflight",
|
66
|
-
"
|
66
|
+
"check",
|
67
|
+
"--quiet",
|
67
68
|
)
|
68
69
|
check_short("Checking Plain migrations", "plain", "migrate", "--check")
|
69
70
|
check_short(
|
@@ -74,7 +75,13 @@ def cli(install):
|
|
74
75
|
"--check",
|
75
76
|
)
|
76
77
|
else:
|
77
|
-
check_short(
|
78
|
+
check_short(
|
79
|
+
"Running Plain checks (without database)",
|
80
|
+
"plain",
|
81
|
+
"preflight",
|
82
|
+
"check",
|
83
|
+
"--quiet",
|
84
|
+
)
|
78
85
|
click.secho("--> Skipping migration checks", bold=True, fg="yellow")
|
79
86
|
|
80
87
|
print_event("Running plain build")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: plain.dev
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.36.0
|
4
4
|
Summary: A single command that runs everything you need for local development.
|
5
5
|
Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
|
6
6
|
License-Expression: BSD-3-Clause
|
@@ -56,7 +56,7 @@ This will:
|
|
56
56
|
The `plain dev` command does several things:
|
57
57
|
|
58
58
|
- Sets `PLAIN_CSRF_TRUSTED_ORIGINS` to localhost by default
|
59
|
-
- Runs `plain preflight` to check for any issues
|
59
|
+
- Runs `plain preflight check` to check for any issues
|
60
60
|
- Executes any pending model migrations
|
61
61
|
- Starts `gunicorn` with `--reload`
|
62
62
|
- Serves HTTPS on port 8443 by default (uses the next free port if 8443 is taken and no port is specified)
|
@@ -113,7 +113,7 @@ Runs:
|
|
113
113
|
- Custom commands defined in `pyproject.toml` at `tool.plain.pre-commit.run`
|
114
114
|
- `plain code check`, if [`plain.code`](https://plainframework.com/docs/plain-code/plain/code/) is installed
|
115
115
|
- `uv lock --locked`, if using uv
|
116
|
-
- `plain preflight
|
116
|
+
- `plain preflight check`
|
117
117
|
- `plain migrate --check`
|
118
118
|
- `plain makemigrations --dry-run --check`
|
119
119
|
- `plain build`
|
@@ -1,8 +1,8 @@
|
|
1
|
-
plain/dev/CHANGELOG.md,sha256=
|
2
|
-
plain/dev/README.md,sha256=
|
1
|
+
plain/dev/CHANGELOG.md,sha256=dggY6J2WbzUHeTsf-LG9qdCeTI1gRLjjlxVFhe3vKvU,5649
|
2
|
+
plain/dev/README.md,sha256=wsDVPGfvVG1k3CTf-SsGnzvHukhKrwRMgThYHMpdXSc,4802
|
3
3
|
plain/dev/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
4
4
|
plain/dev/cli.py,sha256=l2h0C1TZuHUweCYhfsJBC3nx6BmwaREFQVaJLlcltro,8392
|
5
|
-
plain/dev/core.py,sha256=
|
5
|
+
plain/dev/core.py,sha256=OX5tUez2ac2q3ha9ylgU5y44USJc9mkn11J6o5AozXk,11496
|
6
6
|
plain/dev/debug.py,sha256=Ka84K8zUdF0kMYNyqiLYDrdzU1jU8LSOkts3hcw_Gok,1005
|
7
7
|
plain/dev/default_settings.py,sha256=uXWYORWP_aRDwXIFXdu5kHyiBFUZzARIJdhPeFaX35c,75
|
8
8
|
plain/dev/entrypoints.py,sha256=diqNwA6eydUMtoO7p_rH-DtSYsw5-GBmjFe1Z5bHagc,579
|
@@ -22,9 +22,9 @@ plain/dev/poncho/manager.py,sha256=l0tcVslJ0snEiNPn4Pgphti_aIFKp1yfRx6Cng1F55w,6
|
|
22
22
|
plain/dev/poncho/printer.py,sha256=1LhaQx55ujxmo-SSwQtzsh0bO6HL5q2_kiA0jLWEB-o,2976
|
23
23
|
plain/dev/poncho/process.py,sha256=JJOKy-C6vMCg7-6JMCtu6C649h7HmOBSJqDP_hnX49I,2637
|
24
24
|
plain/dev/precommit/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
25
|
-
plain/dev/precommit/cli.py,sha256=
|
26
|
-
plain_dev-0.
|
27
|
-
plain_dev-0.
|
28
|
-
plain_dev-0.
|
29
|
-
plain_dev-0.
|
30
|
-
plain_dev-0.
|
25
|
+
plain/dev/precommit/cli.py,sha256=eAqe7rQGKJRbsICLrAabvNtRyTmWHkRo8XDo7I1DTkc,3285
|
26
|
+
plain_dev-0.36.0.dist-info/METADATA,sha256=ueO1OEd5-Z_ax1XtL3n5EIAa-HdVbxtgYF7ipXkJd9I,5304
|
27
|
+
plain_dev-0.36.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
28
|
+
plain_dev-0.36.0.dist-info/entry_points.txt,sha256=zrcTOiFk_MLKsnYVlwVP7aMm1XLEqq7w4EBkJ-3ge-g,114
|
29
|
+
plain_dev-0.36.0.dist-info/licenses/LICENSE,sha256=Cx4Dq9yR2fLHthf8Ke36B8QJvE1bZFXVzDIGE8wGzsY,4132
|
30
|
+
plain_dev-0.36.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|