plain.dev 0.22.0__tar.gz → 0.23.0__tar.gz

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.
Files changed (33) hide show
  1. {plain_dev-0.22.0 → plain_dev-0.23.0}/PKG-INFO +1 -1
  2. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/cli.py +2 -0
  3. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/contribute/cli.py +4 -1
  4. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/entrypoints.py +6 -0
  5. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/precommit/cli.py +2 -0
  6. {plain_dev-0.22.0 → plain_dev-0.23.0}/pyproject.toml +1 -7
  7. {plain_dev-0.22.0 → plain_dev-0.23.0}/.gitignore +0 -0
  8. {plain_dev-0.22.0 → plain_dev-0.23.0}/LICENSE +0 -0
  9. {plain_dev-0.22.0 → plain_dev-0.23.0}/README.md +0 -0
  10. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/README.md +0 -0
  11. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/__init__.py +0 -0
  12. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/contribute/README.md +0 -0
  13. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/contribute/__init__.py +0 -0
  14. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/debug.py +0 -0
  15. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/default_settings.py +0 -0
  16. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/gunicorn_logging.json +0 -0
  17. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/mkcert.py +0 -0
  18. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/pdb.py +0 -0
  19. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/pid.py +0 -0
  20. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/poncho/__init__.py +0 -0
  21. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/poncho/color.py +0 -0
  22. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/poncho/compat.py +0 -0
  23. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/poncho/manager.py +0 -0
  24. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/poncho/printer.py +0 -0
  25. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/poncho/process.py +0 -0
  26. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/precommit/__init__.py +0 -0
  27. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/requests.py +0 -0
  28. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/services.py +0 -0
  29. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/templates/dev/requests.html +0 -0
  30. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/urls.py +0 -0
  31. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/utils.py +0 -0
  32. {plain_dev-0.22.0 → plain_dev-0.23.0}/plain/dev/views.py +0 -0
  33. {plain_dev-0.22.0 → plain_dev-0.23.0}/tests/settings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.dev
3
- Version: 0.22.0
3
+ Version: 0.23.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
@@ -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(
@@ -25,7 +28,7 @@ def cli(packages, repo, reset, all_packages):
25
28
  sys.exit(result.returncode)
26
29
 
27
30
  click.secho("Running uv sync", bold=True)
28
- result = subprocess.run(["uv", "sync"])
31
+ result = subprocess.run(["uv", "sync", "--reinstall"])
29
32
  if result.returncode:
30
33
  click.secho("Failed to sync", fg="red")
31
34
  sys.exit(result.returncode)
@@ -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):
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "plain.dev"
3
- version = "0.22.0"
3
+ version = "0.23.0"
4
4
  description = "Local development tools for Plain."
5
5
  authors = [{name = "Dave Gaeddert", email = "dave.gaeddert@dropseed.dev"}]
6
6
  license = "BSD-3-Clause"
@@ -22,12 +22,6 @@ dependencies = [
22
22
  [project.scripts]
23
23
  plain-contrib = "plain.dev.contribute:cli"
24
24
 
25
- # Make the CLI available without adding to INSTALLED_APPS
26
- [project.entry-points."plain.cli"]
27
- "dev" = "plain.dev:cli"
28
- "pre-commit" = "plain.dev.precommit:cli"
29
- "contrib" = "plain.dev.contribute:cli"
30
-
31
25
  [project.entry-points."plain.setup"]
32
26
  "dev-setup" = "plain.dev.entrypoints:setup"
33
27
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes