ominfra 0.0.0.dev134__tar.gz → 0.0.0.dev135__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {ominfra-0.0.0.dev134/ominfra.egg-info → ominfra-0.0.0.dev135}/PKG-INFO +3 -3
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/_executor.py +9 -6
- ominfra-0.0.0.dev135/ominfra/manage/new/_manage.py +1635 -0
- ominfra-0.0.0.dev135/ominfra/manage/new/commands/base.py +25 -0
- ominfra-0.0.0.dev135/ominfra/manage/new/commands/subprocess.py +73 -0
- ominfra-0.0.0.dev135/ominfra/manage/new/main.py +159 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/pyremote.py +7 -1
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/scripts/journald2aws.py +9 -6
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/scripts/supervisor.py +13 -7
- ominfra-0.0.0.dev135/ominfra/supervisor/__init__.py +1 -0
- ominfra-0.0.0.dev135/ominfra/tools/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135/ominfra.egg-info}/PKG-INFO +3 -3
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra.egg-info/SOURCES.txt +6 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra.egg-info/requires.txt +2 -2
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/pyproject.toml +3 -3
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/LICENSE +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/MANIFEST.in +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/README.rst +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/.manifests.json +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/__about__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/__main__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/auth.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/cli.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/dataclasses.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/journald2aws/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/journald2aws/__main__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/journald2aws/cursor.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/journald2aws/driver.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/journald2aws/main.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/journald2aws/poster.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/logs.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/aws/metadata.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/gcp/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/clouds/gcp/auth.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/cmds.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/configs.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/journald/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/journald/fields.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/journald/genmessages.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/journald/messages.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/journald/tailer.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/configs.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/executor/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/executor/base.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/executor/concerns/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/executor/concerns/dirs.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/executor/concerns/nginx.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/executor/concerns/repo.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/executor/concerns/supervisor.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/executor/concerns/systemd.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/executor/concerns/user.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/executor/concerns/venv.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/executor/main.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/_main.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/base.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/configs.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/deploy.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/main.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/nginx.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/repo.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/runtime.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/site.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/supervisor.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/poly/venv.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/deploy/remote.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/manage/manage.py +0 -0
- {ominfra-0.0.0.dev134/ominfra/supervisor → ominfra-0.0.0.dev135/ominfra/manage/new}/__init__.py +0 -0
- {ominfra-0.0.0.dev134/ominfra/scripts → ominfra-0.0.0.dev135/ominfra/manage/new/commands}/__init__.py +0 -0
- {ominfra-0.0.0.dev134/ominfra/supervisor/utils → ominfra-0.0.0.dev135/ominfra/scripts}/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/ssh.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/LICENSE.txt +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/__main__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/configs.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/dispatchers.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/dispatchersimpl.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/events.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/exceptions.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/groups.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/groupsimpl.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/http.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/inject.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/io.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/main.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/pipes.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/privileges.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/process.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/processimpl.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/setup.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/setupimpl.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/signals.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/spawning.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/spawningimpl.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/states.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/supervisor.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/types.py +0 -0
- {ominfra-0.0.0.dev134/ominfra/tailscale → ominfra-0.0.0.dev135/ominfra/supervisor/utils}/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/utils/collections.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/utils/diag.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/utils/fds.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/utils/fs.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/utils/os.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/utils/ostypes.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/utils/signals.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/utils/strings.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/supervisor/utils/users.py +0 -0
- {ominfra-0.0.0.dev134/ominfra/tools → ominfra-0.0.0.dev135/ominfra/tailscale}/__init__.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/tailscale/api.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/tailscale/cli.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/threadworkers.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra/tools/listresources.py +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra.egg-info/dependency_links.txt +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra.egg-info/entry_points.txt +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/ominfra.egg-info/top_level.txt +0 -0
- {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev135}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ominfra
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev135
|
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.dev135
|
16
|
+
Requires-Dist: omlish==0.0.0.dev135
|
17
17
|
Provides-Extra: all
|
18
18
|
Requires-Dist: paramiko~=3.5; extra == "all"
|
19
19
|
Requires-Dist: asyncssh~=2.18; extra == "all"
|
@@ -734,6 +734,13 @@ class PolymorphicObjMarshaler(ObjMarshaler):
|
|
734
734
|
impls_by_ty: ta.Mapping[type, Impl]
|
735
735
|
impls_by_tag: ta.Mapping[str, Impl]
|
736
736
|
|
737
|
+
@classmethod
|
738
|
+
def of(cls, impls: ta.Iterable[Impl]) -> 'PolymorphicObjMarshaler':
|
739
|
+
return cls(
|
740
|
+
{i.ty: i for i in impls},
|
741
|
+
{i.tag: i for i in impls},
|
742
|
+
)
|
743
|
+
|
737
744
|
def marshal(self, o: ta.Any) -> ta.Any:
|
738
745
|
impl = self.impls_by_ty[type(o)]
|
739
746
|
return {impl.tag: impl.m.marshal(o)}
|
@@ -821,7 +828,7 @@ def _make_obj_marshaler(
|
|
821
828
|
) -> ObjMarshaler:
|
822
829
|
if isinstance(ty, type):
|
823
830
|
if abc.ABC in ty.__bases__:
|
824
|
-
|
831
|
+
return PolymorphicObjMarshaler.of([ # type: ignore
|
825
832
|
PolymorphicObjMarshaler.Impl(
|
826
833
|
ity,
|
827
834
|
ity.__qualname__,
|
@@ -829,11 +836,7 @@ def _make_obj_marshaler(
|
|
829
836
|
)
|
830
837
|
for ity in deep_subclasses(ty)
|
831
838
|
if abc.ABC not in ity.__bases__
|
832
|
-
]
|
833
|
-
return PolymorphicObjMarshaler(
|
834
|
-
{i.ty: i for i in impls},
|
835
|
-
{i.tag: i for i in impls},
|
836
|
-
)
|
839
|
+
])
|
837
840
|
|
838
841
|
if issubclass(ty, enum.Enum):
|
839
842
|
return EnumObjMarshaler(ty)
|