plain.dev 0.34.0__tar.gz → 0.35.0__tar.gz
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-0.34.0 → plain_dev-0.35.0}/PKG-INFO +1 -1
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/CHANGELOG.md +10 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/core.py +0 -15
- {plain_dev-0.34.0 → plain_dev-0.35.0}/pyproject.toml +1 -1
- {plain_dev-0.34.0 → plain_dev-0.35.0}/.gitignore +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/LICENSE +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/README.md +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/README.md +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/__init__.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/cli.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/contribute/README.md +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/contribute/__init__.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/contribute/cli.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/debug.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/default_settings.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/entrypoints.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/gunicorn_logging.json +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/mkcert.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/pdb.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/poncho/__init__.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/poncho/color.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/poncho/compat.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/poncho/manager.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/poncho/printer.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/poncho/process.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/precommit/__init__.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/precommit/cli.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/process.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/services.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/plain/dev/utils.py +0 -0
- {plain_dev-0.34.0 → plain_dev-0.35.0}/tests/settings.py +0 -0
@@ -1,5 +1,15 @@
|
|
1
1
|
# plain-dev changelog
|
2
2
|
|
3
|
+
## [0.35.0](https://github.com/dropseed/plain/releases/plain-dev@0.35.0) (2025-09-22)
|
4
|
+
|
5
|
+
### What's changed
|
6
|
+
|
7
|
+
- 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))
|
8
|
+
|
9
|
+
### Upgrade instructions
|
10
|
+
|
11
|
+
- No changes required
|
12
|
+
|
3
13
|
## [0.34.0](https://github.com/dropseed/plain/releases/plain-dev@0.34.0) (2025-09-19)
|
4
14
|
|
5
15
|
### What's 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,19 +259,6 @@ 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
263
|
if subprocess.run(["plain", "preflight"], env=self.plain_env).returncode:
|
279
264
|
click.secho("Preflight check failed!", fg="red")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|