ominfra 0.0.0.dev62__py3-none-any.whl → 0.0.0.dev64__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/deploy/_executor.py +21 -20
- ominfra/pyremote/_runcommands.py +21 -20
- {ominfra-0.0.0.dev62.dist-info → ominfra-0.0.0.dev64.dist-info}/METADATA +3 -3
- {ominfra-0.0.0.dev62.dist-info → ominfra-0.0.0.dev64.dist-info}/RECORD +8 -8
- {ominfra-0.0.0.dev62.dist-info → ominfra-0.0.0.dev64.dist-info}/LICENSE +0 -0
- {ominfra-0.0.0.dev62.dist-info → ominfra-0.0.0.dev64.dist-info}/WHEEL +0 -0
- {ominfra-0.0.0.dev62.dist-info → ominfra-0.0.0.dev64.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev62.dist-info → ominfra-0.0.0.dev64.dist-info}/top_level.txt +0 -0
ominfra/deploy/_executor.py
CHANGED
@@ -740,29 +740,30 @@ def register_opj_marshaler(ty: ta.Any, m: ObjMarshaler) -> None:
|
|
740
740
|
|
741
741
|
|
742
742
|
def _make_obj_marshaler(ty: ta.Any) -> ObjMarshaler:
|
743
|
-
if isinstance(ty, type)
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
743
|
+
if isinstance(ty, type):
|
744
|
+
if abc.ABC in ty.__bases__:
|
745
|
+
impls = [ # type: ignore
|
746
|
+
PolymorphicObjMarshaler.Impl(
|
747
|
+
ity,
|
748
|
+
ity.__qualname__,
|
749
|
+
get_obj_marshaler(ity),
|
750
|
+
)
|
751
|
+
for ity in deep_subclasses(ty)
|
752
|
+
if abc.ABC not in ity.__bases__
|
753
|
+
]
|
754
|
+
return PolymorphicObjMarshaler(
|
755
|
+
{i.ty: i for i in impls},
|
756
|
+
{i.tag: i for i in impls},
|
749
757
|
)
|
750
|
-
for ity in deep_subclasses(ty)
|
751
|
-
if abc.ABC not in ity.__bases__
|
752
|
-
]
|
753
|
-
return PolymorphicObjMarshaler(
|
754
|
-
{i.ty: i for i in impls},
|
755
|
-
{i.tag: i for i in impls},
|
756
|
-
)
|
757
758
|
|
758
|
-
|
759
|
-
|
759
|
+
if issubclass(ty, enum.Enum):
|
760
|
+
return EnumObjMarshaler(ty)
|
760
761
|
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
762
|
+
if dc.is_dataclass(ty):
|
763
|
+
return DataclassObjMarshaler(
|
764
|
+
ty,
|
765
|
+
{f.name: get_obj_marshaler(f.type) for f in dc.fields(ty)},
|
766
|
+
)
|
766
767
|
|
767
768
|
if is_generic_alias(ty):
|
768
769
|
try:
|
ominfra/pyremote/_runcommands.py
CHANGED
@@ -823,29 +823,30 @@ def register_opj_marshaler(ty: ta.Any, m: ObjMarshaler) -> None:
|
|
823
823
|
|
824
824
|
|
825
825
|
def _make_obj_marshaler(ty: ta.Any) -> ObjMarshaler:
|
826
|
-
if isinstance(ty, type)
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
826
|
+
if isinstance(ty, type):
|
827
|
+
if abc.ABC in ty.__bases__:
|
828
|
+
impls = [ # type: ignore
|
829
|
+
PolymorphicObjMarshaler.Impl(
|
830
|
+
ity,
|
831
|
+
ity.__qualname__,
|
832
|
+
get_obj_marshaler(ity),
|
833
|
+
)
|
834
|
+
for ity in deep_subclasses(ty)
|
835
|
+
if abc.ABC not in ity.__bases__
|
836
|
+
]
|
837
|
+
return PolymorphicObjMarshaler(
|
838
|
+
{i.ty: i for i in impls},
|
839
|
+
{i.tag: i for i in impls},
|
832
840
|
)
|
833
|
-
for ity in deep_subclasses(ty)
|
834
|
-
if abc.ABC not in ity.__bases__
|
835
|
-
]
|
836
|
-
return PolymorphicObjMarshaler(
|
837
|
-
{i.ty: i for i in impls},
|
838
|
-
{i.tag: i for i in impls},
|
839
|
-
)
|
840
841
|
|
841
|
-
|
842
|
-
|
842
|
+
if issubclass(ty, enum.Enum):
|
843
|
+
return EnumObjMarshaler(ty)
|
843
844
|
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
845
|
+
if dc.is_dataclass(ty):
|
846
|
+
return DataclassObjMarshaler(
|
847
|
+
ty,
|
848
|
+
{f.name: get_obj_marshaler(f.type) for f in dc.fields(ty)},
|
849
|
+
)
|
849
850
|
|
850
851
|
if is_generic_alias(ty):
|
851
852
|
try:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ominfra
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev64
|
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.dev64
|
16
|
+
Requires-Dist: omlish ==0.0.0.dev64
|
17
17
|
Provides-Extra: all
|
18
18
|
Requires-Dist: paramiko ~=3.5 ; extra == 'all'
|
19
19
|
Requires-Dist: asyncssh ~=2.17 ; (python_version < "3.13") and extra == 'all'
|
@@ -10,7 +10,7 @@ ominfra/clouds/aws/auth.py,sha256=EW3lK1U0hnjXkTn1KWJeuv9GG0ibbKdvgLD0P6HJtwo,55
|
|
10
10
|
ominfra/clouds/aws/cli.py,sha256=OJVVLIwSy1378drkgP1ke_JltbyzBmnrB_Lom6A83os,510
|
11
11
|
ominfra/clouds/aws/metadata.py,sha256=XR1BuMdQheyeFjjA3MN8GCNWVAp5ahoPdbWXEmViutQ,2767
|
12
12
|
ominfra/deploy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
|
-
ominfra/deploy/_executor.py,sha256=
|
13
|
+
ominfra/deploy/_executor.py,sha256=Xoib_itZzHzAQJ-AuJ2VVmGW5TG20DxUDaeDRbfs5cQ,32569
|
14
14
|
ominfra/deploy/configs.py,sha256=qi0kwT7G2NH7dXLOQic-u6R3yeadup_QtvrjwWIggbM,435
|
15
15
|
ominfra/deploy/remote.py,sha256=6ACmpXU1uBdyGs3Xsp97ktKFq30cJlzN9LRWNUWlGY4,2144
|
16
16
|
ominfra/deploy/executor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
@@ -39,16 +39,16 @@ ominfra/deploy/poly/venv.py,sha256=BoipDEa4NTeodjf3L57KJfq9eGKLagFNKwD8pS4yrzA,1
|
|
39
39
|
ominfra/manage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
40
40
|
ominfra/manage/manage.py,sha256=BttL8LFEknHZE_h2Pt5dAqbfUkv6qy43WI0raXBZ1a8,151
|
41
41
|
ominfra/pyremote/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
42
|
-
ominfra/pyremote/_runcommands.py,sha256=
|
42
|
+
ominfra/pyremote/_runcommands.py,sha256=nPtvx_oFHIViYb7V0ius23TF_2_SmEfDzdxa1_5LISc,26405
|
43
43
|
ominfra/pyremote/bootstrap.py,sha256=RvMO3YGaN1E4sgUi1JEtiPak8cjvqtc_vRCq1yqbeZg,3370
|
44
44
|
ominfra/pyremote/runcommands.py,sha256=bviS0_TDIoZVAe4h-_iavbvJtVSFu8lnk7fQ5iasCWE,1571
|
45
45
|
ominfra/tailscale/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
46
46
|
ominfra/tailscale/cli.py,sha256=Ltg6RVFsMLLPjLzoGwM6sxjmwjEVEYHAdrqmCc4N1HM,3174
|
47
47
|
ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
48
48
|
ominfra/tools/listresources.py,sha256=L4t5rszm9ulcdWyr7n48_R9d5Etg4S2a4WQhlbHDtnQ,6106
|
49
|
-
ominfra-0.0.0.
|
50
|
-
ominfra-0.0.0.
|
51
|
-
ominfra-0.0.0.
|
52
|
-
ominfra-0.0.0.
|
53
|
-
ominfra-0.0.0.
|
54
|
-
ominfra-0.0.0.
|
49
|
+
ominfra-0.0.0.dev64.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
50
|
+
ominfra-0.0.0.dev64.dist-info/METADATA,sha256=EsQoc-53U3y019dx7smG7X1WvJwbL8TlzHY-M7dR8tE,799
|
51
|
+
ominfra-0.0.0.dev64.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
52
|
+
ominfra-0.0.0.dev64.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
|
53
|
+
ominfra-0.0.0.dev64.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
|
54
|
+
ominfra-0.0.0.dev64.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|