plain.dev 0.14.0__tar.gz → 0.14.1__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.14.0 → plain_dev-0.14.1}/PKG-INFO +1 -1
  2. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/cli.py +14 -0
  3. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/requests.py +1 -1
  4. {plain_dev-0.14.0 → plain_dev-0.14.1}/pyproject.toml +1 -1
  5. plain_dev-0.14.0/plain/dev/config.py +0 -20
  6. {plain_dev-0.14.0 → plain_dev-0.14.1}/LICENSE +0 -0
  7. {plain_dev-0.14.0 → plain_dev-0.14.1}/README.md +0 -0
  8. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/README.md +0 -0
  9. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/__init__.py +0 -0
  10. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/contribute/__init__.py +0 -0
  11. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/contribute/cli.py +0 -0
  12. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/db/__init__.py +0 -0
  13. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/db/cli.py +0 -0
  14. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/db/container.py +0 -0
  15. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/debug.py +0 -0
  16. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/default_settings.py +0 -0
  17. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/entrypoints.py +0 -0
  18. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/gunicorn_logging.json +0 -0
  19. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/mkcert.py +0 -0
  20. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/pid.py +0 -0
  21. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/poncho/__init__.py +0 -0
  22. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/poncho/color.py +0 -0
  23. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/poncho/compat.py +0 -0
  24. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/poncho/manager.py +0 -0
  25. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/poncho/printer.py +0 -0
  26. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/poncho/process.py +0 -0
  27. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/precommit/__init__.py +0 -0
  28. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/precommit/cli.py +0 -0
  29. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/services.py +0 -0
  30. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/templates/dev/requests.html +0 -0
  31. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/urls.py +0 -0
  32. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/utils.py +0 -0
  33. {plain_dev-0.14.0 → plain_dev-0.14.1}/plain/dev/views.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plain.dev
3
- Version: 0.14.0
3
+ Version: 0.14.1
4
4
  Summary: Local development tools for Plain.
5
5
  Home-page: https://plainframework.com
6
6
  License: BSD-3-Clause
@@ -1,3 +1,4 @@
1
+ import importlib
1
2
  import json
2
3
  import os
3
4
  import platform
@@ -120,6 +121,8 @@ class Dev:
120
121
  domain=self.hostname,
121
122
  storage_path=Path(settings.PLAIN_TEMP_PATH) / "dev" / "certs",
122
123
  )
124
+
125
+ self.symlink_plain_src()
123
126
  self.modify_hosts_file()
124
127
  self.set_csrf_and_allowed_hosts()
125
128
  self.run_preflight()
@@ -144,6 +147,17 @@ class Dev:
144
147
  finally:
145
148
  pid.rm()
146
149
 
150
+ def symlink_plain_src(self):
151
+ """Symlink the plain package into .plain so we can look at it easily"""
152
+ plain_path = Path(
153
+ importlib.util.find_spec("plain.runtime").origin
154
+ ).parent.parent
155
+ if not settings.PLAIN_TEMP_PATH.exists():
156
+ settings.PLAIN_TEMP_PATH.mkdir()
157
+ src_path = settings.PLAIN_TEMP_PATH / "src"
158
+ if plain_path.exists() and not src_path.exists():
159
+ src_path.symlink_to(plain_path)
160
+
147
161
  def modify_hosts_file(self):
148
162
  """Modify the hosts file to map the custom domain to 127.0.0.1."""
149
163
  entry_identifier = "# Added by plain"
@@ -18,7 +18,7 @@ class RequestLog:
18
18
 
19
19
  @staticmethod
20
20
  def storage_path():
21
- return str(settings.PLAIN_TEMP_PATH / "requestlog")
21
+ return str(settings.PLAIN_TEMP_PATH / "dev" / "requestlog")
22
22
 
23
23
  @classmethod
24
24
  def replay_request(cls, name):
@@ -5,7 +5,7 @@ packages = [
5
5
  { include = "plain" },
6
6
  ]
7
7
 
8
- version = "0.14.0"
8
+ version = "0.14.1"
9
9
  description = "Local development tools for Plain."
10
10
  authors = ["Dave Gaeddert <dave.gaeddert@dropseed.dev>"]
11
11
  license = "BSD-3-Clause"
@@ -1,20 +0,0 @@
1
- import importlib
2
- from pathlib import Path
3
-
4
- from plain.packages import PackageConfig
5
- from plain.runtime import settings
6
-
7
-
8
- class Config(PackageConfig):
9
- name = "plain.dev"
10
-
11
- def ready(self):
12
- # Symlink the plain package into .plain so we can look at it easily
13
- plain_path = Path(
14
- importlib.util.find_spec("plain.runtime").origin
15
- ).parent.parent
16
- if not settings.PLAIN_TEMP_PATH.exists():
17
- settings.PLAIN_TEMP_PATH.mkdir()
18
- src_path = settings.PLAIN_TEMP_PATH / "src"
19
- if plain_path.exists() and not src_path.exists():
20
- src_path.symlink_to(plain_path)
File without changes
File without changes
File without changes
File without changes