plain.dev 0.19.0__py3-none-any.whl → 0.19.2__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/cli.py CHANGED
@@ -58,7 +58,15 @@ def cli(ctx, port, hostname, log_level):
58
58
  return
59
59
 
60
60
  if not hostname:
61
- project_name = os.path.basename(os.getcwd())
61
+ project_name = os.path.basename(
62
+ os.getcwd()
63
+ ) # Use the directory name by default
64
+
65
+ if has_pyproject_toml(APP_PATH.parent):
66
+ with open(Path(APP_PATH.parent, "pyproject.toml"), "rb") as f:
67
+ pyproject = tomllib.load(f)
68
+ project_name = pyproject.get("project", {}).get("name", project_name)
69
+
62
70
  hostname = f"{project_name}.localhost"
63
71
 
64
72
  returncode = Dev(port=port, hostname=hostname, log_level=log_level).run()
@@ -96,8 +96,7 @@ def plain_db_connected():
96
96
  [
97
97
  "plain",
98
98
  "models",
99
- "showmigrations",
100
- "--skip-checks",
99
+ "show-migrations",
101
100
  ],
102
101
  stdout=subprocess.DEVNULL,
103
102
  stderr=subprocess.DEVNULL,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.dev
3
- Version: 0.19.0
3
+ Version: 0.19.2
4
4
  Summary: Local development tools for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -1,6 +1,6 @@
1
1
  plain/dev/README.md,sha256=-yR4qzwEP7vDVvCAHJ22aaQHQ7rXVW9uy0KEZjCzmz4,3662
2
2
  plain/dev/__init__.py,sha256=nRX1B0Br8gmqhJLqo5Z9PqzReDahBtbmwH6C-7hzuls,103
3
- plain/dev/cli.py,sha256=eGIIm93zXCyR9JQ-NyRAT1TcN9DD6atpKqFPlBRMXmo,12612
3
+ plain/dev/cli.py,sha256=4QYJuADGccwAZl0e_jSGO70NPabtiTB43IFXb2hNi30,12926
4
4
  plain/dev/debug.py,sha256=Ka84K8zUdF0kMYNyqiLYDrdzU1jU8LSOkts3hcw_Gok,1005
5
5
  plain/dev/default_settings.py,sha256=uXWYORWP_aRDwXIFXdu5kHyiBFUZzARIJdhPeFaX35c,75
6
6
  plain/dev/entrypoints.py,sha256=TCjX9aCLQag_0UjWE6PU5MnuaNWHAqsZQh7opSjr8zM,386
@@ -25,10 +25,10 @@ plain/dev/poncho/manager.py,sha256=xT8ur72ZaVrWYWtg5FnBSiZsENWKUHP7eG_A_ZUP-40,6
25
25
  plain/dev/poncho/printer.py,sha256=wt1ioaGcPnVyrPy-UjvdsR9zfcr4DTTycmapW1MIdSU,1785
26
26
  plain/dev/poncho/process.py,sha256=JJOKy-C6vMCg7-6JMCtu6C649h7HmOBSJqDP_hnX49I,2637
27
27
  plain/dev/precommit/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
28
- plain/dev/precommit/cli.py,sha256=D_A5Mk2eXqjJDSUE6qyCFFddhM7wBZR3C9hgkDRx_v8,3411
28
+ plain/dev/precommit/cli.py,sha256=divzCT1LY_aH89nJuzdFqFHhyA4R7jEcV_R6uZsu4bo,3383
29
29
  plain/dev/templates/dev/requests.html,sha256=kQKJZq5L77juuL_t8UjcAehEU61U4RXNnKaAET-wAm8,7627
30
- plain_dev-0.19.0.dist-info/METADATA,sha256=9bExR2_lW3vQAzbT16_aQo5at8PMxcWZG9aCyWLm_Sg,4244
31
- plain_dev-0.19.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
- plain_dev-0.19.0.dist-info/entry_points.txt,sha256=u3RYQlK2jhQvM0yi40D-oV-x2Hot6Ygw07MZ6QQg_28,159
33
- plain_dev-0.19.0.dist-info/licenses/LICENSE,sha256=Cx4Dq9yR2fLHthf8Ke36B8QJvE1bZFXVzDIGE8wGzsY,4132
34
- plain_dev-0.19.0.dist-info/RECORD,,
30
+ plain_dev-0.19.2.dist-info/METADATA,sha256=QCcnxdO7IBSw7yuGVpbTjhyXl_IJ2gM9YC4feFMogZA,4244
31
+ plain_dev-0.19.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
32
+ plain_dev-0.19.2.dist-info/entry_points.txt,sha256=u3RYQlK2jhQvM0yi40D-oV-x2Hot6Ygw07MZ6QQg_28,159
33
+ plain_dev-0.19.2.dist-info/licenses/LICENSE,sha256=Cx4Dq9yR2fLHthf8Ke36B8QJvE1bZFXVzDIGE8wGzsY,4132
34
+ plain_dev-0.19.2.dist-info/RECORD,,