ominfra 0.0.0.dev130__tar.gz → 0.0.0.dev132__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {ominfra-0.0.0.dev130/ominfra.egg-info → ominfra-0.0.0.dev132}/PKG-INFO +3 -3
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/_executor.py +2 -2
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/_main.py +2 -2
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/pyremote/_runcommands.py +2 -2
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/scripts/journald2aws.py +14 -6
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/scripts/supervisor.py +266 -162
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/configs.py +17 -17
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/dispatchersimpl.py +12 -11
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/events.py +5 -2
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/http.py +7 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/inject.py +8 -2
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/io.py +2 -2
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/main.py +13 -10
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/pipes.py +2 -2
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/privileges.py +4 -6
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/processimpl.py +30 -31
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/setupimpl.py +16 -16
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/spawningimpl.py +1 -1
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/states.py +11 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/supervisor.py +27 -27
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/types.py +2 -1
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/utils/os.py +1 -1
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/utils/strings.py +2 -2
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132/ominfra.egg-info}/PKG-INFO +3 -3
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra.egg-info/requires.txt +2 -2
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/pyproject.toml +3 -3
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/LICENSE +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/MANIFEST.in +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/README.rst +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/.manifests.json +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/__about__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/__main__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/auth.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/cli.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/dataclasses.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/journald2aws/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/journald2aws/__main__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/journald2aws/cursor.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/journald2aws/driver.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/journald2aws/main.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/journald2aws/poster.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/logs.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/aws/metadata.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/gcp/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/clouds/gcp/auth.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/cmds.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/configs.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/configs.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/executor/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/executor/base.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/executor/concerns/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/executor/concerns/dirs.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/executor/concerns/nginx.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/executor/concerns/repo.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/executor/concerns/supervisor.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/executor/concerns/systemd.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/executor/concerns/user.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/executor/concerns/venv.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/executor/main.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/base.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/configs.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/deploy.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/main.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/nginx.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/repo.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/runtime.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/site.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/supervisor.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/poly/venv.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/deploy/remote.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/journald/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/journald/fields.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/journald/genmessages.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/journald/messages.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/journald/tailer.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/manage/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/manage/manage.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/pyremote/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/pyremote/bootstrap.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/pyremote/runcommands.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/scripts/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/ssh.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/LICENSE.txt +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/__main__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/dispatchers.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/exceptions.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/groups.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/groupsimpl.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/process.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/setup.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/signals.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/spawning.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/utils/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/utils/collections.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/utils/diag.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/utils/fds.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/utils/fs.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/utils/ostypes.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/utils/signals.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/supervisor/utils/users.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/tailscale/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/tailscale/api.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/tailscale/cli.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/threadworkers.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/tools/__init__.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra/tools/listresources.py +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra.egg-info/SOURCES.txt +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra.egg-info/dependency_links.txt +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra.egg-info/entry_points.txt +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/ominfra.egg-info/top_level.txt +0 -0
- {ominfra-0.0.0.dev130 → ominfra-0.0.0.dev132}/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.dev132
|
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.dev132
|
16
|
+
Requires-Dist: omlish==0.0.0.dev132
|
17
17
|
Provides-Extra: all
|
18
18
|
Requires-Dist: paramiko~=3.5; extra == "all"
|
19
19
|
Requires-Dist: asyncssh~=2.18; extra == "all"
|
@@ -82,10 +82,10 @@ if sys.version_info < (3, 8):
|
|
82
82
|
########################################
|
83
83
|
|
84
84
|
|
85
|
-
#
|
85
|
+
# ../../../omlish/lite/cached.py
|
86
86
|
T = ta.TypeVar('T')
|
87
87
|
|
88
|
-
#
|
88
|
+
# ../../../omlish/lite/check.py
|
89
89
|
SizedT = ta.TypeVar('SizedT', bound=ta.Sized)
|
90
90
|
|
91
91
|
|
@@ -33,10 +33,10 @@ if sys.version_info < (3, 8):
|
|
33
33
|
########################################
|
34
34
|
|
35
35
|
|
36
|
-
#
|
36
|
+
# ../../../omlish/lite/cached.py
|
37
37
|
T = ta.TypeVar('T')
|
38
38
|
|
39
|
-
#
|
39
|
+
# base.py
|
40
40
|
ConcernT = ta.TypeVar('ConcernT')
|
41
41
|
ConfigT = ta.TypeVar('ConfigT')
|
42
42
|
SiteConcernT = ta.TypeVar('SiteConcernT', bound='SiteConcern')
|
@@ -41,10 +41,10 @@ if sys.version_info < (3, 8):
|
|
41
41
|
########################################
|
42
42
|
|
43
43
|
|
44
|
-
#
|
44
|
+
# ../../omlish/lite/cached.py
|
45
45
|
T = ta.TypeVar('T')
|
46
46
|
|
47
|
-
#
|
47
|
+
# ../../omlish/lite/check.py
|
48
48
|
SizedT = ta.TypeVar('SizedT', bound=ta.Sized)
|
49
49
|
|
50
50
|
|
@@ -51,24 +51,24 @@ if sys.version_info < (3, 8):
|
|
51
51
|
########################################
|
52
52
|
|
53
53
|
|
54
|
-
#
|
54
|
+
# ../../../../omdev/toml/parser.py
|
55
55
|
TomlParseFloat = ta.Callable[[str], ta.Any]
|
56
56
|
TomlKey = ta.Tuple[str, ...]
|
57
57
|
TomlPos = int # ta.TypeAlias
|
58
58
|
|
59
|
-
#
|
59
|
+
# ../../../../omlish/lite/cached.py
|
60
60
|
T = ta.TypeVar('T')
|
61
61
|
|
62
|
-
#
|
62
|
+
# ../../../../omlish/lite/check.py
|
63
63
|
SizedT = ta.TypeVar('SizedT', bound=ta.Sized)
|
64
64
|
|
65
|
-
#
|
65
|
+
# ../../../../omlish/lite/contextmanagers.py
|
66
66
|
ExitStackedT = ta.TypeVar('ExitStackedT', bound='ExitStacked')
|
67
67
|
|
68
|
-
#
|
68
|
+
# ../../../configs.py
|
69
69
|
ConfigMapping = ta.Mapping[str, ta.Any]
|
70
70
|
|
71
|
-
#
|
71
|
+
# ../../../threadworkers.py
|
72
72
|
ThreadWorkerT = ta.TypeVar('ThreadWorkerT', bound='ThreadWorker')
|
73
73
|
|
74
74
|
|
@@ -1627,6 +1627,14 @@ class ExitStacked:
|
|
1627
1627
|
##
|
1628
1628
|
|
1629
1629
|
|
1630
|
+
@contextlib.contextmanager
|
1631
|
+
def defer(fn: ta.Callable) -> ta.Generator[ta.Callable, None, None]:
|
1632
|
+
try:
|
1633
|
+
yield fn
|
1634
|
+
finally:
|
1635
|
+
fn()
|
1636
|
+
|
1637
|
+
|
1630
1638
|
@contextlib.contextmanager
|
1631
1639
|
def attr_setting(obj, attr, val, *, default=None): # noqa
|
1632
1640
|
not_set = object()
|