plain.dev 0.7.5__tar.gz → 0.8.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 (32) hide show
  1. {plain_dev-0.7.5 → plain_dev-0.8.0}/PKG-INFO +1 -1
  2. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/cli.py +16 -8
  3. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/gunicorn_logging.json +2 -2
  4. {plain_dev-0.7.5 → plain_dev-0.8.0}/pyproject.toml +1 -1
  5. {plain_dev-0.7.5 → plain_dev-0.8.0}/LICENSE +0 -0
  6. {plain_dev-0.7.5 → plain_dev-0.8.0}/README.md +0 -0
  7. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/README.md +0 -0
  8. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/__init__.py +0 -0
  9. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/config.py +0 -0
  10. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/contribute/__init__.py +0 -0
  11. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/contribute/cli.py +0 -0
  12. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/db/__init__.py +0 -0
  13. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/db/cli.py +0 -0
  14. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/db/container.py +0 -0
  15. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/debug.py +0 -0
  16. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/default_settings.py +0 -0
  17. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/mkcert.py +0 -0
  18. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/pid.py +0 -0
  19. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/__init__.py +0 -0
  20. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/color.py +0 -0
  21. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/compat.py +0 -0
  22. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/manager.py +0 -0
  23. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/printer.py +0 -0
  24. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/poncho/process.py +0 -0
  25. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/precommit/__init__.py +0 -0
  26. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/precommit/cli.py +0 -0
  27. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/requests.py +0 -0
  28. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/services.py +0 -0
  29. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/templates/dev/requests.html +0 -0
  30. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/urls.py +0 -0
  31. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/utils.py +0 -0
  32. {plain_dev-0.7.5 → plain_dev-0.8.0}/plain/dev/views.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plain.dev
3
- Version: 0.7.5
3
+ Version: 0.8.0
4
4
  Summary: Local development tools for Plain.
5
5
  Home-page: https://plainframework.com
6
6
  License: BSD-3-Clause
@@ -90,13 +90,21 @@ class Dev:
90
90
  pid.write()
91
91
 
92
92
  try:
93
- mkcert_manager = MkcertManager()
94
- mkcert_manager.setup_mkcert(install_path=Path.home() / ".plain" / "dev")
95
- self.ssl_cert_path, self.ssl_key_path = mkcert_manager.generate_certs(
96
- domain=self.domain,
97
- storage_path=Path(settings.PLAIN_TEMP_PATH) / "dev" / "certs",
98
- )
99
- self.modify_hosts_file()
93
+ if "CODESPACES" in os.environ:
94
+ codespace_name = os.environ["CODESPACE_NAME"]
95
+ codespace_forward_domain = os.environ[
96
+ "GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN"
97
+ ]
98
+ self.domain = f"https://{codespace_name}.{codespace_forward_domain}"
99
+ else:
100
+ mkcert_manager = MkcertManager()
101
+ mkcert_manager.setup_mkcert(install_path=Path.home() / ".plain" / "dev")
102
+ self.ssl_cert_path, self.ssl_key_path = mkcert_manager.generate_certs(
103
+ domain=self.domain,
104
+ storage_path=Path(settings.PLAIN_TEMP_PATH) / "dev" / "certs",
105
+ )
106
+ self.modify_hosts_file()
107
+
100
108
  self.set_csrf_and_allowed_hosts()
101
109
  self.run_preflight()
102
110
 
@@ -230,7 +238,7 @@ class Dev:
230
238
  "-",
231
239
  *reload_extra.split(),
232
240
  "--access-logformat",
233
- "'\"%(r)s\" status=%(s)s length=%(b)s dur=%(M)sms'",
241
+ "'\"%(r)s\" status=%(s)s length=%(b)s time=%(M)sms'",
234
242
  "--log-config-json",
235
243
  str(Path(__file__).parent / "gunicorn_logging.json"),
236
244
  ]
@@ -13,7 +13,7 @@
13
13
  "handlers": [
14
14
  "error_console"
15
15
  ],
16
- "propagate": true,
16
+ "propagate": false,
17
17
  "qualname": "gunicorn.error"
18
18
  },
19
19
  "gunicorn.access": {
@@ -21,7 +21,7 @@
21
21
  "handlers": [
22
22
  "console"
23
23
  ],
24
- "propagate": true,
24
+ "propagate": false,
25
25
  "qualname": "gunicorn.access"
26
26
  }
27
27
  },
@@ -5,7 +5,7 @@ packages = [
5
5
  { include = "plain" },
6
6
  ]
7
7
 
8
- version = "0.7.5"
8
+ version = "0.8.0"
9
9
  description = "Local development tools for Plain."
10
10
  authors = ["Dave Gaeddert <dave.gaeddert@dropseed.dev>"]
11
11
  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
File without changes
File without changes
File without changes