plain 0.19.0__py3-none-any.whl → 0.19.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
@@ -287,11 +287,7 @@ def compile(keep_original, fingerprint, compress):
287
287
  )
288
288
  sys.exit(1)
289
289
 
290
- for entry_point in entry_points(group="plain.assets.compile"):
291
- click.secho(f"Running {entry_point.name}", bold=True)
292
- result = entry_point.load()()
293
- print()
294
-
290
+ # Run user-defined compile commands first
295
291
  pyproject_path = plain.runtime.APP_PATH.parent / "pyproject.toml"
296
292
  if pyproject_path.exists():
297
293
  with pyproject_path.open("rb") as f:
@@ -311,6 +307,12 @@ def compile(keep_original, fingerprint, compress):
311
307
  click.secho(f"Error in {name} (exit {result.returncode})", fg="red")
312
308
  sys.exit(result.returncode)
313
309
 
310
+ # Then run installed package compile steps (like tailwind, typically should run last...)
311
+ for entry_point in entry_points(group="plain.assets.compile"):
312
+ click.secho(f"Running {entry_point.name}", bold=True)
313
+ result = entry_point.load()()
314
+ print()
315
+
314
316
  # Compile our assets
315
317
  target_dir = get_compiled_path()
316
318
  click.secho(f"Compiling assets to {target_dir}", bold=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain
3
- Version: 0.19.0
3
+ Version: 0.19.1
4
4
  Summary: A web framework for building products with Python.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-File: LICENSE
@@ -16,7 +16,7 @@ plain/assets/urls.py,sha256=ZTIoM1Zq35JaXZ3wFhXhfGa7VoITDNlH9i5RS0R5xow,933
16
16
  plain/assets/views.py,sha256=2Y2KVJinlaMBB2ZyMAVPj_ejuMv3cCO079TN8lSsbd8,9237
17
17
  plain/cli/README.md,sha256=TvWCnNwb1rNthPzJglCRMKacN5H_RLeEjYBMe62Uz4M,2461
18
18
  plain/cli/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
19
- plain/cli/cli.py,sha256=LuX6wNx_HdWwUaeB-4TWiBNn7Uhn94AJ-Db-hrPFin8,14454
19
+ plain/cli/cli.py,sha256=UNWIVnx2r2qn-eZejh2F_UA9C80HDNFysDd1rAWh2K4,14593
20
20
  plain/cli/formatting.py,sha256=1hZH13y1qwHcU2K2_Na388nw9uvoeQH8LrWL-O9h8Yc,2207
21
21
  plain/cli/packages.py,sha256=FqRJaizaxpQ8lSS4nYNjqIGpYGDbeTmCXCvkGxusGOM,2160
22
22
  plain/cli/print.py,sha256=XraUYrgODOJquIiEv78wSCYGRBplHXtXSS9QtFG5hqY,217
@@ -138,8 +138,8 @@ plain/views/forms.py,sha256=RhlaUcZCkeqokY_fvv-NOS-kgZAG4XhDLOPbf9K_Zlc,2691
138
138
  plain/views/objects.py,sha256=fRfS6KNehIGqkbPw4nSafj8HStxYExHmbggolBbzcxs,7921
139
139
  plain/views/redirect.py,sha256=KLnlktzK6ZNMTlaEiZpMKQMEP5zeTgGLJ9BIkIJfwBo,1733
140
140
  plain/views/templates.py,sha256=nF9CcdhhjAyp3LB0RrSYnBaHpHzMfPSw719RCdcXk7o,2007
141
- plain-0.19.0.dist-info/METADATA,sha256=DN5qV_oxbzA6AKRICXSzZ2xhdhKI8w8T_K8SgZiwwNE,2518
142
- plain-0.19.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
143
- plain-0.19.0.dist-info/entry_points.txt,sha256=DHHprvufgd7xypiBiqMANYRnpJ9xPPYhYbnPGwOkWqE,40
144
- plain-0.19.0.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
145
- plain-0.19.0.dist-info/RECORD,,
141
+ plain-0.19.1.dist-info/METADATA,sha256=RlzXMJklCiL5RItFRnMBVVGWkv5DJ4mZWNWAQiTrToY,2518
142
+ plain-0.19.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
143
+ plain-0.19.1.dist-info/entry_points.txt,sha256=DHHprvufgd7xypiBiqMANYRnpJ9xPPYhYbnPGwOkWqE,40
144
+ plain-0.19.1.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
145
+ plain-0.19.1.dist-info/RECORD,,
File without changes