hmr 0.1.0__tar.gz → 0.1.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.
- {hmr-0.1.0 → hmr-0.1.1.1}/PKG-INFO +1 -1
- {hmr-0.1.0 → hmr-0.1.1.1}/pyproject.toml +1 -1
- {hmr-0.1.0 → hmr-0.1.1.1}/reactivity/hmr.py +4 -3
- {hmr-0.1.0 → hmr-0.1.1.1}/reactivity/__init__.py +0 -0
- {hmr-0.1.0 → hmr-0.1.1.1}/reactivity/functional.py +0 -0
- {hmr-0.1.0 → hmr-0.1.1.1}/reactivity/helpers.py +0 -0
- {hmr-0.1.0 → hmr-0.1.1.1}/reactivity/primitives.py +0 -0
@@ -96,7 +96,7 @@ class ReactiveModuleLoader(Loader):
|
|
96
96
|
self._is_package = is_package
|
97
97
|
|
98
98
|
def create_module(self, spec: ModuleSpec):
|
99
|
-
namespace = {"__file__": str(self._file), "__spec__": spec, "__loader__": self}
|
99
|
+
namespace = {"__file__": str(self._file), "__spec__": spec, "__loader__": self, "__name__": spec.name}
|
100
100
|
if self._is_package:
|
101
101
|
assert self._file.name == "__init__.py"
|
102
102
|
namespace["__path__"] = [str(self._file.parent)]
|
@@ -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,
|
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.
|
263
|
+
__version__ = "0.1.1.1"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|