ominfra 0.0.0.dev134__tar.gz → 0.0.0.dev136__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. {ominfra-0.0.0.dev134/ominfra.egg-info → ominfra-0.0.0.dev136}/PKG-INFO +3 -3
  2. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/_executor.py +9 -6
  3. ominfra-0.0.0.dev136/ominfra/manage/new/_manage.py +1646 -0
  4. ominfra-0.0.0.dev136/ominfra/manage/new/commands/base.py +25 -0
  5. ominfra-0.0.0.dev136/ominfra/manage/new/commands/subprocess.py +73 -0
  6. ominfra-0.0.0.dev136/ominfra/manage/new/main.py +162 -0
  7. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/pyremote.py +21 -7
  8. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/scripts/journald2aws.py +9 -6
  9. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/scripts/supervisor.py +13 -7
  10. ominfra-0.0.0.dev136/ominfra/supervisor/__init__.py +1 -0
  11. ominfra-0.0.0.dev136/ominfra/tools/__init__.py +0 -0
  12. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136/ominfra.egg-info}/PKG-INFO +3 -3
  13. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra.egg-info/SOURCES.txt +6 -0
  14. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra.egg-info/requires.txt +2 -2
  15. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/pyproject.toml +3 -3
  16. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/LICENSE +0 -0
  17. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/MANIFEST.in +0 -0
  18. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/README.rst +0 -0
  19. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/.manifests.json +0 -0
  20. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/__about__.py +0 -0
  21. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/__init__.py +0 -0
  22. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/__init__.py +0 -0
  23. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/__init__.py +0 -0
  24. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/__main__.py +0 -0
  25. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/auth.py +0 -0
  26. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/cli.py +0 -0
  27. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/dataclasses.py +0 -0
  28. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/journald2aws/__init__.py +0 -0
  29. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/journald2aws/__main__.py +0 -0
  30. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/journald2aws/cursor.py +0 -0
  31. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/journald2aws/driver.py +0 -0
  32. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/journald2aws/main.py +0 -0
  33. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/journald2aws/poster.py +0 -0
  34. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/logs.py +0 -0
  35. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/aws/metadata.py +0 -0
  36. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/gcp/__init__.py +0 -0
  37. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/clouds/gcp/auth.py +0 -0
  38. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/cmds.py +0 -0
  39. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/configs.py +0 -0
  40. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/journald/__init__.py +0 -0
  41. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/journald/fields.py +0 -0
  42. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/journald/genmessages.py +0 -0
  43. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/journald/messages.py +0 -0
  44. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/journald/tailer.py +0 -0
  45. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/__init__.py +0 -0
  46. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/__init__.py +0 -0
  47. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/configs.py +0 -0
  48. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/executor/__init__.py +0 -0
  49. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/executor/base.py +0 -0
  50. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/executor/concerns/__init__.py +0 -0
  51. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/executor/concerns/dirs.py +0 -0
  52. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/executor/concerns/nginx.py +0 -0
  53. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/executor/concerns/repo.py +0 -0
  54. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/executor/concerns/supervisor.py +0 -0
  55. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/executor/concerns/systemd.py +0 -0
  56. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/executor/concerns/user.py +0 -0
  57. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/executor/concerns/venv.py +0 -0
  58. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/executor/main.py +0 -0
  59. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/__init__.py +0 -0
  60. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/_main.py +0 -0
  61. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/base.py +0 -0
  62. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/configs.py +0 -0
  63. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/deploy.py +0 -0
  64. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/main.py +0 -0
  65. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/nginx.py +0 -0
  66. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/repo.py +0 -0
  67. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/runtime.py +0 -0
  68. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/site.py +0 -0
  69. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/supervisor.py +0 -0
  70. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/poly/venv.py +0 -0
  71. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/deploy/remote.py +0 -0
  72. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/manage/manage.py +0 -0
  73. {ominfra-0.0.0.dev134/ominfra/supervisor → ominfra-0.0.0.dev136/ominfra/manage/new}/__init__.py +0 -0
  74. {ominfra-0.0.0.dev134/ominfra/scripts → ominfra-0.0.0.dev136/ominfra/manage/new/commands}/__init__.py +0 -0
  75. {ominfra-0.0.0.dev134/ominfra/supervisor/utils → ominfra-0.0.0.dev136/ominfra/scripts}/__init__.py +0 -0
  76. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/ssh.py +0 -0
  77. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/LICENSE.txt +0 -0
  78. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/__main__.py +0 -0
  79. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/configs.py +0 -0
  80. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/dispatchers.py +0 -0
  81. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/dispatchersimpl.py +0 -0
  82. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/events.py +0 -0
  83. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/exceptions.py +0 -0
  84. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/groups.py +0 -0
  85. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/groupsimpl.py +0 -0
  86. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/http.py +0 -0
  87. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/inject.py +0 -0
  88. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/io.py +0 -0
  89. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/main.py +0 -0
  90. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/pipes.py +0 -0
  91. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/privileges.py +0 -0
  92. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/process.py +0 -0
  93. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/processimpl.py +0 -0
  94. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/setup.py +0 -0
  95. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/setupimpl.py +0 -0
  96. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/signals.py +0 -0
  97. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/spawning.py +0 -0
  98. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/spawningimpl.py +0 -0
  99. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/states.py +0 -0
  100. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/supervisor.py +0 -0
  101. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/types.py +0 -0
  102. {ominfra-0.0.0.dev134/ominfra/tailscale → ominfra-0.0.0.dev136/ominfra/supervisor/utils}/__init__.py +0 -0
  103. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/utils/collections.py +0 -0
  104. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/utils/diag.py +0 -0
  105. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/utils/fds.py +0 -0
  106. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/utils/fs.py +0 -0
  107. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/utils/os.py +0 -0
  108. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/utils/ostypes.py +0 -0
  109. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/utils/signals.py +0 -0
  110. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/utils/strings.py +0 -0
  111. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/supervisor/utils/users.py +0 -0
  112. {ominfra-0.0.0.dev134/ominfra/tools → ominfra-0.0.0.dev136/ominfra/tailscale}/__init__.py +0 -0
  113. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/tailscale/api.py +0 -0
  114. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/tailscale/cli.py +0 -0
  115. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/threadworkers.py +0 -0
  116. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra/tools/listresources.py +0 -0
  117. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra.egg-info/dependency_links.txt +0 -0
  118. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra.egg-info/entry_points.txt +0 -0
  119. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/ominfra.egg-info/top_level.txt +0 -0
  120. {ominfra-0.0.0.dev134 → ominfra-0.0.0.dev136}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ominfra
3
- Version: 0.0.0.dev134
3
+ Version: 0.0.0.dev136
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.dev134
16
- Requires-Dist: omlish==0.0.0.dev134
15
+ Requires-Dist: omdev==0.0.0.dev136
16
+ Requires-Dist: omlish==0.0.0.dev136
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
- impls = [ # type: ignore
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)