plain.dev 0.25.0__tar.gz → 0.26.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.25.0 → plain_dev-0.26.0}/PKG-INFO +1 -1
  2. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/cli.py +14 -5
  3. {plain_dev-0.25.0 → plain_dev-0.26.0}/pyproject.toml +1 -1
  4. {plain_dev-0.25.0 → plain_dev-0.26.0}/.gitignore +0 -0
  5. {plain_dev-0.25.0 → plain_dev-0.26.0}/LICENSE +0 -0
  6. {plain_dev-0.25.0 → plain_dev-0.26.0}/README.md +0 -0
  7. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/README.md +0 -0
  8. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/__init__.py +0 -0
  9. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/contribute/README.md +0 -0
  10. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/contribute/__init__.py +0 -0
  11. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/contribute/cli.py +0 -0
  12. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/debug.py +0 -0
  13. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/default_settings.py +0 -0
  14. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/entrypoints.py +0 -0
  15. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/gunicorn_logging.json +0 -0
  16. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/mkcert.py +0 -0
  17. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/pdb.py +0 -0
  18. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/poncho/__init__.py +0 -0
  19. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/poncho/color.py +0 -0
  20. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/poncho/compat.py +0 -0
  21. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/poncho/manager.py +0 -0
  22. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/poncho/printer.py +0 -0
  23. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/poncho/process.py +0 -0
  24. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/precommit/__init__.py +0 -0
  25. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/precommit/cli.py +0 -0
  26. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/requests.py +0 -0
  27. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/services.py +0 -0
  28. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/templates/dev/requests.html +0 -0
  29. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/urls.py +0 -0
  30. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/utils.py +0 -0
  31. {plain_dev-0.25.0 → plain_dev-0.26.0}/plain/dev/views.py +0 -0
  32. {plain_dev-0.25.0 → plain_dev-0.26.0}/tests/settings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.dev
3
- Version: 0.25.0
3
+ Version: 0.26.0
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
@@ -218,12 +218,21 @@ class Dev:
218
218
  ).parent.parent
219
219
  if not settings.PLAIN_TEMP_PATH.exists():
220
220
  settings.PLAIN_TEMP_PATH.mkdir()
221
+
221
222
  symlink_path = settings.PLAIN_TEMP_PATH / "src"
222
223
 
223
- # Remove a broken symlink if it changed
224
+ # The symlink is broken
224
225
  if symlink_path.is_symlink() and not symlink_path.exists():
225
226
  symlink_path.unlink()
226
227
 
228
+ # The symlink exists but points to the wrong place
229
+ if (
230
+ symlink_path.is_symlink()
231
+ and symlink_path.exists()
232
+ and symlink_path.resolve() != plain_path
233
+ ):
234
+ symlink_path.unlink()
235
+
227
236
  if plain_path.exists() and not symlink_path.exists():
228
237
  symlink_path.symlink_to(plain_path)
229
238
 
@@ -326,6 +335,8 @@ class Dev:
326
335
  str(self.ssl_cert_path),
327
336
  "--keyfile",
328
337
  str(self.ssl_key_path),
338
+ "--threads",
339
+ "4",
329
340
  "--reload",
330
341
  "plain.wsgi:app",
331
342
  "--timeout",
@@ -351,10 +362,6 @@ class Dev:
351
362
  else:
352
363
  runserver_cmd = gunicorn
353
364
 
354
- if "WEB_CONCURRENCY" not in self.plain_env:
355
- # Default to two workers to prevent lockups
356
- self.plain_env["WEB_CONCURRENCY"] = "2"
357
-
358
365
  self.poncho.add_process("plain", runserver_cmd, env=self.plain_env)
359
366
 
360
367
  def add_entrypoints(self):
@@ -390,6 +397,8 @@ class Dev:
390
397
  click.secho("Services already running", fg="yellow")
391
398
  return
392
399
 
400
+ # TODO need to set services pid here somehow...
401
+
393
402
  # Split each service into a separate process
394
403
  services = Services.get_services(APP_PATH.parent)
395
404
  for name, data in services.items():
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "plain.dev"
3
- version = "0.25.0"
3
+ version = "0.26.0"
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