oarepo-runtime 2.0.0.dev28__py3-none-any.whl → 2.0.0.dev29__py3-none-any.whl

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.
@@ -19,6 +19,6 @@ from .api import Model
19
19
  from .ext import OARepoRuntime
20
20
  from .proxies import current_runtime
21
21
 
22
- __version__ = "2.0.0dev28"
22
+ __version__ = "2.0.0dev29"
23
23
 
24
24
  __all__ = ("Model", "OARepoRuntime", "__version__", "current_runtime")
oarepo_runtime/proxies.py CHANGED
@@ -20,6 +20,10 @@ from werkzeug.local import LocalProxy
20
20
  if TYPE_CHECKING:
21
21
  from oarepo_runtime.ext import OARepoRuntime
22
22
 
23
- current_runtime: LocalProxy[OARepoRuntime] = LocalProxy(lambda: current_app.extensions["oarepo-runtime"]) # type: ignore[assignment]
23
+ current_runtime: OARepoRuntime # type: ignore[reportRedeclaration]
24
24
 
25
- current_timezone: ContextVar = ContextVar("timezone") # idk how or exactly why to use the LocalProxy here
25
+ # note: mypy does not understand LocalProxy[OARepoRuntime], so we type it as OARepoRuntime
26
+ # and ignore the redeclaration error
27
+ current_runtime = LocalProxy(lambda: current_app.extensions["oarepo-runtime"]) # type: ignore[assignment]
28
+
29
+ current_timezone: ContextVar = ContextVar("timezone")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oarepo-runtime
3
- Version: 2.0.0.dev28
3
+ Version: 2.0.0.dev29
4
4
  Summary: A set of runtime extensions of Invenio repository
5
5
  Project-URL: Homepage, https://github.com/oarepo/oarepo-runtime
6
6
  License-Expression: MIT
@@ -1,8 +1,8 @@
1
- oarepo_runtime/__init__.py,sha256=SB5ZZKCuzkUbuBlw_ngzm1suKgwrWG8OMXF4hw49T5Y,686
1
+ oarepo_runtime/__init__.py,sha256=-4q567a5EN2E15vN5XKgWTxD1CQQl2NpfVzsJTG6GzA,686
2
2
  oarepo_runtime/api.py,sha256=5MjhNwwjbbS7w7aql6pg8haKvqqr8QBmZBqJkWRWEw4,13237
3
3
  oarepo_runtime/config.py,sha256=RUEPFn_5bKp9Wb0OY-Fb3VK30m35vF5IsLjYaQHhP3g,3838
4
4
  oarepo_runtime/ext.py,sha256=NgiRNl_hwTvEWcXnNwVh_XCPJyvwr3dZkdPmkWvN1xo,8785
5
- oarepo_runtime/proxies.py,sha256=JhOklHoJO8-gPamvjY6jtF9tlOrvcuBXG9kVHPO-x3Q,782
5
+ oarepo_runtime/proxies.py,sha256=x8Y1iTP8QIzSI67s90VR0_5fvXuT1xlJXtAHsaoXFwg,903
6
6
  oarepo_runtime/py.typed,sha256=RznSCjXReEUI9zkmD25E8XniG_MvPpLBF6MyNZA8MmE,42
7
7
  oarepo_runtime/typing.py,sha256=vH8UUb4QTJowuvibwHaOOEwxx8i21LcOeplxJl0Yrew,1594
8
8
  oarepo_runtime/cli/__init__.py,sha256=H7GOeOBf0udgKWOdlAQswIMvRrD8BwcEjOVxIqP0Suw,731
@@ -41,8 +41,8 @@ oarepo_runtime/services/schema/__init__.py,sha256=jgAPI_uKC6Ug4KQWnwQVg3-aNaw-eH
41
41
  oarepo_runtime/services/schema/i18n.py,sha256=9D1zOQaPKAnYzejB0vO-m2BJYnam0N0Lrq4jID7twfE,3174
42
42
  oarepo_runtime/services/schema/i18n_ui.py,sha256=DbusphhGDeaobTt4nuwNgKZ6Houlu4Sv3SuMGkdjRRY,3582
43
43
  oarepo_runtime/services/schema/ui.py,sha256=6HPRMOytE7UQnGd4Z21kvYTpX5p_g2TmP2_v4pwkU8w,4524
44
- oarepo_runtime-2.0.0.dev28.dist-info/METADATA,sha256=p_h3OTOgDOBbAPP19O2iOVtCxMf7dc48yVRcz42O1yY,4723
45
- oarepo_runtime-2.0.0.dev28.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
46
- oarepo_runtime-2.0.0.dev28.dist-info/entry_points.txt,sha256=rOfs8R1oXFN_dLH9zAZ6ydkvr83mDajegc6NBIRsCMQ,318
47
- oarepo_runtime-2.0.0.dev28.dist-info/licenses/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
48
- oarepo_runtime-2.0.0.dev28.dist-info/RECORD,,
44
+ oarepo_runtime-2.0.0.dev29.dist-info/METADATA,sha256=gsUPMUKG3ihVSmVHmWT8N3szgm2f3WpCQfrpbOA4hkI,4723
45
+ oarepo_runtime-2.0.0.dev29.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
46
+ oarepo_runtime-2.0.0.dev29.dist-info/entry_points.txt,sha256=rOfs8R1oXFN_dLH9zAZ6ydkvr83mDajegc6NBIRsCMQ,318
47
+ oarepo_runtime-2.0.0.dev29.dist-info/licenses/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
48
+ oarepo_runtime-2.0.0.dev29.dist-info/RECORD,,