plain.dev 0.19.1__py3-none-any.whl → 0.19.3__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 +9 -1
- plain/dev/contribute/README.md +5 -0
- {plain_dev-0.19.1.dist-info → plain_dev-0.19.3.dist-info}/METADATA +1 -3
- {plain_dev-0.19.1.dist-info → plain_dev-0.19.3.dist-info}/RECORD +7 -6
- {plain_dev-0.19.1.dist-info → plain_dev-0.19.3.dist-info}/entry_points.txt +3 -0
- {plain_dev-0.19.1.dist-info → plain_dev-0.19.3.dist-info}/WHEEL +0 -0
- {plain_dev-0.19.1.dist-info → plain_dev-0.19.3.dist-info}/licenses/LICENSE +0 -0
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(
|
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()
|
@@ -0,0 +1,5 @@
|
|
1
|
+
## FAQs
|
2
|
+
|
3
|
+
### What if the plain cli isn't working?
|
4
|
+
|
5
|
+
When working on packages locally you can sometimes end up in a weird state where Plain can't load. The `plain contrib` command is also available as `plain-contrib`, which won't go through any of the setup processes for Plain, so you can always run that directly if you need to.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: plain.dev
|
3
|
-
Version: 0.19.
|
3
|
+
Version: 0.19.3
|
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
|
@@ -15,8 +15,6 @@ Requires-Dist: requests>=2.0.0
|
|
15
15
|
Requires-Dist: rich
|
16
16
|
Description-Content-Type: text/markdown
|
17
17
|
|
18
|
-
<!-- This file is compiled from plain-dev/plain/dev/README.md. Do not edit this file directly. -->
|
19
|
-
|
20
18
|
# plain.dev
|
21
19
|
|
22
20
|
A single command that runs everything you need for local development.
|
@@ -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=
|
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
|
@@ -13,6 +13,7 @@ plain/dev/services.py,sha256=26WnVNjNAh37BA-wHQSGQY_9Ofw8oGgJdHhxnFaSKkg,2059
|
|
13
13
|
plain/dev/urls.py,sha256=b4NL2I6Ok-t7nTPjRnKoz_LQRttE3_mp8l2NlmeYQ9I,146
|
14
14
|
plain/dev/utils.py,sha256=4wMzpvj1Is_c0QxhsTu34_P9wAYlzw4glNPfVtZr_0A,123
|
15
15
|
plain/dev/views.py,sha256=r2Ivk7OXytpRhXq4DZpsb7FXNP9vzmEE3D5kLajYG4w,1073
|
16
|
+
plain/dev/contribute/README.md,sha256=v9Ympugu2wvDEe_045WJnF1dmC4ZH7v_Bnxkpfaf_rM,329
|
16
17
|
plain/dev/contribute/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
17
18
|
plain/dev/contribute/cli.py,sha256=mIK4u1rhee8iMovUpuHTNjfWolqNgS24_gTb8ZaSY-8,2432
|
18
19
|
plain/dev/db/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
@@ -27,8 +28,8 @@ plain/dev/poncho/process.py,sha256=JJOKy-C6vMCg7-6JMCtu6C649h7HmOBSJqDP_hnX49I,2
|
|
27
28
|
plain/dev/precommit/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
28
29
|
plain/dev/precommit/cli.py,sha256=divzCT1LY_aH89nJuzdFqFHhyA4R7jEcV_R6uZsu4bo,3383
|
29
30
|
plain/dev/templates/dev/requests.html,sha256=kQKJZq5L77juuL_t8UjcAehEU61U4RXNnKaAET-wAm8,7627
|
30
|
-
plain_dev-0.19.
|
31
|
-
plain_dev-0.19.
|
32
|
-
plain_dev-0.19.
|
33
|
-
plain_dev-0.19.
|
34
|
-
plain_dev-0.19.
|
31
|
+
plain_dev-0.19.3.dist-info/METADATA,sha256=PwT2uIZ7JCp60bgoFg6DTQ2vvNTsrlOCh9BedkLUzEA,4144
|
32
|
+
plain_dev-0.19.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
33
|
+
plain_dev-0.19.3.dist-info/entry_points.txt,sha256=UtjUbxI-2TMZJGCfRTeU-YGr48XLwnc_pMuzDGD9uTg,219
|
34
|
+
plain_dev-0.19.3.dist-info/licenses/LICENSE,sha256=Cx4Dq9yR2fLHthf8Ke36B8QJvE1bZFXVzDIGE8wGzsY,4132
|
35
|
+
plain_dev-0.19.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|