plain.dev 0.34.0__py3-none-any.whl → 0.35.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 CHANGED
@@ -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
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,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")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.dev
3
- Version: 0.34.0
3
+ Version: 0.35.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
@@ -1,8 +1,8 @@
1
- plain/dev/CHANGELOG.md,sha256=tb4We1K2KXSrRQHZ9mCmFRwLCQunthjtWPwXTq-bk0Y,4805
1
+ plain/dev/CHANGELOG.md,sha256=JPQlka54-BjZxm-wd25i2BHgrL5YhgCthsPHYyPHDd0,5154
2
2
  plain/dev/README.md,sha256=NnrH4weWiqrgL1ZUYcMTWqLX29uRBjy3n8HxLcIp4do,4809
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=9eNbsndg3Q-UfqeWd2PvxVyH1dZZtnklibebMDpIv-I,12094
5
+ plain/dev/core.py,sha256=Tl4AoDNXFcKHVgIjXtDXoWsZPx-NLRaO62VlO9Sypw8,11454
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
@@ -23,8 +23,8 @@ plain/dev/poncho/printer.py,sha256=1LhaQx55ujxmo-SSwQtzsh0bO6HL5q2_kiA0jLWEB-o,2
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
25
  plain/dev/precommit/cli.py,sha256=ax_2cUpYfOhh6iZirhZS5cX0jy6rTfJAWzwm1qeRm58,3176
26
- plain_dev-0.34.0.dist-info/METADATA,sha256=SmY9hcSiKjWDwnL7Bcp0prYntPWgZ8V-4wsiHNN4zdY,5311
27
- plain_dev-0.34.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
- plain_dev-0.34.0.dist-info/entry_points.txt,sha256=zrcTOiFk_MLKsnYVlwVP7aMm1XLEqq7w4EBkJ-3ge-g,114
29
- plain_dev-0.34.0.dist-info/licenses/LICENSE,sha256=Cx4Dq9yR2fLHthf8Ke36B8QJvE1bZFXVzDIGE8wGzsY,4132
30
- plain_dev-0.34.0.dist-info/RECORD,,
26
+ plain_dev-0.35.0.dist-info/METADATA,sha256=hXFxAyVl32djNpW29tHsSRLoKYL7PQCxVZKEVZF3eCs,5311
27
+ plain_dev-0.35.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
+ plain_dev-0.35.0.dist-info/entry_points.txt,sha256=zrcTOiFk_MLKsnYVlwVP7aMm1XLEqq7w4EBkJ-3ge-g,114
29
+ plain_dev-0.35.0.dist-info/licenses/LICENSE,sha256=Cx4Dq9yR2fLHthf8Ke36B8QJvE1bZFXVzDIGE8wGzsY,4132
30
+ plain_dev-0.35.0.dist-info/RECORD,,