hmr 0.1.0__tar.gz → 0.1.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.1.0
3
+ Version: 0.1.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",
8
8
  ]
9
- version = "0.1.0"
9
+ version = "0.1.1"
10
10
 
11
11
  [project.scripts]
12
12
  hmr = "reactivity.hmr:cli"
@@ -159,11 +159,12 @@ class BaseReloader:
159
159
  self.includes = includes
160
160
  self.excludes = excludes
161
161
  patch_meta_path(includes, excludes)
162
+ self.last_globals = {}
162
163
 
163
164
  @memoized_method
164
165
  def run_entry_file(self):
165
166
  try:
166
- run_path(self.entry, run_name="__main__")
167
+ self.last_globals = run_path(self.entry, self.last_globals, "__main__")
167
168
  except Exception as e:
168
169
  sys.excepthook(e.__class__, e, e.__traceback__)
169
170
 
@@ -259,4 +260,4 @@ def cli():
259
260
  SyncReloader(entry, excludes={".venv"}).keep_watching_until_interrupt()
260
261
 
261
262
 
262
- __version__ = "0.1.0"
263
+ __version__ = "0.1.1"
File without changes
File without changes
File without changes
File without changes