ominfra 0.0.0.dev203__py3-none-any.whl → 0.0.0.dev205__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  [services.ec2]
2
2
  operations = [
3
3
  'DescribeAddresses',
4
+ 'DescribeInstanceTypes',
4
5
  'DescribeInstances',
5
6
  'DescribeInternetGateways',
6
7
  'DescribeKeyPairs',
@@ -10,7 +10,7 @@ import functools
10
10
  import os.path
11
11
  import typing as ta
12
12
 
13
- from omdev.git.subtrees import GitSubtreeCloner
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 GitSubtreeCloner(
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/subtrees.py
8353
+ # ../../../omdev/git/shallow.py
8353
8354
 
8354
8355
 
8355
8356
  @dc.dataclass(frozen=True)
8356
- class GitSubtreeCloner:
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 GitSubtreeCloner.Command(
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
- yield GitSubtreeCloner.Command(
8403
- cmd=(
8404
- 'git',
8405
- *git_opts,
8406
- 'sparse-checkout',
8407
- 'set',
8408
- '--no-cone',
8409
- *(self.repo_subtrees or []),
8410
- ),
8411
- cwd=rd,
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 GitSubtreeCloner.Command(
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 git_clone_subtree(
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 GitSubtreeCloner(
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 GitSubtreeCloner(
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.dev203
3
+ Version: 0.0.0.dev205
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.dev203
16
- Requires-Dist: omlish==0.0.0.dev203
17
- Requires-Dist: omserv==0.0.0.dev203
15
+ Requires-Dist: omdev==0.0.0.dev205
16
+ Requires-Dist: omlish==0.0.0.dev205
17
+ Requires-Dist: omserv==0.0.0.dev205
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=HLfAZl3Xw5CpxLS5PS380zqCyE7n3vKVksIYT2Fbdc8,15197
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
@@ -23,13 +23,13 @@ ominfra/clouds/aws/models/base.py,sha256=A9zBGZNVtxKdbbnr2YU4AruyHEvIIYXFganOHcQ
23
23
  ominfra/clouds/aws/models/gen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  ominfra/clouds/aws/models/gen/__main__.py,sha256=Jsrv3P7LX2Cg08W7ByZfZ1JQT4lgLDPW1qNAmShFuMk,75
25
25
  ominfra/clouds/aws/models/gen/cli.py,sha256=ZFupd0wmZbz_vaq6C1AJpcwgtX_qnZ2XhXIwwBoaE8s,3725
26
- ominfra/clouds/aws/models/gen/gen.py,sha256=ZgtPEF7cD53PBoXwTGJl6B5ziZeZP7V3_61DMSk-Io4,13482
26
+ ominfra/clouds/aws/models/gen/gen.py,sha256=cZNt3zy6xi1U5B9gaP9GaI_YGCG_b1MP8mKTRIqcDXY,13550
27
27
  ominfra/clouds/aws/models/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
- ominfra/clouds/aws/models/services/ec2.py,sha256=xoV57eOfRI7CibKRhq_rFO8A7b1Ii0_ccnJjQ3Pf2AE,148527
28
+ ominfra/clouds/aws/models/services/ec2.py,sha256=jDN_csW_s0-toEHD7eQDCQqjftMa4820tYAcJKGnmUI,180985
29
29
  ominfra/clouds/aws/models/services/lambda_.py,sha256=xK021SBixPpXbF6CwxYWdRamoUzviTSioXzeytfiBos,23090
30
30
  ominfra/clouds/aws/models/services/rds.py,sha256=FNhaSR6rq3Xzlz16Aqp7e_HfejRrpxsnSJzH-tpUiuA,52509
31
31
  ominfra/clouds/aws/models/services/s3.py,sha256=HzmOuYStuv2G4_g0z4jT2Kjq2Q-7zhtk-HvOjX5jDg0,38004
32
- ominfra/clouds/aws/models/services/services.toml,sha256=jiJaQPkuAWvDLaI0ERrDhhnnt1ceJH44NLrTlJSO0FE,684
32
+ ominfra/clouds/aws/models/services/services.toml,sha256=CBHJKFYKyuiL9-W4CXZmaTjLHQb8SfMLF-0pqd5fJVk,711
33
33
  ominfra/clouds/gcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  ominfra/clouds/gcp/auth.py,sha256=rDIiOH5gP3OSIaMC5Lp8yAD4zWuLDEYlFu37mDx5YDA,1360
35
35
  ominfra/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -62,7 +62,7 @@ ominfra/manage/deploy/apps.py,sha256=T0eU0Jw-h33_ZPIs0zy9DOx_fgs3YSAAGzu-H0pvt2U
62
62
  ominfra/manage/deploy/commands.py,sha256=OVZzSY4EP_SD7KJRkIIPeqUxcV4mcwrc_WYNvM16ahM,830
63
63
  ominfra/manage/deploy/config.py,sha256=kPpl8TRisz295cM4oj-RHA6oh5jdcJ_N9pVpkl_doO8,114
64
64
  ominfra/manage/deploy/deploy.py,sha256=YRr_0OPIZJ9LnOeMaHYCSSvqh81a5_LB7OZy-bR2GeA,8966
65
- ominfra/manage/deploy/git.py,sha256=ILrIPSy-6JObg3xBzIcDwe-iPQt-AiiL2J6AX4l3Pco,5534
65
+ ominfra/manage/deploy/git.py,sha256=FkqLy26q8I9J2_UQs_ViY5qNd8qQikAzfXdMRqNIK4Q,5533
66
66
  ominfra/manage/deploy/inject.py,sha256=XeBMwoCsKhO-4VffCVgXOrp_tTAYt15AyVmc4vvIDso,3472
67
67
  ominfra/manage/deploy/injection.py,sha256=LR7gEkVx2ldUoQZsGvIcm1Y4QXCVDnLIAdc3LHhQiD4,392
68
68
  ominfra/manage/deploy/interp.py,sha256=_5fuHrY5ZA0eGbnNcOqAhAMSWI1UNvbm0l29eDjE5fI,1037
@@ -107,7 +107,7 @@ ominfra/manage/targets/inject.py,sha256=P4597xWM-V3I_gCt2O71OLhYQkkXtuJvkYRsIbhh
107
107
  ominfra/manage/targets/targets.py,sha256=7GP6UAZyJFEhpkJN6UQdpr_WN3p7C76v-s445y-WB6U,1885
108
108
  ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
109
  ominfra/scripts/journald2aws.py,sha256=Bo_24qN3YI_72BcZYBHid9_SJWnCAmbKRJ3-wE6dGMU,166250
110
- ominfra/scripts/manage.py,sha256=lqX1VW3AJakfypxc67HvUwj3HFWJKPtuAXU7Rz1S83c,357150
110
+ ominfra/scripts/manage.py,sha256=QlG02s1uAJ4sFTRuR50HpinKp-B7-P0yAEHxikRonA0,357276
111
111
  ominfra/scripts/supervisor.py,sha256=6OQnZfnHfXT-hHsGQA_OhA_BjOs01vzInkmEZWYhiVY,291847
112
112
  ominfra/supervisor/LICENSE.txt,sha256=ZrHY15PVR98y26Yg6iQfa-SXnUaYTDhrUsPVcEO5OKM,1874
113
113
  ominfra/supervisor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
@@ -150,9 +150,9 @@ ominfra/tailscale/api.py,sha256=C5-t_b6jZXUWcy5k8bXm7CFnk73pSdrlMOgGDeGVrpw,1370
150
150
  ominfra/tailscale/cli.py,sha256=3FnJbgpLw6gInTfhERd1mDy9ijjMUGxkdYVo43Tnxx4,3555
151
151
  ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
152
152
  ominfra/tools/listresources.py,sha256=4qVg5txsb10EHhvqXXeM6gJ2jx9LbroEnPydDv1uXs0,6176
153
- ominfra-0.0.0.dev203.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
154
- ominfra-0.0.0.dev203.dist-info/METADATA,sha256=5N2cMqKdW8Qn1UbqtEu2PBbQDWFX85nWL3k546Avkjc,767
155
- ominfra-0.0.0.dev203.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
156
- ominfra-0.0.0.dev203.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
157
- ominfra-0.0.0.dev203.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
158
- ominfra-0.0.0.dev203.dist-info/RECORD,,
153
+ ominfra-0.0.0.dev205.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
154
+ ominfra-0.0.0.dev205.dist-info/METADATA,sha256=UdNebk1Hka0z9cWJhDpM6DWQmO6-L4dFqOAfibSn6GA,767
155
+ ominfra-0.0.0.dev205.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
156
+ ominfra-0.0.0.dev205.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
157
+ ominfra-0.0.0.dev205.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
158
+ ominfra-0.0.0.dev205.dist-info/RECORD,,