hmr 0.4.0__tar.gz → 0.4.0.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hmr
3
- Version: 0.4.0
3
+ Version: 0.4.0.1
4
4
  Summary: Hot Module Reload for Python
5
5
  Project-URL: repository, https://github.com/promplate/pyth-on-line/tree/reactivity
6
6
  Requires-Python: >=3.12
@@ -6,7 +6,7 @@ description = "Hot Module Reload for Python"
6
6
  dependencies = [
7
7
  "watchfiles>=0.21,<2 ; sys_platform != 'emscripten'",
8
8
  ]
9
- version = "0.4.0"
9
+ version = "0.4.0.1"
10
10
 
11
11
  [project.scripts]
12
12
  hmr = "reactivity.hmr:cli"
@@ -322,7 +322,9 @@ class AsyncReloader(BaseReloader):
322
322
  del self._stop_event
323
323
 
324
324
  async def keep_watching_until_interrupt(self):
325
+ call_pre_reload_hooks()
325
326
  with suppress(KeyboardInterrupt), create_effect(self.run_entry_file):
327
+ call_post_reload_hooks()
326
328
  await self.start_watching()
327
329
 
328
330
 
@@ -337,4 +339,4 @@ def cli():
337
339
  SyncReloader(entry).keep_watching_until_interrupt()
338
340
 
339
341
 
340
- __version__ = "0.4.0"
342
+ __version__ = "0.4.0.1"
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