plain.dev 0.32.0__py3-none-any.whl → 0.33.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 +25 -0
- plain/dev/README.md +16 -1
- plain/dev/cli.py +187 -397
- plain/dev/contribute/cli.py +1 -2
- plain/dev/core.py +346 -0
- plain/dev/poncho/printer.py +31 -1
- plain/dev/precommit/cli.py +48 -52
- plain/dev/process.py +127 -0
- plain/dev/services.py +9 -67
- {plain_dev-0.32.0.dist-info → plain_dev-0.33.0.dist-info}/METADATA +17 -3
- {plain_dev-0.32.0.dist-info → plain_dev-0.33.0.dist-info}/RECORD +14 -13
- plain/dev/dev_pid.py +0 -36
- {plain_dev-0.32.0.dist-info → plain_dev-0.33.0.dist-info}/WHEEL +0 -0
- {plain_dev-0.32.0.dist-info → plain_dev-0.33.0.dist-info}/entry_points.txt +0 -0
- {plain_dev-0.32.0.dist-info → plain_dev-0.33.0.dist-info}/licenses/LICENSE +0 -0
plain/dev/CHANGELOG.md
CHANGED
@@ -1,5 +1,30 @@
|
|
1
1
|
# plain-dev changelog
|
2
2
|
|
3
|
+
## [0.33.0](https://github.com/dropseed/plain/releases/plain-dev@0.33.0) (2025-07-18)
|
4
|
+
|
5
|
+
### What's changed
|
6
|
+
|
7
|
+
- Added automatic background startup of dev services when running `plain dev` commands. Services defined in `pyproject.toml` will now start automatically ([0a5ffc6de5](https://github.com/dropseed/plain/commit/0a5ffc6de5)).
|
8
|
+
- Added `plain dev logs` command to view output from recent `plain dev` runs. Supports options like `--follow`, `--pid`, `--path`, and `--services` to manage and view different log outputs ([0a5ffc6de5](https://github.com/dropseed/plain/commit/0a5ffc6de5)).
|
9
|
+
- Added `--start` and `--stop` flags to both `plain dev` and `plain dev services` commands for running processes in the background. Use `plain dev --start` to launch the dev server in background mode and `plain dev --stop` to terminate it ([0a5ffc6de5](https://github.com/dropseed/plain/commit/0a5ffc6de5)).
|
10
|
+
- Improved process management with better PID tracking and graceful shutdown handling for both dev server and services ([0a5ffc6de5](https://github.com/dropseed/plain/commit/0a5ffc6de5)).
|
11
|
+
- Improved CLI error handling by using `click.UsageError` instead of manual error printing and `sys.exit()` ([88f06c5184](https://github.com/dropseed/plain/commit/88f06c5184)).
|
12
|
+
- Removed `psycopg[binary]` dependency from plain-dev as database drivers should be installed separately based on project needs ([63224001c9](https://github.com/dropseed/plain/commit/63224001c9)).
|
13
|
+
|
14
|
+
### Upgrade instructions
|
15
|
+
|
16
|
+
- No changes required
|
17
|
+
|
18
|
+
## [0.32.1](https://github.com/dropseed/plain/releases/plain-dev@0.32.1) (2025-06-27)
|
19
|
+
|
20
|
+
### What's changed
|
21
|
+
|
22
|
+
- Fixed an error when running `plain dev precommit` (or the `plain precommit` helper) that passed an extra `default` argument to `plain preflight --database`. The flag now correctly aligns with the current `plain preflight` CLI ([db65930](https://github.com/dropseed/plain/commit/db659304129a453676c0dcc20c13b606254ce1c2)).
|
23
|
+
|
24
|
+
### Upgrade instructions
|
25
|
+
|
26
|
+
- No changes required.
|
27
|
+
|
3
28
|
## [0.32.0](https://github.com/dropseed/plain/releases/plain-dev@0.32.0) (2025-06-23)
|
4
29
|
|
5
30
|
### What's changed
|
plain/dev/README.md
CHANGED
@@ -8,6 +8,7 @@ The `plain.dev` package can be [installed from PyPI](https://pypi.org/project/pl
|
|
8
8
|
|
9
9
|
- [`plain dev`](#plain-dev)
|
10
10
|
- [`plain dev services`](#plain-dev-services)
|
11
|
+
- [`plain dev logs`](#plain-dev-logs)
|
11
12
|
- [`plain pre-commit`](#plain-pre-commit)
|
12
13
|
- [`plain contrib`](#plain-contrib)
|
13
14
|
- [VS Code debugging](#vscode-debugging)
|
@@ -44,12 +45,26 @@ Unlike [services](#services), custom processes are _only_ run during `plain dev`
|
|
44
45
|
```toml
|
45
46
|
# pyproject.toml
|
46
47
|
[tool.plain.dev.run]
|
47
|
-
ngrok = {command = "ngrok http $PORT"}
|
48
|
+
ngrok = {command = "ngrok http $PORT"}
|
48
49
|
```
|
49
50
|
|
50
51
|
## `plain dev services`
|
51
52
|
|
52
53
|
Starts your [services](#services) by themselves.
|
54
|
+
Logs are stored in `.plain/dev/logs/services/`.
|
55
|
+
|
56
|
+
## `plain dev logs`
|
57
|
+
|
58
|
+
Show output from recent `plain dev` runs.
|
59
|
+
|
60
|
+
Logs are stored in `.plain/dev/logs/run/`.
|
61
|
+
|
62
|
+
```bash
|
63
|
+
plain dev logs # print last log
|
64
|
+
plain dev logs -f # follow the latest log
|
65
|
+
plain dev logs --pid 1234
|
66
|
+
plain dev logs --path
|
67
|
+
```
|
53
68
|
|
54
69
|
## `plain pre-commit`
|
55
70
|
|