hmr 0.6.1__tar.gz → 0.6.1.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,7 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hmr
3
- Version: 0.6.1
3
+ Version: 0.6.1.2
4
4
  Summary: Hot Module Reload for Python
5
+ Keywords: reactive-programming,reload,signals,hmr
6
+ Classifier: Development Status :: 5 - Production/Stable
7
+ Classifier: Intended Audience :: Developers
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
10
+ Classifier: Typing :: Typed
5
11
  Project-URL: repository, https://github.com/promplate/pyth-on-line/tree/reactivity
6
12
  Requires-Python: >=3.12
7
13
  Requires-Dist: watchfiles<2,>=0.21; sys_platform != "emscripten"
@@ -2,12 +2,25 @@
2
2
  name = "hmr"
3
3
  readme = "README.md"
4
4
  dynamic = []
5
+ classifiers = [
6
+ "Development Status :: 5 - Production/Stable",
7
+ "Intended Audience :: Developers",
8
+ "Operating System :: OS Independent",
9
+ "Topic :: Software Development :: Libraries :: Python Modules",
10
+ "Typing :: Typed",
11
+ ]
12
+ keywords = [
13
+ "reactive-programming",
14
+ "reload",
15
+ "signals",
16
+ "hmr",
17
+ ]
5
18
  requires-python = ">=3.12"
6
19
  description = "Hot Module Reload for Python"
7
20
  dependencies = [
8
21
  "watchfiles>=0.21,<2 ; sys_platform != 'emscripten'",
9
22
  ]
10
- version = "0.6.1"
23
+ version = "0.6.1.2"
11
24
 
12
25
  [project.scripts]
13
26
  hmr = "reactivity.hmr:cli"
@@ -84,7 +84,7 @@ class Reactive[K, V](Subscribable, MutableMapping[K, V]):
84
84
  return id(self)
85
85
 
86
86
  def _null(self):
87
- return Signal(self.UNSET, self._check_equality)
87
+ return Signal(self.UNSET, self._check_equality, context=self.context)
88
88
 
89
89
  def __init__(self, initial: Mapping[K, V] | None = None, check_equality=True, *, context: Context | None = None):
90
90
  super().__init__(context=context)
@@ -46,7 +46,7 @@ class NamespaceProxy(Reactive[str, Any]):
46
46
  self.module = module
47
47
 
48
48
  def _null(self):
49
- self.module.load.subscribers.add(signal := Name(self.UNSET, self._check_equality, context=HMR_CONTEXT))
49
+ self.module.load.subscribers.add(signal := Name(self.UNSET, self._check_equality, context=self.context))
50
50
  signal.dependencies.add(self.module.load)
51
51
  return signal
52
52
 
@@ -127,7 +127,7 @@ class ReactiveModule(ModuleType):
127
127
  except KeyError as e:
128
128
  if name != "__path__" and (getattr := self.__namespace_proxy.get("__getattr__")):
129
129
  return getattr(name)
130
- raise AttributeError(*e.args) from e
130
+ raise AttributeError(*e.args) from None
131
131
 
132
132
  def __setattr__(self, name: str, value):
133
133
  if is_called_internally():
@@ -344,4 +344,4 @@ def cli():
344
344
  reloader.keep_watching_until_interrupt()
345
345
 
346
346
 
347
- __version__ = "0.6.1"
347
+ __version__ = "0.6.1.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
File without changes
File without changes