plain.dev 0.19.0__tar.gz → 0.19.2__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 (36) hide show
  1. {plain_dev-0.19.0 → plain_dev-0.19.2}/PKG-INFO +1 -1
  2. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/cli.py +9 -1
  3. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/precommit/cli.py +1 -2
  4. {plain_dev-0.19.0 → plain_dev-0.19.2}/pyproject.toml +1 -1
  5. {plain_dev-0.19.0 → plain_dev-0.19.2}/uv.lock +2 -2
  6. {plain_dev-0.19.0 → plain_dev-0.19.2}/.gitignore +0 -0
  7. {plain_dev-0.19.0 → plain_dev-0.19.2}/LICENSE +0 -0
  8. {plain_dev-0.19.0 → plain_dev-0.19.2}/README.md +0 -0
  9. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/README.md +0 -0
  10. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/__init__.py +0 -0
  11. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/contribute/__init__.py +0 -0
  12. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/contribute/cli.py +0 -0
  13. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/db/__init__.py +0 -0
  14. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/db/cli.py +0 -0
  15. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/db/container.py +0 -0
  16. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/debug.py +0 -0
  17. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/default_settings.py +0 -0
  18. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/entrypoints.py +0 -0
  19. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/gunicorn_logging.json +0 -0
  20. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/mkcert.py +0 -0
  21. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/pdb.py +0 -0
  22. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/pid.py +0 -0
  23. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/poncho/__init__.py +0 -0
  24. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/poncho/color.py +0 -0
  25. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/poncho/compat.py +0 -0
  26. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/poncho/manager.py +0 -0
  27. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/poncho/printer.py +0 -0
  28. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/poncho/process.py +0 -0
  29. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/precommit/__init__.py +0 -0
  30. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/requests.py +0 -0
  31. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/services.py +0 -0
  32. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/templates/dev/requests.html +0 -0
  33. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/urls.py +0 -0
  34. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/utils.py +0 -0
  35. {plain_dev-0.19.0 → plain_dev-0.19.2}/plain/dev/views.py +0 -0
  36. {plain_dev-0.19.0 → plain_dev-0.19.2}/tests/settings.py +0 -0
@@ -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
@@ -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
  [project]
2
2
  name = "plain.dev"
3
- version = "0.19.0"
3
+ version = "0.19.2"
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"
@@ -63,7 +63,7 @@ name = "click"
63
63
  version = "8.1.8"
64
64
  source = { registry = "https://pypi.org/simple" }
65
65
  dependencies = [
66
- { name = "colorama", marker = "platform_system == 'Windows'" },
66
+ { name = "colorama", marker = "sys_platform == 'win32'" },
67
67
  ]
68
68
  sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593 }
69
69
  wheels = [
@@ -205,7 +205,7 @@ wheels = [
205
205
 
206
206
  [[package]]
207
207
  name = "plain-dev"
208
- version = "0.19.0"
208
+ version = "0.19.1"
209
209
  source = { editable = "." }
210
210
  dependencies = [
211
211
  { name = "click" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes