plain.dev 0.22.1__py3-none-any.whl → 0.24.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 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(
@@ -4,7 +4,10 @@ from pathlib import Path
4
4
 
5
5
  import click
6
6
 
7
+ from plain.cli import register_cli
7
8
 
9
+
10
+ @register_cli("contrib")
8
11
  @click.command("contribute")
9
12
  @click.option("--repo", default="../plain", help="Path to the plain repo")
10
13
  @click.option(
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()
@@ -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):
plain/dev/urls.py CHANGED
@@ -1,10 +1,9 @@
1
- from plain.urls import RouterBase, path, register_router
1
+ from plain.urls import Router, path
2
2
 
3
3
  from . import views
4
4
 
5
5
 
6
- @register_router
7
- class Router(RouterBase):
6
+ class DevRequestsRouter(Router):
8
7
  namespace = "dev"
9
8
  urls = [
10
9
  path("", views.RequestsView, name="requests"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.dev
3
- Version: 0.22.1
3
+ Version: 0.24.0
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,21 +1,21 @@
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=op9FTibH2RbM9QXo5lG6P_Ur5Inn1bhPQ9CJtzV_Kf4,13075
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=TCjX9aCLQag_0UjWE6PU5MnuaNWHAqsZQh7opSjr8zM,386
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
10
10
  plain/dev/pid.py,sha256=gRMBf7aGndrra1TnmKtPghTijnd0i0Xeo63mzfPWp7M,436
11
11
  plain/dev/requests.py,sha256=D1NX0qC8ADtf_zwsGMTp9aiE6Sh9QmoxFJCU_V8Wers,6839
12
12
  plain/dev/services.py,sha256=26WnVNjNAh37BA-wHQSGQY_9Ofw8oGgJdHhxnFaSKkg,2059
13
- plain/dev/urls.py,sha256=AzGhzJ_6nnHQCqGgiriykOnXmQUvUQSa3ji9NKHjk4I,219
13
+ plain/dev/urls.py,sha256=6fyl-DvxDgKjUjpyhuLN8m6GisB8L-eH4rhYH_eRmGA,188
14
14
  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=vWvXhEbmlKt1DNMD3J9pVqDRHX5I0kyWwftGmilGv48,3023
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=Zh-lCIbAH0LYwmFtH2wP2UzTiHKf2kIid2sO8p1wu2k,3378
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.22.1.dist-info/METADATA,sha256=ef4-8PjK7tOIHIGXNjccgL7nbQqrHAqIHi1ompAvMVg,4163
29
- plain_dev-0.22.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
30
- plain_dev-0.22.1.dist-info/entry_points.txt,sha256=UtjUbxI-2TMZJGCfRTeU-YGr48XLwnc_pMuzDGD9uTg,219
31
- plain_dev-0.22.1.dist-info/licenses/LICENSE,sha256=Cx4Dq9yR2fLHthf8Ke36B8QJvE1bZFXVzDIGE8wGzsY,4132
32
- plain_dev-0.22.1.dist-info/RECORD,,
28
+ plain_dev-0.24.0.dist-info/METADATA,sha256=8JYKVWAVB9KWsXvCG7v0sIxY9hBFGjMd1kIA8NSmYko,4163
29
+ plain_dev-0.24.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
30
+ plain_dev-0.24.0.dist-info/entry_points.txt,sha256=zrcTOiFk_MLKsnYVlwVP7aMm1XLEqq7w4EBkJ-3ge-g,114
31
+ plain_dev-0.24.0.dist-info/licenses/LICENSE,sha256=Cx4Dq9yR2fLHthf8Ke36B8QJvE1bZFXVzDIGE8wGzsY,4132
32
+ plain_dev-0.24.0.dist-info/RECORD,,
@@ -1,10 +1,5 @@
1
1
  [console_scripts]
2
2
  plain-contrib = plain.dev.contribute:cli
3
3
 
4
- [plain.cli]
5
- contrib = plain.dev.contribute:cli
6
- dev = plain.dev:cli
7
- pre-commit = plain.dev.precommit:cli
8
-
9
4
  [plain.setup]
10
5
  dev-setup = plain.dev.entrypoints:setup