hmr 0.3.2.1__tar.gz → 0.3.2.2__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.3.2.1
3
+ Version: 0.3.2.2
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.3.2.1"
9
+ version = "0.3.2.2"
10
10
 
11
11
  [project.scripts]
12
12
  hmr = "reactivity.hmr:cli"
@@ -228,6 +228,8 @@ class BaseReloader:
228
228
  module.load.invalidate()
229
229
 
230
230
  for module in path2module.values():
231
+ if module.file.samefile(self.entry):
232
+ continue
231
233
  with self.error_filter:
232
234
  module.load()
233
235
  self.run_entry_file()
@@ -303,4 +305,4 @@ def cli():
303
305
  SyncReloader(entry).keep_watching_until_interrupt()
304
306
 
305
307
 
306
- __version__ = "0.3.2.1"
308
+ __version__ = "0.3.2.2"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes