ominfra 0.0.0.dev204__py3-none-any.whl → 0.0.0.dev206__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- ominfra/clouds/aws/instancetypes/__init__.py +0 -0
- ominfra/clouds/aws/instancetypes/__main__.py +4 -0
- ominfra/clouds/aws/instancetypes/cache.json.gz +0 -0
- ominfra/clouds/aws/instancetypes/cache.py +12 -0
- ominfra/clouds/aws/instancetypes/cli.py +80 -0
- ominfra/clouds/aws/models/base.py +71 -11
- ominfra/clouds/aws/models/gen/gen.py +7 -1
- ominfra/clouds/aws/models/services/ec2.py +570 -7
- ominfra/clouds/aws/models/services/lambda_.py +5 -0
- ominfra/clouds/aws/models/services/s3.py +139 -0
- ominfra/clouds/aws/models/services/services.toml +0 -1
- ominfra/manage/deploy/git.py +2 -2
- ominfra/pyremote.py +1 -0
- ominfra/scripts/manage.py +21 -19
- {ominfra-0.0.0.dev204.dist-info → ominfra-0.0.0.dev206.dist-info}/METADATA +4 -4
- {ominfra-0.0.0.dev204.dist-info → ominfra-0.0.0.dev206.dist-info}/RECORD +20 -15
- {ominfra-0.0.0.dev204.dist-info → ominfra-0.0.0.dev206.dist-info}/LICENSE +0 -0
- {ominfra-0.0.0.dev204.dist-info → ominfra-0.0.0.dev206.dist-info}/WHEEL +0 -0
- {ominfra-0.0.0.dev204.dist-info → ominfra-0.0.0.dev206.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev204.dist-info → ominfra-0.0.0.dev206.dist-info}/top_level.txt +0 -0
ominfra/manage/deploy/git.py
CHANGED
@@ -10,7 +10,7 @@ import functools
|
|
10
10
|
import os.path
|
11
11
|
import typing as ta
|
12
12
|
|
13
|
-
from omdev.git.
|
13
|
+
from omdev.git.shallow import GitShallowCloner
|
14
14
|
from omlish.asyncs.asyncio.subprocesses import asyncio_subprocesses
|
15
15
|
from omlish.lite.cached import async_cached_nullary
|
16
16
|
from omlish.lite.check import check
|
@@ -154,7 +154,7 @@ class DeployGitManager(SingleDirDeployPathOwner):
|
|
154
154
|
) as dst_swap:
|
155
155
|
tdn = '.omlish-git-shallow-clone'
|
156
156
|
|
157
|
-
for cmd in
|
157
|
+
for cmd in GitShallowCloner(
|
158
158
|
base_dir=dst_swap.tmp_path,
|
159
159
|
repo_url=self.make_repo_url(spec.repo),
|
160
160
|
repo_dir=tdn,
|
ominfra/pyremote.py
CHANGED
@@ -381,6 +381,7 @@ class PyremoteBootstrapDriver:
|
|
381
381
|
self._payload_z = zlib.compress(self._prepared_payload_src.encode('utf-8'))
|
382
382
|
|
383
383
|
self._options_json = json.dumps(dc.asdict(options), indent=None, separators=(',', ':')).encode('utf-8') # noqa
|
384
|
+
|
384
385
|
#
|
385
386
|
|
386
387
|
@classmethod
|
ominfra/scripts/manage.py
CHANGED
@@ -968,6 +968,7 @@ class PyremoteBootstrapDriver:
|
|
968
968
|
self._payload_z = zlib.compress(self._prepared_payload_src.encode('utf-8'))
|
969
969
|
|
970
970
|
self._options_json = json.dumps(dc.asdict(options), indent=None, separators=(',', ':')).encode('utf-8') # noqa
|
971
|
+
|
971
972
|
#
|
972
973
|
|
973
974
|
@classmethod
|
@@ -8349,11 +8350,11 @@ class AbstractAsyncSubprocesses(BaseSubprocesses):
|
|
8349
8350
|
|
8350
8351
|
|
8351
8352
|
########################################
|
8352
|
-
# ../../../omdev/git/
|
8353
|
+
# ../../../omdev/git/shallow.py
|
8353
8354
|
|
8354
8355
|
|
8355
8356
|
@dc.dataclass(frozen=True)
|
8356
|
-
class
|
8357
|
+
class GitShallowCloner:
|
8357
8358
|
base_dir: str
|
8358
8359
|
repo_url: str
|
8359
8360
|
repo_dir: str
|
@@ -8382,14 +8383,14 @@ class GitSubtreeCloner:
|
|
8382
8383
|
'-c', 'advice.detachedHead=false',
|
8383
8384
|
]
|
8384
8385
|
|
8385
|
-
yield
|
8386
|
+
yield GitShallowCloner.Command(
|
8386
8387
|
cmd=(
|
8387
8388
|
'git',
|
8388
8389
|
*git_opts,
|
8389
8390
|
'clone',
|
8390
8391
|
'-n',
|
8391
8392
|
'--depth=1',
|
8392
|
-
'--filter=tree:0',
|
8393
|
+
*(['--filter=tree:0'] if self.repo_subtrees is not None else []),
|
8393
8394
|
*(['-b', self.branch] if self.branch else []),
|
8394
8395
|
'--single-branch',
|
8395
8396
|
self.repo_url,
|
@@ -8399,19 +8400,20 @@ class GitSubtreeCloner:
|
|
8399
8400
|
)
|
8400
8401
|
|
8401
8402
|
rd = os.path.join(self.base_dir, self.repo_dir)
|
8402
|
-
|
8403
|
-
|
8404
|
-
|
8405
|
-
|
8406
|
-
|
8407
|
-
|
8408
|
-
|
8409
|
-
|
8410
|
-
|
8411
|
-
|
8412
|
-
|
8403
|
+
if self.repo_subtrees is not None:
|
8404
|
+
yield GitShallowCloner.Command(
|
8405
|
+
cmd=(
|
8406
|
+
'git',
|
8407
|
+
*git_opts,
|
8408
|
+
'sparse-checkout',
|
8409
|
+
'set',
|
8410
|
+
'--no-cone',
|
8411
|
+
*self.repo_subtrees,
|
8412
|
+
),
|
8413
|
+
cwd=rd,
|
8414
|
+
)
|
8413
8415
|
|
8414
|
-
yield
|
8416
|
+
yield GitShallowCloner.Command(
|
8415
8417
|
cmd=(
|
8416
8418
|
'git',
|
8417
8419
|
*git_opts,
|
@@ -8422,7 +8424,7 @@ class GitSubtreeCloner:
|
|
8422
8424
|
)
|
8423
8425
|
|
8424
8426
|
|
8425
|
-
def
|
8427
|
+
def git_shallow_clone(
|
8426
8428
|
*,
|
8427
8429
|
base_dir: str,
|
8428
8430
|
repo_url: str,
|
@@ -8431,7 +8433,7 @@ def git_clone_subtree(
|
|
8431
8433
|
rev: ta.Optional[str] = None,
|
8432
8434
|
repo_subtrees: ta.Optional[ta.Sequence[str]] = None,
|
8433
8435
|
) -> None:
|
8434
|
-
for cmd in
|
8436
|
+
for cmd in GitShallowCloner(
|
8435
8437
|
base_dir=base_dir,
|
8436
8438
|
repo_url=repo_url,
|
8437
8439
|
repo_dir=repo_dir,
|
@@ -11455,7 +11457,7 @@ class DeployGitManager(SingleDirDeployPathOwner):
|
|
11455
11457
|
) as dst_swap:
|
11456
11458
|
tdn = '.omlish-git-shallow-clone'
|
11457
11459
|
|
11458
|
-
for cmd in
|
11460
|
+
for cmd in GitShallowCloner(
|
11459
11461
|
base_dir=dst_swap.tmp_path,
|
11460
11462
|
repo_url=self.make_repo_url(spec.repo),
|
11461
11463
|
repo_dir=tdn,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: ominfra
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev206
|
4
4
|
Summary: ominfra
|
5
5
|
Author: wrmsr
|
6
6
|
License: BSD-3-Clause
|
@@ -12,9 +12,9 @@ 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.
|
17
|
-
Requires-Dist: omserv==0.0.0.
|
15
|
+
Requires-Dist: omdev==0.0.0.dev206
|
16
|
+
Requires-Dist: omlish==0.0.0.dev206
|
17
|
+
Requires-Dist: omserv==0.0.0.dev206
|
18
18
|
Provides-Extra: all
|
19
19
|
Requires-Dist: paramiko~=3.5; extra == "all"
|
20
20
|
Requires-Dist: asyncssh~=2.18; extra == "all"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
ominfra/.manifests.json,sha256=8KREXxMAlsilZOktXPYru1ND3V5hFI22vnrp6hT3bio,589
|
2
2
|
ominfra/__about__.py,sha256=_gUs3H7uunGy5IfGw3mq4dFJWaF1mecSPruJPyjbs7Y,741
|
3
3
|
ominfra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
ominfra/pyremote.py,sha256=
|
4
|
+
ominfra/pyremote.py,sha256=qjY3Bj0GhuYznQ3bhqXmU9zyIVZkhD9Wv76QUG34ZME,15198
|
5
5
|
ominfra/systemd.py,sha256=d61NVrJoItzSaqhMDgKGrQjbrxEVAujUMDsj8WggXos,1022
|
6
6
|
ominfra/threadworkers.py,sha256=oX4ubZn7h932saXpRIJu2MNhBExgGGMuGhdXarZxLJw,4948
|
7
7
|
ominfra/clouds/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -12,6 +12,11 @@ ominfra/clouds/aws/cli.py,sha256=BjJFYFUrv9LNoARkv9i8u4X69udikPlJ83_-t1c2ypQ,510
|
|
12
12
|
ominfra/clouds/aws/dataclasses.py,sha256=rKhtJKJ0JhMssU9n9CABX_JaUiokIboEATJ9TZgZQ6A,3868
|
13
13
|
ominfra/clouds/aws/logs.py,sha256=SvOMv5FeRFhxneIyMXCeieyLFpi6byHUsHwOAhFvT0U,5414
|
14
14
|
ominfra/clouds/aws/metadata.py,sha256=XR1BuMdQheyeFjjA3MN8GCNWVAp5ahoPdbWXEmViutQ,2767
|
15
|
+
ominfra/clouds/aws/instancetypes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
|
+
ominfra/clouds/aws/instancetypes/__main__.py,sha256=Jsrv3P7LX2Cg08W7ByZfZ1JQT4lgLDPW1qNAmShFuMk,75
|
17
|
+
ominfra/clouds/aws/instancetypes/cache.json.gz,sha256=JGgZlMGh2nLPsFmn3PwtV5gO5UMWrjFSFnhniGZKbJc,26375
|
18
|
+
ominfra/clouds/aws/instancetypes/cache.py,sha256=CrfBzOb0DqQhf3ahQS6qQHHH1kVgZyniYOl22RTvjwo,333
|
19
|
+
ominfra/clouds/aws/instancetypes/cli.py,sha256=24DA2Qio27NlyqqOrw-F7rm2NfN3e_Kn2wIYxCeXbMY,2191
|
15
20
|
ominfra/clouds/aws/journald2aws/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
16
21
|
ominfra/clouds/aws/journald2aws/__main__.py,sha256=d23loR_cKfTYZwYiqpt_CmKI7dd5WcYFgIYzqMep75E,68
|
17
22
|
ominfra/clouds/aws/journald2aws/cursor.py,sha256=tQ7O6BHlEdaalbiI_Rqagj0aHfdtTQ_ZJwdOSRUjNvQ,1173
|
@@ -19,17 +24,17 @@ ominfra/clouds/aws/journald2aws/driver.py,sha256=b3XfSlIBWAWJLImmyh1ZK9FpdNAYNZ2
|
|
19
24
|
ominfra/clouds/aws/journald2aws/main.py,sha256=4qWnw33cTPUW1CU4_9ojkn0wRStANrQzSI_cXpyuOf8,2202
|
20
25
|
ominfra/clouds/aws/journald2aws/poster.py,sha256=hz1XuctW8GtLmfjhRvCFY6py52D4BzXHYny5XKFpHSA,2833
|
21
26
|
ominfra/clouds/aws/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
|
-
ominfra/clouds/aws/models/base.py,sha256=
|
27
|
+
ominfra/clouds/aws/models/base.py,sha256=s2ffsIGOhRMhMY7awmordfrjWjvZGf5yeJJadt-tjEA,3287
|
23
28
|
ominfra/clouds/aws/models/gen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
29
|
ominfra/clouds/aws/models/gen/__main__.py,sha256=Jsrv3P7LX2Cg08W7ByZfZ1JQT4lgLDPW1qNAmShFuMk,75
|
25
30
|
ominfra/clouds/aws/models/gen/cli.py,sha256=ZFupd0wmZbz_vaq6C1AJpcwgtX_qnZ2XhXIwwBoaE8s,3725
|
26
|
-
ominfra/clouds/aws/models/gen/gen.py,sha256=
|
31
|
+
ominfra/clouds/aws/models/gen/gen.py,sha256=nP5UemgO2vQm6ydKI_cdRUieqOUwEK6onknvwuR6FjY,13738
|
27
32
|
ominfra/clouds/aws/models/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
|
-
ominfra/clouds/aws/models/services/ec2.py,sha256=
|
29
|
-
ominfra/clouds/aws/models/services/lambda_.py,sha256=
|
33
|
+
ominfra/clouds/aws/models/services/ec2.py,sha256=IAkZNKt3vU1LbJLMJS4YFo_clZ050uDomXLcGf1F89c,205909
|
34
|
+
ominfra/clouds/aws/models/services/lambda_.py,sha256=wM3lrRZHlg1q7w3GEciE3PHnli8oox4_hm-7mOxPiiE,23297
|
30
35
|
ominfra/clouds/aws/models/services/rds.py,sha256=FNhaSR6rq3Xzlz16Aqp7e_HfejRrpxsnSJzH-tpUiuA,52509
|
31
|
-
ominfra/clouds/aws/models/services/s3.py,sha256=
|
32
|
-
ominfra/clouds/aws/models/services/services.toml,sha256=
|
36
|
+
ominfra/clouds/aws/models/services/s3.py,sha256=KRKEeRS6cNmOIJm_J3YW5MohhpvLtMhxtD_5di0nfc4,45186
|
37
|
+
ominfra/clouds/aws/models/services/services.toml,sha256=fXrH1Wy2TvIExRujUk80R56En90HjcxFheU28X_birU,693
|
33
38
|
ominfra/clouds/gcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
34
39
|
ominfra/clouds/gcp/auth.py,sha256=rDIiOH5gP3OSIaMC5Lp8yAD4zWuLDEYlFu37mDx5YDA,1360
|
35
40
|
ominfra/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -62,7 +67,7 @@ ominfra/manage/deploy/apps.py,sha256=T0eU0Jw-h33_ZPIs0zy9DOx_fgs3YSAAGzu-H0pvt2U
|
|
62
67
|
ominfra/manage/deploy/commands.py,sha256=OVZzSY4EP_SD7KJRkIIPeqUxcV4mcwrc_WYNvM16ahM,830
|
63
68
|
ominfra/manage/deploy/config.py,sha256=kPpl8TRisz295cM4oj-RHA6oh5jdcJ_N9pVpkl_doO8,114
|
64
69
|
ominfra/manage/deploy/deploy.py,sha256=YRr_0OPIZJ9LnOeMaHYCSSvqh81a5_LB7OZy-bR2GeA,8966
|
65
|
-
ominfra/manage/deploy/git.py,sha256=
|
70
|
+
ominfra/manage/deploy/git.py,sha256=FkqLy26q8I9J2_UQs_ViY5qNd8qQikAzfXdMRqNIK4Q,5533
|
66
71
|
ominfra/manage/deploy/inject.py,sha256=XeBMwoCsKhO-4VffCVgXOrp_tTAYt15AyVmc4vvIDso,3472
|
67
72
|
ominfra/manage/deploy/injection.py,sha256=LR7gEkVx2ldUoQZsGvIcm1Y4QXCVDnLIAdc3LHhQiD4,392
|
68
73
|
ominfra/manage/deploy/interp.py,sha256=_5fuHrY5ZA0eGbnNcOqAhAMSWI1UNvbm0l29eDjE5fI,1037
|
@@ -107,7 +112,7 @@ ominfra/manage/targets/inject.py,sha256=P4597xWM-V3I_gCt2O71OLhYQkkXtuJvkYRsIbhh
|
|
107
112
|
ominfra/manage/targets/targets.py,sha256=7GP6UAZyJFEhpkJN6UQdpr_WN3p7C76v-s445y-WB6U,1885
|
108
113
|
ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
109
114
|
ominfra/scripts/journald2aws.py,sha256=Bo_24qN3YI_72BcZYBHid9_SJWnCAmbKRJ3-wE6dGMU,166250
|
110
|
-
ominfra/scripts/manage.py,sha256=
|
115
|
+
ominfra/scripts/manage.py,sha256=QlG02s1uAJ4sFTRuR50HpinKp-B7-P0yAEHxikRonA0,357276
|
111
116
|
ominfra/scripts/supervisor.py,sha256=6OQnZfnHfXT-hHsGQA_OhA_BjOs01vzInkmEZWYhiVY,291847
|
112
117
|
ominfra/supervisor/LICENSE.txt,sha256=ZrHY15PVR98y26Yg6iQfa-SXnUaYTDhrUsPVcEO5OKM,1874
|
113
118
|
ominfra/supervisor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
@@ -150,9 +155,9 @@ ominfra/tailscale/api.py,sha256=C5-t_b6jZXUWcy5k8bXm7CFnk73pSdrlMOgGDeGVrpw,1370
|
|
150
155
|
ominfra/tailscale/cli.py,sha256=3FnJbgpLw6gInTfhERd1mDy9ijjMUGxkdYVo43Tnxx4,3555
|
151
156
|
ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
152
157
|
ominfra/tools/listresources.py,sha256=4qVg5txsb10EHhvqXXeM6gJ2jx9LbroEnPydDv1uXs0,6176
|
153
|
-
ominfra-0.0.0.
|
154
|
-
ominfra-0.0.0.
|
155
|
-
ominfra-0.0.0.
|
156
|
-
ominfra-0.0.0.
|
157
|
-
ominfra-0.0.0.
|
158
|
-
ominfra-0.0.0.
|
158
|
+
ominfra-0.0.0.dev206.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
159
|
+
ominfra-0.0.0.dev206.dist-info/METADATA,sha256=WFRJFIUfpP2By_JZnPz-r_I_XBjIDOh9WoFTnuqU9pE,767
|
160
|
+
ominfra-0.0.0.dev206.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
161
|
+
ominfra-0.0.0.dev206.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
|
162
|
+
ominfra-0.0.0.dev206.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
|
163
|
+
ominfra-0.0.0.dev206.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|