plain.dev 0.22.1__py3-none-any.whl → 0.23.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/cli.py +2 -0
- plain/dev/contribute/cli.py +3 -0
- plain/dev/entrypoints.py +6 -0
- plain/dev/precommit/cli.py +2 -0
- {plain_dev-0.22.1.dist-info → plain_dev-0.23.0.dist-info}/METADATA +1 -1
- {plain_dev-0.22.1.dist-info → plain_dev-0.23.0.dist-info}/RECORD +9 -9
- {plain_dev-0.22.1.dist-info → plain_dev-0.23.0.dist-info}/entry_points.txt +0 -5
- {plain_dev-0.22.1.dist-info → plain_dev-0.23.0.dist-info}/WHEEL +0 -0
- {plain_dev-0.22.1.dist-info → plain_dev-0.23.0.dist-info}/licenses/LICENSE +0 -0
plain/dev/cli.py
CHANGED
@@ -15,6 +15,7 @@ from rich.columns import Columns
|
|
15
15
|
from rich.console import Console
|
16
16
|
from rich.text import Text
|
17
17
|
|
18
|
+
from plain.cli import register_cli
|
18
19
|
from plain.runtime import APP_PATH, settings
|
19
20
|
|
20
21
|
from .mkcert import MkcertManager
|
@@ -27,6 +28,7 @@ from .utils import has_pyproject_toml
|
|
27
28
|
ENTRYPOINT_GROUP = "plain.dev"
|
28
29
|
|
29
30
|
|
31
|
+
@register_cli("dev")
|
30
32
|
@click.group(invoke_without_command=True)
|
31
33
|
@click.pass_context
|
32
34
|
@click.option(
|
plain/dev/contribute/cli.py
CHANGED
plain/dev/entrypoints.py
CHANGED
@@ -6,6 +6,12 @@ from .debug import set_breakpoint_hook
|
|
6
6
|
|
7
7
|
|
8
8
|
def setup():
|
9
|
+
# Make sure our clis are registered
|
10
|
+
# since this isn't an installed app
|
11
|
+
from .cli import cli # noqa
|
12
|
+
from .precommit import cli # noqa
|
13
|
+
from .contribute import cli # noqa
|
14
|
+
|
9
15
|
# Try to set a new breakpoint() hook
|
10
16
|
# so we can connect to pdb remotely.
|
11
17
|
set_breakpoint_hook()
|
plain/dev/precommit/cli.py
CHANGED
@@ -7,6 +7,7 @@ from pathlib import Path
|
|
7
7
|
|
8
8
|
import click
|
9
9
|
|
10
|
+
from plain.cli import register_cli
|
10
11
|
from plain.cli.print import print_event
|
11
12
|
|
12
13
|
from ..services import Services
|
@@ -26,6 +27,7 @@ plain pre-commit"""
|
|
26
27
|
print("pre-commit hook installed")
|
27
28
|
|
28
29
|
|
30
|
+
@register_cli("pre-commit")
|
29
31
|
@click.command()
|
30
32
|
@click.option("--install", is_flag=True)
|
31
33
|
def cli(install):
|
@@ -1,9 +1,9 @@
|
|
1
1
|
plain/dev/README.md,sha256=r_sONnN4zVlDdQrst_51iScrm3PlrcoPNmX9yX3MKXo,3658
|
2
2
|
plain/dev/__init__.py,sha256=nRX1B0Br8gmqhJLqo5Z9PqzReDahBtbmwH6C-7hzuls,103
|
3
|
-
plain/dev/cli.py,sha256=
|
3
|
+
plain/dev/cli.py,sha256=YWKBOuf-ryu5QXDtU2AZu1TH7ZzYCX3yJmKgr61Ec-M,13131
|
4
4
|
plain/dev/debug.py,sha256=Ka84K8zUdF0kMYNyqiLYDrdzU1jU8LSOkts3hcw_Gok,1005
|
5
5
|
plain/dev/default_settings.py,sha256=uXWYORWP_aRDwXIFXdu5kHyiBFUZzARIJdhPeFaX35c,75
|
6
|
-
plain/dev/entrypoints.py,sha256=
|
6
|
+
plain/dev/entrypoints.py,sha256=diqNwA6eydUMtoO7p_rH-DtSYsw5-GBmjFe1Z5bHagc,579
|
7
7
|
plain/dev/gunicorn_logging.json,sha256=yU23jzs5G4YGdDWBNiyAc3KypR4HirR6afIkD7w6DhU,1113
|
8
8
|
plain/dev/mkcert.py,sha256=fm1U_UTGPREso6ZaP79WqEvd9uvA4lYWFo6fKhNglMM,3911
|
9
9
|
plain/dev/pdb.py,sha256=4ru3rlIIyuYVXteyI7v42i4MmdBIjpJP0IJemBpf83A,3742
|
@@ -15,7 +15,7 @@ plain/dev/utils.py,sha256=4wMzpvj1Is_c0QxhsTu34_P9wAYlzw4glNPfVtZr_0A,123
|
|
15
15
|
plain/dev/views.py,sha256=r2Ivk7OXytpRhXq4DZpsb7FXNP9vzmEE3D5kLajYG4w,1073
|
16
16
|
plain/dev/contribute/README.md,sha256=v9Ympugu2wvDEe_045WJnF1dmC4ZH7v_Bnxkpfaf_rM,329
|
17
17
|
plain/dev/contribute/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
18
|
-
plain/dev/contribute/cli.py,sha256=
|
18
|
+
plain/dev/contribute/cli.py,sha256=jSfocR754VGMzcnb62zJA2lxxjry1Bdzupbsm3McgdY,3084
|
19
19
|
plain/dev/poncho/__init__.py,sha256=MDOk2rhhoR3V-I-rg6tMHFeX60vTGJuQ14RI-_N6tQY,97
|
20
20
|
plain/dev/poncho/color.py,sha256=Dk77inPR9qNc9vCaZOGk8W9skXfRgoUlxp_E6mhPNns,610
|
21
21
|
plain/dev/poncho/compat.py,sha256=l66WZLR7kRpO8P8DI5-aUsbNlohPaXEurQ5xXESQYDs,1276
|
@@ -23,10 +23,10 @@ plain/dev/poncho/manager.py,sha256=xT8ur72ZaVrWYWtg5FnBSiZsENWKUHP7eG_A_ZUP-40,6
|
|
23
23
|
plain/dev/poncho/printer.py,sha256=wt1ioaGcPnVyrPy-UjvdsR9zfcr4DTTycmapW1MIdSU,1785
|
24
24
|
plain/dev/poncho/process.py,sha256=JJOKy-C6vMCg7-6JMCtu6C649h7HmOBSJqDP_hnX49I,2637
|
25
25
|
plain/dev/precommit/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
|
26
|
-
plain/dev/precommit/cli.py,sha256=
|
26
|
+
plain/dev/precommit/cli.py,sha256=KVHcG3Y_JZJNu3_MLIrO5s6yMYQfAArIU5L0hNWZUjg,3441
|
27
27
|
plain/dev/templates/dev/requests.html,sha256=kQKJZq5L77juuL_t8UjcAehEU61U4RXNnKaAET-wAm8,7627
|
28
|
-
plain_dev-0.
|
29
|
-
plain_dev-0.
|
30
|
-
plain_dev-0.
|
31
|
-
plain_dev-0.
|
32
|
-
plain_dev-0.
|
28
|
+
plain_dev-0.23.0.dist-info/METADATA,sha256=U-C3PDA2ANhkiQDqubg8H33r3NtkKlB-HdhUiaotiKA,4163
|
29
|
+
plain_dev-0.23.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
30
|
+
plain_dev-0.23.0.dist-info/entry_points.txt,sha256=zrcTOiFk_MLKsnYVlwVP7aMm1XLEqq7w4EBkJ-3ge-g,114
|
31
|
+
plain_dev-0.23.0.dist-info/licenses/LICENSE,sha256=Cx4Dq9yR2fLHthf8Ke36B8QJvE1bZFXVzDIGE8wGzsY,4132
|
32
|
+
plain_dev-0.23.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|