ominfra 0.0.0.dev352__py3-none-any.whl → 0.0.0.dev354__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/clouds/aws/models/services/ec2.py +7 -0
- ominfra/manage/main.py +1 -1
- ominfra/scripts/manage.py +2 -2
- ominfra/scripts/supervisor.py +20 -6
- {ominfra-0.0.0.dev352.dist-info → ominfra-0.0.0.dev354.dist-info}/METADATA +4 -4
- {ominfra-0.0.0.dev352.dist-info → ominfra-0.0.0.dev354.dist-info}/RECORD +10 -10
- {ominfra-0.0.0.dev352.dist-info → ominfra-0.0.0.dev354.dist-info}/WHEEL +0 -0
- {ominfra-0.0.0.dev352.dist-info → ominfra-0.0.0.dev354.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev352.dist-info → ominfra-0.0.0.dev354.dist-info}/licenses/LICENSE +0 -0
- {ominfra-0.0.0.dev352.dist-info → ominfra-0.0.0.dev354.dist-info}/top_level.txt +0 -0
@@ -1565,6 +1565,7 @@ class ResourceType(_enum.Enum):
|
|
1565
1565
|
INSTANCE_CONNECT_ENDPOINT = 'instance-connect-endpoint'
|
1566
1566
|
VERIFIED_ACCESS_ENDPOINT_TARGET = 'verified-access-endpoint-target'
|
1567
1567
|
IPAM_EXTERNAL_RESOURCE_VERIFICATION_TOKEN = 'ipam-external-resource-verification-token'
|
1568
|
+
CAPACITY_BLOCK = 'capacity-block'
|
1568
1569
|
MAC_MODIFICATION_TASK = 'mac-modification-task'
|
1569
1570
|
|
1570
1571
|
|
@@ -7691,6 +7692,12 @@ class Instance(
|
|
7691
7692
|
shape_name='CpuOptions',
|
7692
7693
|
))
|
7693
7694
|
|
7695
|
+
capacity_block_id: str | None = _dc.field(default=None, metadata=_base.field_metadata(
|
7696
|
+
member_name='CapacityBlockId',
|
7697
|
+
serialization_name='capacityBlockId',
|
7698
|
+
shape_name='String',
|
7699
|
+
))
|
7700
|
+
|
7694
7701
|
capacity_reservation_id: str | None = _dc.field(default=None, metadata=_base.field_metadata(
|
7695
7702
|
member_name='CapacityReservationId',
|
7696
7703
|
serialization_name='capacityReservationId',
|
ominfra/manage/main.py
CHANGED
ominfra/scripts/manage.py
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
# @omlish-git-diff-omit
|
8
8
|
# ruff: noqa: N802 TC003 UP006 UP007 UP036 UP045
|
9
9
|
"""
|
10
|
-
manage.py -s 'docker run -i python:3.
|
10
|
+
manage.py -s 'docker run -i python:3.13'
|
11
11
|
manage.py -s 'ssh -i /foo/bar.pem foo@bar.baz' -q --python=python3.8
|
12
12
|
"""
|
13
13
|
import abc
|
@@ -3870,7 +3870,7 @@ ID=ubuntu
|
|
3870
3870
|
ID_LIKE=debian
|
3871
3871
|
UBUNTU_CODENAME=jammy
|
3872
3872
|
|
3873
|
-
➜ omlish git:(master) docker run -i python:3.
|
3873
|
+
➜ omlish git:(master) docker run -i python:3.13 cat /etc/os-release
|
3874
3874
|
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
|
3875
3875
|
NAME="Debian GNU/Linux"
|
3876
3876
|
VERSION_ID="12"
|
ominfra/scripts/supervisor.py
CHANGED
@@ -7996,7 +7996,11 @@ class CoroHttpServer:
|
|
7996
7996
|
|
7997
7997
|
#
|
7998
7998
|
|
7999
|
-
|
7999
|
+
@dc.dataclass(frozen=True)
|
8000
|
+
class CoroHandleResult:
|
8001
|
+
close_reason: ta.Literal['response', 'internal', None] = None
|
8002
|
+
|
8003
|
+
def coro_handle(self) -> ta.Generator[Io, ta.Optional[bytes], CoroHandleResult]:
|
8000
8004
|
return self._coro_run_handler(self._coro_handle_one())
|
8001
8005
|
|
8002
8006
|
class Close(Exception): # noqa
|
@@ -8009,7 +8013,7 @@ class CoroHttpServer:
|
|
8009
8013
|
ta.Optional[bytes],
|
8010
8014
|
None,
|
8011
8015
|
],
|
8012
|
-
) -> ta.Generator[Io, ta.Optional[bytes],
|
8016
|
+
) -> ta.Generator[Io, ta.Optional[bytes], CoroHandleResult]:
|
8013
8017
|
i: ta.Optional[bytes]
|
8014
8018
|
o: ta.Any = next(gen)
|
8015
8019
|
while True:
|
@@ -8033,7 +8037,9 @@ class CoroHttpServer:
|
|
8033
8037
|
|
8034
8038
|
o.close()
|
8035
8039
|
if o.close_connection:
|
8036
|
-
|
8040
|
+
return self.CoroHandleResult(
|
8041
|
+
close_reason='response',
|
8042
|
+
)
|
8037
8043
|
o = None
|
8038
8044
|
|
8039
8045
|
else:
|
@@ -8042,9 +8048,11 @@ class CoroHttpServer:
|
|
8042
8048
|
try:
|
8043
8049
|
o = gen.send(i)
|
8044
8050
|
except self.Close:
|
8045
|
-
return
|
8051
|
+
return self.CoroHandleResult(
|
8052
|
+
close_reason='internal',
|
8053
|
+
)
|
8046
8054
|
except StopIteration:
|
8047
|
-
|
8055
|
+
return self.CoroHandleResult()
|
8048
8056
|
|
8049
8057
|
except Exception: # noqa
|
8050
8058
|
if hasattr(o, 'close'):
|
@@ -8893,7 +8901,13 @@ class CoroHttpServerConnectionFdioHandler(SocketFdioHandler):
|
|
8893
8901
|
addr,
|
8894
8902
|
handler=self._handler,
|
8895
8903
|
)
|
8896
|
-
self._srv_coro: ta.Optional[
|
8904
|
+
self._srv_coro: ta.Optional[
|
8905
|
+
ta.Generator[
|
8906
|
+
CoroHttpServer.Io,
|
8907
|
+
ta.Optional[bytes],
|
8908
|
+
CoroHttpServer.CoroHandleResult,
|
8909
|
+
],
|
8910
|
+
] = self._coro_srv.coro_handle()
|
8897
8911
|
|
8898
8912
|
self._cur_io: ta.Optional[CoroHttpServer.Io] = None
|
8899
8913
|
self._next_io()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ominfra
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev354
|
4
4
|
Summary: ominfra
|
5
5
|
Author: wrmsr
|
6
6
|
License: BSD-3-Clause
|
@@ -10,10 +10,10 @@ Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
11
11
|
Classifier: Operating System :: OS Independent
|
12
12
|
Classifier: Operating System :: POSIX
|
13
|
-
Requires-Python: >=3.
|
13
|
+
Requires-Python: >=3.13
|
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.dev354
|
16
|
+
Requires-Dist: omlish==0.0.0.dev354
|
17
17
|
Provides-Extra: all
|
18
18
|
Requires-Dist: paramiko~=3.5; extra == "all"
|
19
19
|
Requires-Dist: asyncssh~=2.21; extra == "all"
|
@@ -30,7 +30,7 @@ ominfra/clouds/aws/models/gen/__main__.py,sha256=Jsrv3P7LX2Cg08W7ByZfZ1JQT4lgLDP
|
|
30
30
|
ominfra/clouds/aws/models/gen/cli.py,sha256=vcI8_-BOv4f-s_TFAqvnyzvBexZ_9y5akiUEGfioCqA,3857
|
31
31
|
ominfra/clouds/aws/models/gen/gen.py,sha256=4pftOlyEIxDDoe73c5Z7NaJ1uhFsTBnMwmS1nlDiLOE,15903
|
32
32
|
ominfra/clouds/aws/models/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
|
-
ominfra/clouds/aws/models/services/ec2.py,sha256=
|
33
|
+
ominfra/clouds/aws/models/services/ec2.py,sha256=ZZg9cn6UiHxivVOA9LQa3m2ZQ6HxSbkwyYGA6iyvWVs,276490
|
34
34
|
ominfra/clouds/aws/models/services/lambda_.py,sha256=dp2I4ZVDb6Dci15XcjPPURUElyzH8cwhM911J_HM7Qo,25823
|
35
35
|
ominfra/clouds/aws/models/services/rds.py,sha256=cYjqdM3Sm3F0qpxinA8A8ofXi_HZflK3epu_sog7LzQ,59759
|
36
36
|
ominfra/clouds/aws/models/services/s3.py,sha256=aWbl4YtAiQyBfcNgerNxfWBIHZsbpFlT66JdRBYnQ9c,51426
|
@@ -52,7 +52,7 @@ ominfra/manage/bootstrap.py,sha256=JPz84-bTjpUsXGqusUwQsGZUV1d5Sl3b148Zid4jrCw,4
|
|
52
52
|
ominfra/manage/bootstrap_.py,sha256=slm-rbz59-n1kHCG2ncy3QZ99-0w5vAFOodajgc8vf4,662
|
53
53
|
ominfra/manage/config.py,sha256=VkhKcjunBWbb2VmmwaBuocOVEaNLnE9OTfWs428XHDE,190
|
54
54
|
ominfra/manage/inject.py,sha256=LgDGyELPerQYR-zHJNigp5O--xY1EnPKPkG-GkfbVRk,2036
|
55
|
-
ominfra/manage/main.py,sha256=
|
55
|
+
ominfra/manage/main.py,sha256=1kz0Zhr0n8Qq-r2tebpeMlyg9JhJ0aWctrR7gyorjGo,4453
|
56
56
|
ominfra/manage/marshal.py,sha256=WKj7IU9bo4fBMSSzT6ZMm_WFalXIJZ-V7j8oi92fNhk,305
|
57
57
|
ominfra/manage/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
58
58
|
ominfra/manage/commands/base.py,sha256=8wXSlvihd4GBwYa05HZ9QD2-uiH7dUqEG0uP6flxuJQ,3999
|
@@ -113,8 +113,8 @@ ominfra/manage/targets/inject.py,sha256=WhkEAB5BFWtENnVMmuiy9eoBNd6jBPSGZsWjT_9_
|
|
113
113
|
ominfra/manage/targets/targets.py,sha256=WmasYmL6xfAI7F0XvDhScFdBVxkqPkmo_gRgABmmkGA,1891
|
114
114
|
ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
115
115
|
ominfra/scripts/journald2aws.py,sha256=7bZWgNeZuTAs6fBl4XBApOfJt4pg_iykoUsjuzX29wc,171893
|
116
|
-
ominfra/scripts/manage.py,sha256=
|
117
|
-
ominfra/scripts/supervisor.py,sha256=
|
116
|
+
ominfra/scripts/manage.py,sha256=Jm6-X8kVySJv5fVj6sIwJa4V8tEOhyfYCAc7lw89Tyk,385567
|
117
|
+
ominfra/scripts/supervisor.py,sha256=lvYjMMIxM32xehKBWTqLFAi5Ee6rYimc33QTKvM2SxQ,304398
|
118
118
|
ominfra/supervisor/LICENSE.txt,sha256=ZrHY15PVR98y26Yg6iQfa-SXnUaYTDhrUsPVcEO5OKM,1874
|
119
119
|
ominfra/supervisor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
120
120
|
ominfra/supervisor/__main__.py,sha256=I0yFw-C08OOiZ3BF6lF1Oiv789EQXu-_j6whDhQUTEA,66
|
@@ -156,9 +156,9 @@ ominfra/tailscale/api.py,sha256=C5-t_b6jZXUWcy5k8bXm7CFnk73pSdrlMOgGDeGVrpw,1370
|
|
156
156
|
ominfra/tailscale/cli.py,sha256=zRV7-tKB7kBah1oTVZlol-vwx1FBlnfzYAPGkeU5jX4,3543
|
157
157
|
ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
158
158
|
ominfra/tools/listresources.py,sha256=auGP1LlbBJSFKUWNvQo_UzA8IsBNZBTMwEkFFRJ4FX4,6185
|
159
|
-
ominfra-0.0.0.
|
160
|
-
ominfra-0.0.0.
|
161
|
-
ominfra-0.0.0.
|
162
|
-
ominfra-0.0.0.
|
163
|
-
ominfra-0.0.0.
|
164
|
-
ominfra-0.0.0.
|
159
|
+
ominfra-0.0.0.dev354.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
160
|
+
ominfra-0.0.0.dev354.dist-info/METADATA,sha256=xtUPe1m5Xm19KxqSG7cjdMvqRdsOfM5YqnY2Vclzo-4,753
|
161
|
+
ominfra-0.0.0.dev354.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
162
|
+
ominfra-0.0.0.dev354.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
|
163
|
+
ominfra-0.0.0.dev354.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
|
164
|
+
ominfra-0.0.0.dev354.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|