ominfra 0.0.0.dev123__py3-none-any.whl → 0.0.0.dev124__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- ominfra/deploy/_executor.py +7 -4
- ominfra/deploy/poly/_main.py +2 -4
- ominfra/pyremote/_runcommands.py +7 -4
- ominfra/scripts/journald2aws.py +7 -4
- ominfra/scripts/supervisor.py +1104 -13
- ominfra/supervisor/LICENSE.txt +28 -0
- ominfra/supervisor/inject.py +81 -0
- ominfra/supervisor/main.py +9 -74
- {ominfra-0.0.0.dev123.dist-info → ominfra-0.0.0.dev124.dist-info}/METADATA +7 -8
- {ominfra-0.0.0.dev123.dist-info → ominfra-0.0.0.dev124.dist-info}/RECORD +14 -12
- {ominfra-0.0.0.dev123.dist-info → ominfra-0.0.0.dev124.dist-info}/WHEEL +1 -1
- {ominfra-0.0.0.dev123.dist-info → ominfra-0.0.0.dev124.dist-info}/LICENSE +0 -0
- {ominfra-0.0.0.dev123.dist-info → ominfra-0.0.0.dev124.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev123.dist-info → ominfra-0.0.0.dev124.dist-info}/top_level.txt +0 -0
ominfra/deploy/_executor.py
CHANGED
@@ -76,8 +76,7 @@ import weakref # noqa
|
|
76
76
|
|
77
77
|
|
78
78
|
if sys.version_info < (3, 8):
|
79
|
-
raise OSError(
|
80
|
-
f'Requires python (3, 8), got {sys.version_info} from {sys.executable}') # noqa
|
79
|
+
raise OSError(f'Requires python (3, 8), got {sys.version_info} from {sys.executable}') # noqa
|
81
80
|
|
82
81
|
|
83
82
|
########################################
|
@@ -150,6 +149,11 @@ def check_not_isinstance(v: T, spec: ta.Union[type, tuple]) -> T:
|
|
150
149
|
return v
|
151
150
|
|
152
151
|
|
152
|
+
def check_none(v: T) -> None:
|
153
|
+
if v is not None:
|
154
|
+
raise ValueError(v)
|
155
|
+
|
156
|
+
|
153
157
|
def check_not_none(v: ta.Optional[T]) -> T:
|
154
158
|
if v is None:
|
155
159
|
raise ValueError
|
@@ -904,8 +908,7 @@ REQUIRED_PYTHON_VERSION = (3, 8)
|
|
904
908
|
|
905
909
|
def check_runtime_version() -> None:
|
906
910
|
if sys.version_info < REQUIRED_PYTHON_VERSION:
|
907
|
-
raise OSError(
|
908
|
-
f'Requires python {REQUIRED_PYTHON_VERSION}, got {sys.version_info} from {sys.executable}') # noqa
|
911
|
+
raise OSError(f'Requires python {REQUIRED_PYTHON_VERSION}, got {sys.version_info} from {sys.executable}') # noqa
|
909
912
|
|
910
913
|
|
911
914
|
########################################
|
ominfra/deploy/poly/_main.py
CHANGED
@@ -27,8 +27,7 @@ import typing as ta
|
|
27
27
|
|
28
28
|
|
29
29
|
if sys.version_info < (3, 8):
|
30
|
-
raise OSError(
|
31
|
-
f'Requires python (3, 8), got {sys.version_info} from {sys.executable}') # noqa
|
30
|
+
raise OSError(f'Requires python (3, 8), got {sys.version_info} from {sys.executable}') # noqa
|
32
31
|
|
33
32
|
|
34
33
|
########################################
|
@@ -589,8 +588,7 @@ REQUIRED_PYTHON_VERSION = (3, 8)
|
|
589
588
|
|
590
589
|
def check_runtime_version() -> None:
|
591
590
|
if sys.version_info < REQUIRED_PYTHON_VERSION:
|
592
|
-
raise OSError(
|
593
|
-
f'Requires python {REQUIRED_PYTHON_VERSION}, got {sys.version_info} from {sys.executable}') # noqa
|
591
|
+
raise OSError(f'Requires python {REQUIRED_PYTHON_VERSION}, got {sys.version_info} from {sys.executable}') # noqa
|
594
592
|
|
595
593
|
|
596
594
|
########################################
|
ominfra/pyremote/_runcommands.py
CHANGED
@@ -35,8 +35,7 @@ import zlib
|
|
35
35
|
|
36
36
|
|
37
37
|
if sys.version_info < (3, 8):
|
38
|
-
raise OSError(
|
39
|
-
f'Requires python (3, 8), got {sys.version_info} from {sys.executable}') # noqa
|
38
|
+
raise OSError(f'Requires python (3, 8), got {sys.version_info} from {sys.executable}') # noqa
|
40
39
|
|
41
40
|
|
42
41
|
########################################
|
@@ -233,6 +232,11 @@ def check_not_isinstance(v: T, spec: ta.Union[type, tuple]) -> T:
|
|
233
232
|
return v
|
234
233
|
|
235
234
|
|
235
|
+
def check_none(v: T) -> None:
|
236
|
+
if v is not None:
|
237
|
+
raise ValueError(v)
|
238
|
+
|
239
|
+
|
236
240
|
def check_not_none(v: ta.Optional[T]) -> T:
|
237
241
|
if v is None:
|
238
242
|
raise ValueError
|
@@ -987,8 +991,7 @@ REQUIRED_PYTHON_VERSION = (3, 8)
|
|
987
991
|
|
988
992
|
def check_runtime_version() -> None:
|
989
993
|
if sys.version_info < REQUIRED_PYTHON_VERSION:
|
990
|
-
raise OSError(
|
991
|
-
f'Requires python {REQUIRED_PYTHON_VERSION}, got {sys.version_info} from {sys.executable}') # noqa
|
994
|
+
raise OSError(f'Requires python {REQUIRED_PYTHON_VERSION}, got {sys.version_info} from {sys.executable}') # noqa
|
992
995
|
|
993
996
|
|
994
997
|
########################################
|
ominfra/scripts/journald2aws.py
CHANGED
@@ -45,8 +45,7 @@ import weakref # noqa
|
|
45
45
|
|
46
46
|
|
47
47
|
if sys.version_info < (3, 8):
|
48
|
-
raise OSError(
|
49
|
-
f'Requires python (3, 8), got {sys.version_info} from {sys.executable}') # noqa
|
48
|
+
raise OSError(f'Requires python (3, 8), got {sys.version_info} from {sys.executable}') # noqa
|
50
49
|
|
51
50
|
|
52
51
|
########################################
|
@@ -929,6 +928,11 @@ def check_not_isinstance(v: T, spec: ta.Union[type, tuple]) -> T:
|
|
929
928
|
return v
|
930
929
|
|
931
930
|
|
931
|
+
def check_none(v: T) -> None:
|
932
|
+
if v is not None:
|
933
|
+
raise ValueError(v)
|
934
|
+
|
935
|
+
|
932
936
|
def check_not_none(v: ta.Optional[T]) -> T:
|
933
937
|
if v is None:
|
934
938
|
raise ValueError
|
@@ -2354,8 +2358,7 @@ REQUIRED_PYTHON_VERSION = (3, 8)
|
|
2354
2358
|
|
2355
2359
|
def check_runtime_version() -> None:
|
2356
2360
|
if sys.version_info < REQUIRED_PYTHON_VERSION:
|
2357
|
-
raise OSError(
|
2358
|
-
f'Requires python {REQUIRED_PYTHON_VERSION}, got {sys.version_info} from {sys.executable}') # noqa
|
2361
|
+
raise OSError(f'Requires python {REQUIRED_PYTHON_VERSION}, got {sys.version_info} from {sys.executable}') # noqa
|
2359
2362
|
|
2360
2363
|
|
2361
2364
|
########################################
|