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.
- {plain_dev-0.30.0 → plain_dev-0.30.1}/PKG-INFO +1 -1
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/cli.py +6 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/manager.py +6 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/pyproject.toml +1 -1
- {plain_dev-0.30.0 → plain_dev-0.30.1}/.gitignore +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/LICENSE +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/README.md +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/README.md +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/__init__.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/contribute/README.md +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/contribute/__init__.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/contribute/cli.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/debug.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/default_settings.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/entrypoints.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/gunicorn_logging.json +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/mkcert.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/pdb.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/__init__.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/color.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/compat.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/printer.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/poncho/process.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/precommit/__init__.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/precommit/cli.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/requests.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/services.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/templates/dev/requests.html +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/urls.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/utils.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/plain/dev/views.py +0 -0
- {plain_dev-0.30.0 → plain_dev-0.30.1}/tests/settings.py +0 -0
@@ -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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|