ominfra 0.0.0.dev291__py3-none-any.whl → 0.0.0.dev292__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.
- ominfra/scripts/journald2aws.py +5 -3
- ominfra/scripts/manage.py +5 -3
- {ominfra-0.0.0.dev291.dist-info → ominfra-0.0.0.dev292.dist-info}/METADATA +3 -3
- {ominfra-0.0.0.dev291.dist-info → ominfra-0.0.0.dev292.dist-info}/RECORD +8 -8
- {ominfra-0.0.0.dev291.dist-info → ominfra-0.0.0.dev292.dist-info}/WHEEL +0 -0
- {ominfra-0.0.0.dev291.dist-info → ominfra-0.0.0.dev292.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev291.dist-info → ominfra-0.0.0.dev292.dist-info}/licenses/LICENSE +0 -0
- {ominfra-0.0.0.dev291.dist-info → ominfra-0.0.0.dev292.dist-info}/top_level.txt +0 -0
ominfra/scripts/journald2aws.py
CHANGED
@@ -3230,7 +3230,9 @@ class AsyncExitStacked:
|
|
3230
3230
|
|
3231
3231
|
|
3232
3232
|
@contextlib.contextmanager
|
3233
|
-
def defer(fn: ta.Callable) -> ta.Generator[ta.Callable, None, None]:
|
3233
|
+
def defer(fn: ta.Callable, *args: ta.Any, **kwargs: ta.Any) -> ta.Generator[ta.Callable, None, None]:
|
3234
|
+
if args or kwargs:
|
3235
|
+
fn = functools.partial(fn, *args, **kwargs)
|
3234
3236
|
try:
|
3235
3237
|
yield fn
|
3236
3238
|
finally:
|
@@ -3238,11 +3240,11 @@ def defer(fn: ta.Callable) -> ta.Generator[ta.Callable, None, None]:
|
|
3238
3240
|
|
3239
3241
|
|
3240
3242
|
@contextlib.asynccontextmanager
|
3241
|
-
async def adefer(fn: ta.
|
3243
|
+
async def adefer(fn: ta.Awaitable) -> ta.AsyncGenerator[ta.Awaitable, None]:
|
3242
3244
|
try:
|
3243
3245
|
yield fn
|
3244
3246
|
finally:
|
3245
|
-
await fn
|
3247
|
+
await fn
|
3246
3248
|
|
3247
3249
|
|
3248
3250
|
##
|
ominfra/scripts/manage.py
CHANGED
@@ -5744,7 +5744,9 @@ class AsyncExitStacked:
|
|
5744
5744
|
|
5745
5745
|
|
5746
5746
|
@contextlib.contextmanager
|
5747
|
-
def defer(fn: ta.Callable) -> ta.Generator[ta.Callable, None, None]:
|
5747
|
+
def defer(fn: ta.Callable, *args: ta.Any, **kwargs: ta.Any) -> ta.Generator[ta.Callable, None, None]:
|
5748
|
+
if args or kwargs:
|
5749
|
+
fn = functools.partial(fn, *args, **kwargs)
|
5748
5750
|
try:
|
5749
5751
|
yield fn
|
5750
5752
|
finally:
|
@@ -5752,11 +5754,11 @@ def defer(fn: ta.Callable) -> ta.Generator[ta.Callable, None, None]:
|
|
5752
5754
|
|
5753
5755
|
|
5754
5756
|
@contextlib.asynccontextmanager
|
5755
|
-
async def adefer(fn: ta.
|
5757
|
+
async def adefer(fn: ta.Awaitable) -> ta.AsyncGenerator[ta.Awaitable, None]:
|
5756
5758
|
try:
|
5757
5759
|
yield fn
|
5758
5760
|
finally:
|
5759
|
-
await fn
|
5761
|
+
await fn
|
5760
5762
|
|
5761
5763
|
|
5762
5764
|
##
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ominfra
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev292
|
4
4
|
Summary: ominfra
|
5
5
|
Author: wrmsr
|
6
6
|
License: BSD-3-Clause
|
@@ -12,8 +12,8 @@ Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Operating System :: POSIX
|
13
13
|
Requires-Python: >=3.12
|
14
14
|
License-File: LICENSE
|
15
|
-
Requires-Dist: omdev==0.0.0.
|
16
|
-
Requires-Dist: omlish==0.0.0.
|
15
|
+
Requires-Dist: omdev==0.0.0.dev292
|
16
|
+
Requires-Dist: omlish==0.0.0.dev292
|
17
17
|
Provides-Extra: all
|
18
18
|
Requires-Dist: paramiko~=3.5; extra == "all"
|
19
19
|
Requires-Dist: asyncssh~=2.20; extra == "all"
|
@@ -112,8 +112,8 @@ ominfra/manage/targets/connection.py,sha256=rVI1YJxFClcF-sdttqWyIz9_XjPI01GUdwxY
|
|
112
112
|
ominfra/manage/targets/inject.py,sha256=P4597xWM-V3I_gCt2O71OLhYQkkXtuJvkYRsIbhhMcE,1561
|
113
113
|
ominfra/manage/targets/targets.py,sha256=7GP6UAZyJFEhpkJN6UQdpr_WN3p7C76v-s445y-WB6U,1885
|
114
114
|
ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
115
|
-
ominfra/scripts/journald2aws.py,sha256=
|
116
|
-
ominfra/scripts/manage.py,sha256=
|
115
|
+
ominfra/scripts/journald2aws.py,sha256=5dnfVtg2r6o-iyWhrwUnlD68hXF4-gaJXndKf5OEIJ0,171278
|
116
|
+
ominfra/scripts/manage.py,sha256=HJz1ACELOzM26JWZ4xduyECiGqDe1X4SN7mExGXl3No,381664
|
117
117
|
ominfra/scripts/supervisor.py,sha256=LBu-YXrcrlJrjvquPNBn5iw0GqrqHh9N3uB-E5eTrRs,299907
|
118
118
|
ominfra/supervisor/LICENSE.txt,sha256=ZrHY15PVR98y26Yg6iQfa-SXnUaYTDhrUsPVcEO5OKM,1874
|
119
119
|
ominfra/supervisor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
@@ -156,9 +156,9 @@ ominfra/tailscale/api.py,sha256=C5-t_b6jZXUWcy5k8bXm7CFnk73pSdrlMOgGDeGVrpw,1370
|
|
156
156
|
ominfra/tailscale/cli.py,sha256=3FnJbgpLw6gInTfhERd1mDy9ijjMUGxkdYVo43Tnxx4,3555
|
157
157
|
ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
158
158
|
ominfra/tools/listresources.py,sha256=auGP1LlbBJSFKUWNvQo_UzA8IsBNZBTMwEkFFRJ4FX4,6185
|
159
|
-
ominfra-0.0.0.
|
160
|
-
ominfra-0.0.0.
|
161
|
-
ominfra-0.0.0.
|
162
|
-
ominfra-0.0.0.
|
163
|
-
ominfra-0.0.0.
|
164
|
-
ominfra-0.0.0.
|
159
|
+
ominfra-0.0.0.dev292.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
160
|
+
ominfra-0.0.0.dev292.dist-info/METADATA,sha256=5p1W9qv4lXXRJUpFVJD-c1QSE0bVh9LLArVJppyhPFI,753
|
161
|
+
ominfra-0.0.0.dev292.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
162
|
+
ominfra-0.0.0.dev292.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
|
163
|
+
ominfra-0.0.0.dev292.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
|
164
|
+
ominfra-0.0.0.dev292.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|