plain.dev 0.30.0__tar.gz → 0.30.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 (32) hide show
  1. {plain_dev-0.30.0 → plain_dev-0.30.1}/PKG-INFO +1 -1
  2. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/cli.py +6 -0
  3. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/manager.py +6 -0
  4. {plain_dev-0.30.0 → plain_dev-0.30.1}/pyproject.toml +1 -1
  5. {plain_dev-0.30.0 → plain_dev-0.30.1}/.gitignore +0 -0
  6. {plain_dev-0.30.0 → plain_dev-0.30.1}/LICENSE +0 -0
  7. {plain_dev-0.30.0 → plain_dev-0.30.1}/README.md +0 -0
  8. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/README.md +0 -0
  9. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/__init__.py +0 -0
  10. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/contribute/README.md +0 -0
  11. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/contribute/__init__.py +0 -0
  12. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/contribute/cli.py +0 -0
  13. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/debug.py +0 -0
  14. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/default_settings.py +0 -0
  15. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/entrypoints.py +0 -0
  16. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/gunicorn_logging.json +0 -0
  17. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/mkcert.py +0 -0
  18. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/pdb.py +0 -0
  19. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/__init__.py +0 -0
  20. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/color.py +0 -0
  21. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/compat.py +0 -0
  22. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/printer.py +0 -0
  23. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/process.py +0 -0
  24. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/precommit/__init__.py +0 -0
  25. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/precommit/cli.py +0 -0
  26. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/requests.py +0 -0
  27. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/services.py +0 -0
  28. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/templates/dev/requests.html +0 -0
  29. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/urls.py +0 -0
  30. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/utils.py +0 -0
  31. {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/views.py +0 -0
  32. {plain_dev-0.30.0 → plain_dev-0.30.1}/tests/settings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.dev
3
- Version: 0.30.0
3
+ Version: 0.30.1
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
@@ -236,6 +236,12 @@ class Dev:
236
236
  target=_process_task, args=(self.plain_env,)
237
237
  )
238
238
  process.start()
239
+
240
+ # If there are no poncho processes, then let this process finish before
241
+ # continuing (vs running in parallel)
242
+ if self.poncho.num_processes() == 0:
243
+ # Wait for the process to finish
244
+ process.join()
239
245
  else:
240
246
  # Start the app processes immediately
241
247
  self.start_app(None, None)
@@ -82,6 +82,12 @@ class Manager:
82
82
 
83
83
  return proc
84
84
 
85
+ def num_processes(self):
86
+ """
87
+ Return the number of processes managed by this instance.
88
+ """
89
+ return len(self._processes)
90
+
85
91
  def loop(self):
86
92
  """
87
93
  Start all the added processes and multiplex their output onto the bound
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "plain.dev"
3
- version = "0.30.0"
3
+ version = "0.30.1"
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