plain 0.13.0__py3-none-any.whl → 0.13.1__py3-none-any.whl

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/cli/cli.py CHANGED
@@ -446,8 +446,6 @@ class PlainCommandCollection(click.CommandCollection):
446
446
  sources = []
447
447
 
448
448
  try:
449
- # Setup has to run before the installed packages CLI work
450
- # and it also does the .env file loading right now...
451
449
  plain.runtime.setup()
452
450
 
453
451
  sources = [
@@ -457,6 +455,7 @@ class PlainCommandCollection(click.CommandCollection):
457
455
  plain_cli,
458
456
  ]
459
457
  except plain.runtime.AppPathNotFound:
458
+ # Allow some commands to work regardless of being in a valid app
460
459
  click.secho(
461
460
  "Plain `app` directory not found. Some commands may be missing.",
462
461
  fg="yellow",
@@ -468,19 +467,16 @@ class PlainCommandCollection(click.CommandCollection):
468
467
  plain_cli,
469
468
  ]
470
469
  except ImproperlyConfigured as e:
470
+ # Show what was configured incorrectly and exit
471
471
  click.secho(
472
472
  str(e),
473
473
  fg="red",
474
474
  err=True,
475
475
  )
476
476
 
477
- # None of these require the app to be setup
478
- sources = [
479
- EntryPointGroup(),
480
- AppCLIGroup(),
481
- plain_cli,
482
- ]
477
+ exit(1)
483
478
  except Exception as e:
479
+ # Show the exception and exit
484
480
  print("---")
485
481
  print(traceback.format_exc())
486
482
  print("---")
@@ -491,12 +487,7 @@ class PlainCommandCollection(click.CommandCollection):
491
487
  err=True,
492
488
  )
493
489
 
494
- # None of these require the app to be setup
495
- sources = [
496
- EntryPointGroup(),
497
- AppCLIGroup(),
498
- plain_cli,
499
- ]
490
+ exit(1)
500
491
 
501
492
  super().__init__(*args, **kwargs)
502
493
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plain
3
- Version: 0.13.0
3
+ Version: 0.13.1
4
4
  Summary: A web framework for building products with Python.
5
5
  Author: Dave Gaeddert
6
6
  Author-email: dave.gaeddert@dropseed.dev
@@ -9,7 +9,7 @@ plain/assets/urls.py,sha256=ZTIoM1Zq35JaXZ3wFhXhfGa7VoITDNlH9i5RS0R5xow,933
9
9
  plain/assets/views.py,sha256=dhjIpMu0GDR_VGbXM90_6RnC84C2C4bFv1RxDVklGBk,9173
10
10
  plain/cli/README.md,sha256=xjr1K-sIMTi5OWxdxL--O7aoo16Pd1xdawIZtz6BL7Q,2464
11
11
  plain/cli/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
12
- plain/cli/cli.py,sha256=Ns6Yi3fhrvvBsE-HrhqtaFoLiegni7d61ypj-MrLjss,14834
12
+ plain/cli/cli.py,sha256=o3h6ZQLvxytNwuzTUjRg-TbNw6_FrTBgbmYxjBt6CuI,14543
13
13
  plain/cli/formatting.py,sha256=1hZH13y1qwHcU2K2_Na388nw9uvoeQH8LrWL-O9h8Yc,2207
14
14
  plain/cli/packages.py,sha256=69VH1bIi1-5N5l2jlBcR5EP0pt-v16sPar9arO3gCSE,2052
15
15
  plain/cli/print.py,sha256=XraUYrgODOJquIiEv78wSCYGRBplHXtXSS9QtFG5hqY,217
@@ -139,8 +139,8 @@ plain/views/objects.py,sha256=9QBYyb8PgkRirXCQ8-Pms4_yMzP37dfeL30hWRYmtZg,7909
139
139
  plain/views/redirect.py,sha256=KLnlktzK6ZNMTlaEiZpMKQMEP5zeTgGLJ9BIkIJfwBo,1733
140
140
  plain/views/templates.py,sha256=nF9CcdhhjAyp3LB0RrSYnBaHpHzMfPSw719RCdcXk7o,2007
141
141
  plain/wsgi.py,sha256=R6k5FiAElvGDApEbMPTT0MPqSD7n2e2Az5chQqJZU0I,236
142
- plain-0.13.0.dist-info/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
143
- plain-0.13.0.dist-info/METADATA,sha256=q1mlnliDkSLRmD-daEgJ6FUgkHbv0MciFYYr5Wp9qUs,2722
144
- plain-0.13.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
145
- plain-0.13.0.dist-info/entry_points.txt,sha256=7O1RZTmMasKYB73bfqQcTwIhsXo7RjEIKv2WbtTtOIM,39
146
- plain-0.13.0.dist-info/RECORD,,
142
+ plain-0.13.1.dist-info/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
143
+ plain-0.13.1.dist-info/METADATA,sha256=YwduCEEt6PAHfsEylk-zaY-ThC2V_T01w6zPm0R13UQ,2722
144
+ plain-0.13.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
145
+ plain-0.13.1.dist-info/entry_points.txt,sha256=7O1RZTmMasKYB73bfqQcTwIhsXo7RjEIKv2WbtTtOIM,39
146
+ plain-0.13.1.dist-info/RECORD,,
File without changes