plain.dev 0.32.1__py3-none-any.whl → 0.33.1__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 CHANGED
@@ -1,5 +1,31 @@
1
1
  # plain-dev changelog
2
2
 
3
+ ## [0.33.1](https://github.com/dropseed/plain/releases/plain-dev@0.33.1) (2025-07-18)
4
+
5
+ ### What's changed
6
+
7
+ - Dev services are no longer automatically started when running in CI environments unless explicitly enabled with `PLAIN_DEV_SERVICES_AUTO=true` ([b8452bae74](https://github.com/dropseed/plain/commit/b8452bae74))
8
+ - The `plain dev logs` command now skips automatic service startup to avoid conflicts ([ff65428bca](https://github.com/dropseed/plain/commit/ff65428bca))
9
+
10
+ ### Upgrade instructions
11
+
12
+ - No changes required
13
+
14
+ ## [0.33.0](https://github.com/dropseed/plain/releases/plain-dev@0.33.0) (2025-07-18)
15
+
16
+ ### What's changed
17
+
18
+ - 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)).
19
+ - 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)).
20
+ - 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)).
21
+ - 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)).
22
+ - Improved CLI error handling by using `click.UsageError` instead of manual error printing and `sys.exit()` ([88f06c5184](https://github.com/dropseed/plain/commit/88f06c5184)).
23
+ - 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)).
24
+
25
+ ### Upgrade instructions
26
+
27
+ - No changes required
28
+
3
29
  ## [0.32.1](https://github.com/dropseed/plain/releases/plain-dev@0.32.1) (2025-06-27)
4
30
 
5
31
  ### 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