ominfra 0.0.0.dev204__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.
- 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.dev205.dist-info}/METADATA +4 -4
- {ominfra-0.0.0.dev204.dist-info → ominfra-0.0.0.dev205.dist-info}/RECORD +9 -9
- {ominfra-0.0.0.dev204.dist-info → ominfra-0.0.0.dev205.dist-info}/LICENSE +0 -0
- {ominfra-0.0.0.dev204.dist-info → ominfra-0.0.0.dev205.dist-info}/WHEEL +0 -0
- {ominfra-0.0.0.dev204.dist-info → ominfra-0.0.0.dev205.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev204.dist-info → ominfra-0.0.0.dev205.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.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.
|
16
|
-
Requires-Dist: omlish==0.0.0.
|
17
|
-
Requires-Dist: omserv==0.0.0.
|
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=
|
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
|
@@ -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=
|
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=
|
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.
|
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.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|