plain.dev 0.19.1__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.1 → plain_dev-0.19.2}/PKG-INFO +1 -1
  2. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/cli.py +9 -1
  3. {plain_dev-0.19.1 → plain_dev-0.19.2}/pyproject.toml +1 -1
  4. {plain_dev-0.19.1 → plain_dev-0.19.2}/.gitignore +0 -0
  5. {plain_dev-0.19.1 → plain_dev-0.19.2}/LICENSE +0 -0
  6. {plain_dev-0.19.1 → plain_dev-0.19.2}/README.md +0 -0
  7. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/README.md +0 -0
  8. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/__init__.py +0 -0
  9. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/contribute/__init__.py +0 -0
  10. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/contribute/cli.py +0 -0
  11. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/db/__init__.py +0 -0
  12. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/db/cli.py +0 -0
  13. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/db/container.py +0 -0
  14. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/debug.py +0 -0
  15. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/default_settings.py +0 -0
  16. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/entrypoints.py +0 -0
  17. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/gunicorn_logging.json +0 -0
  18. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/mkcert.py +0 -0
  19. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/pdb.py +0 -0
  20. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/pid.py +0 -0
  21. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/poncho/__init__.py +0 -0
  22. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/poncho/color.py +0 -0
  23. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/poncho/compat.py +0 -0
  24. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/poncho/manager.py +0 -0
  25. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/poncho/printer.py +0 -0
  26. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/poncho/process.py +0 -0
  27. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/precommit/__init__.py +0 -0
  28. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/precommit/cli.py +0 -0
  29. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/requests.py +0 -0
  30. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/services.py +0 -0
  31. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/templates/dev/requests.html +0 -0
  32. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/urls.py +0 -0
  33. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/utils.py +0 -0
  34. {plain_dev-0.19.1 → plain_dev-0.19.2}/plain/dev/views.py +0 -0
  35. {plain_dev-0.19.1 → plain_dev-0.19.2}/tests/settings.py +0 -0
  36. {plain_dev-0.19.1 → plain_dev-0.19.2}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.dev
3
- Version: 0.19.1
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()
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "plain.dev"
3
- version = "0.19.1"
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"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes