omlish 0.0.0.dev150__py3-none-any.whl → 0.0.0.dev151__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omlish/__about__.py +2 -2
- omlish/docker/__init__.py +0 -37
- omlish/docker/all.py +31 -0
- omlish/docker/consts.py +4 -0
- omlish/{lite/docker.py → docker/detect.py} +16 -1
- omlish/docker/{helpers.py → timebomb.py} +0 -15
- omlish/lite/check.py +1 -1
- omlish/testing/pytest/plugins/switches.py +1 -1
- {omlish-0.0.0.dev150.dist-info → omlish-0.0.0.dev151.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev150.dist-info → omlish-0.0.0.dev151.dist-info}/RECORD +14 -12
- {omlish-0.0.0.dev150.dist-info → omlish-0.0.0.dev151.dist-info}/LICENSE +0 -0
- {omlish-0.0.0.dev150.dist-info → omlish-0.0.0.dev151.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev150.dist-info → omlish-0.0.0.dev151.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev150.dist-info → omlish-0.0.0.dev151.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/docker/__init__.py
CHANGED
@@ -1,37 +0,0 @@
|
|
1
|
-
from .cli import ( # noqa
|
2
|
-
Inspect,
|
3
|
-
Port,
|
4
|
-
PsItem,
|
5
|
-
cli_inspect,
|
6
|
-
cli_ps,
|
7
|
-
has_cli,
|
8
|
-
parse_port,
|
9
|
-
)
|
10
|
-
|
11
|
-
from .compose import ( # noqa
|
12
|
-
ComposeConfig,
|
13
|
-
get_compose_port,
|
14
|
-
)
|
15
|
-
|
16
|
-
from .helpers import ( # noqa
|
17
|
-
DOCKER_HOST_PLATFORM_KEY,
|
18
|
-
get_docker_host_platform,
|
19
|
-
timebomb_payload,
|
20
|
-
)
|
21
|
-
|
22
|
-
from .hub import ( # noqa
|
23
|
-
HubRepoInfo,
|
24
|
-
get_hub_repo_info,
|
25
|
-
select_latest_tag,
|
26
|
-
split_tag_suffix,
|
27
|
-
)
|
28
|
-
|
29
|
-
|
30
|
-
##
|
31
|
-
|
32
|
-
|
33
|
-
from ..lite.docker import ( # noqa
|
34
|
-
DOCKER_FOR_MAC_HOSTNAME,
|
35
|
-
|
36
|
-
is_likely_in_docker,
|
37
|
-
)
|
omlish/docker/all.py
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
from .cli import ( # noqa
|
2
|
+
Inspect,
|
3
|
+
Port,
|
4
|
+
PsItem,
|
5
|
+
cli_inspect,
|
6
|
+
cli_ps,
|
7
|
+
has_cli,
|
8
|
+
parse_port,
|
9
|
+
)
|
10
|
+
|
11
|
+
from .compose import ( # noqa
|
12
|
+
ComposeConfig,
|
13
|
+
get_compose_port,
|
14
|
+
)
|
15
|
+
|
16
|
+
from .detect import ( # noqa
|
17
|
+
DOCKER_HOST_PLATFORM_KEY,
|
18
|
+
get_docker_host_platform,
|
19
|
+
is_likely_in_docker,
|
20
|
+
)
|
21
|
+
|
22
|
+
from .hub import ( # noqa
|
23
|
+
HubRepoInfo,
|
24
|
+
get_hub_repo_info,
|
25
|
+
select_latest_tag,
|
26
|
+
split_tag_suffix,
|
27
|
+
)
|
28
|
+
|
29
|
+
from .timebomb import ( # noqa
|
30
|
+
timebomb_payload,
|
31
|
+
)
|
omlish/docker/consts.py
ADDED
@@ -1,8 +1,23 @@
|
|
1
|
+
# ruff: noqa: UP006 UP007
|
2
|
+
# @omlish-lite
|
3
|
+
import os
|
1
4
|
import re
|
2
5
|
import sys
|
6
|
+
import typing as ta
|
3
7
|
|
4
8
|
|
5
|
-
|
9
|
+
##
|
10
|
+
|
11
|
+
|
12
|
+
# Set by pyproject, docker-dev script
|
13
|
+
DOCKER_HOST_PLATFORM_KEY = 'DOCKER_HOST_PLATFORM'
|
14
|
+
|
15
|
+
|
16
|
+
def get_docker_host_platform() -> ta.Optional[str]:
|
17
|
+
return os.environ.get(DOCKER_HOST_PLATFORM_KEY)
|
18
|
+
|
19
|
+
|
20
|
+
##
|
6
21
|
|
7
22
|
|
8
23
|
_LIKELY_IN_DOCKER_PATTERN = re.compile(r'^overlay / .*/(docker|desktop-containerd)/')
|
@@ -1,10 +1,6 @@
|
|
1
|
-
import os
|
2
1
|
import shlex
|
3
2
|
|
4
3
|
|
5
|
-
##
|
6
|
-
|
7
|
-
|
8
4
|
_DEFAULT_TIMEBOMB_NAME = '-'.join([*__name__.split('.'), 'timebomb'])
|
9
5
|
|
10
6
|
|
@@ -16,14 +12,3 @@ def timebomb_payload(delay_s: float, name: str = _DEFAULT_TIMEBOMB_NAME) -> str:
|
|
16
12
|
'sh -c \'killall5 -9 -o $PPID -o $$ ; kill 1\''
|
17
13
|
') &'
|
18
14
|
)
|
19
|
-
|
20
|
-
|
21
|
-
##
|
22
|
-
|
23
|
-
|
24
|
-
# Set by pyproject, docker-dev script
|
25
|
-
DOCKER_HOST_PLATFORM_KEY = 'DOCKER_HOST_PLATFORM'
|
26
|
-
|
27
|
-
|
28
|
-
def get_docker_host_platform() -> str | None:
|
29
|
-
return os.environ.get(DOCKER_HOST_PLATFORM_KEY)
|
omlish/lite/check.py
CHANGED
@@ -14,7 +14,7 @@ T = ta.TypeVar('T')
|
|
14
14
|
SizedT = ta.TypeVar('SizedT', bound=ta.Sized)
|
15
15
|
|
16
16
|
CheckMessage = ta.Union[str, ta.Callable[..., ta.Optional[str]], None] # ta.TypeAlias
|
17
|
-
CheckLateConfigureFn = ta.Callable[['Checks'], None]
|
17
|
+
CheckLateConfigureFn = ta.Callable[['Checks'], None] # ta.TypeAlias
|
18
18
|
CheckOnRaiseFn = ta.Callable[[Exception], None] # ta.TypeAlias
|
19
19
|
CheckExceptionFactory = ta.Callable[..., Exception] # ta.TypeAlias
|
20
20
|
CheckArgsRenderer = ta.Callable[..., ta.Optional[str]] # ta.TypeAlias
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.manifests.json,sha256=RX24SRc6DCEg77PUVnaXOKCWa5TF_c9RQJdGIf7gl9c,1135
|
2
|
-
omlish/__about__.py,sha256=
|
2
|
+
omlish/__about__.py,sha256=D7fRdocKBDAO3XGagNp2LA5SC8TzrHHiKg6TnIulAVM,3409
|
3
3
|
omlish/__init__.py,sha256=SsyiITTuK0v74XpKV8dqNaCmjOlan1JZKrHQv5rWKPA,253
|
4
4
|
omlish/c3.py,sha256=ubu7lHwss5V4UznbejAI0qXhXahrU01MysuHOZI9C4U,8116
|
5
5
|
omlish/cached.py,sha256=UI-XTFBwA6YXWJJJeBn-WkwBkfzDjLBBaZf4nIJA9y0,510
|
@@ -169,12 +169,15 @@ omlish/dispatch/_dispatch3.py,sha256=Vnu5DfoPWFJLodudBqoZBXGTi2wYk-Az56MXJgdQvwc
|
|
169
169
|
omlish/dispatch/dispatch.py,sha256=8XQiLVoAq4u2oO0DnDSXQB9Q5qDk569l4CIFBqwDSyc,3847
|
170
170
|
omlish/dispatch/functions.py,sha256=S8ElsLi6DKxTdtFGigWaF0vAquwy2sK-3f4iRLaYq70,1522
|
171
171
|
omlish/dispatch/methods.py,sha256=XHjwwC9Gn4iDWxbyLAcbdSwRgVaq-8Bnn5cAwf5oZdA,5403
|
172
|
-
omlish/docker/__init__.py,sha256=
|
172
|
+
omlish/docker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
173
|
+
omlish/docker/all.py,sha256=2BqXMehpqj4j6-rVq_iOMcjoWgw4oyC3jWeHd_jPOZo,487
|
173
174
|
omlish/docker/cli.py,sha256=gtb9kitVfGnd4cr587NsVVk8D5Ok5y5SAsqD_SwGrSA,2565
|
174
175
|
omlish/docker/compose.py,sha256=4drmnGQzbkOFJ9B6XSg9rnXkJeZz1ETmdcMe1PE790U,1237
|
175
|
-
omlish/docker/
|
176
|
+
omlish/docker/consts.py,sha256=wvwfUtEFrEWZKfREWqSMrx8xjjl8P5MNUSF6qzzgJHY,70
|
177
|
+
omlish/docker/detect.py,sha256=Qrdbosm2wJkxKDuy8gaGmbQoxk4Wnp1HJjAEz58NA8Y,614
|
176
178
|
omlish/docker/hub.py,sha256=7LIuJGdA-N1Y1dmo50ynKM1KUTcnQM_5XbtPbdT_QLU,3940
|
177
179
|
omlish/docker/manifests.py,sha256=LR4FpOGNUT3bZQ-gTjB6r_-1C3YiG30QvevZjrsVUQM,7068
|
180
|
+
omlish/docker/timebomb.py,sha256=A_pgIDaXKsQwPiikrCTgIJl91gwYqkPGFY6j-Naq07Q,342
|
178
181
|
omlish/formats/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
179
182
|
omlish/formats/dotenv.py,sha256=qoDG4Ayu7B-8LjBBhcmNiLZW0_9LgCi3Ri2aPo9DEQ8,19314
|
180
183
|
omlish/formats/props.py,sha256=cek3JLFLIrpE76gvs8rs_B8yF4SpY8ooDH8apWsquwE,18953
|
@@ -326,10 +329,9 @@ omlish/lifecycles/states.py,sha256=zqMOU2ZU-MDNnWuwauM3_anIAiXM8LoBDElDEraptFg,1
|
|
326
329
|
omlish/lifecycles/transitions.py,sha256=qQtFby-h4VzbvgaUqT2NnbNumlcOx9FVVADP9t83xj4,1939
|
327
330
|
omlish/lite/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
328
331
|
omlish/lite/cached.py,sha256=hBW77-F7ZLtFqbLwVrlqaJ4-iFHMQleMWZXaZN1IubA,1308
|
329
|
-
omlish/lite/check.py,sha256=
|
332
|
+
omlish/lite/check.py,sha256=tAKB99X_oHG3JADUgZXMdPzgN8aNF9UBuJv4WeSgM_A,12877
|
330
333
|
omlish/lite/contextmanagers.py,sha256=4tKuBYyxn-aI31QowIuClHgpML8JsdzCW3j5ms_-uuY,1418
|
331
334
|
omlish/lite/deathsig.py,sha256=Etz04WX6R2PXQ-BgqJyVJ0C5Pqym6Ds6PAG7p1cqr5o,626
|
332
|
-
omlish/lite/docker.py,sha256=Dj_7lQjs2sFPc_SmUn5CpJF3LnQQnckEBYGBKz8u5tE,392
|
333
335
|
omlish/lite/inject.py,sha256=729Qi0TLbQgBtkvx97q1EUMe73VFYA1hu4woXkOTcwM,23572
|
334
336
|
omlish/lite/journald.py,sha256=f5Y2Q6-6O3iK_7MoGiwZwoQEOcP7LfkxxQNUR9tMjJM,3882
|
335
337
|
omlish/lite/json.py,sha256=7-02Ny4fq-6YAu5ynvqoijhuYXWpLmfCI19GUeZnb1c,740
|
@@ -501,7 +503,7 @@ omlish/testing/pytest/plugins/pydevd.py,sha256=AXtN83M39ZKJ4VH3MJEhvPnAmYzD5u1r8
|
|
501
503
|
omlish/testing/pytest/plugins/repeat.py,sha256=flSQzE9GFOWksVKz-mUGnpxJpv3yRqn1G4K8pW7JHs0,498
|
502
504
|
omlish/testing/pytest/plugins/skips.py,sha256=EoZDg1uWccgbAegmzqI85c7RliycD1e2J4Y7vfDRhwM,1041
|
503
505
|
omlish/testing/pytest/plugins/spacing.py,sha256=JQQhi9q3c523Ro1a_K_9RGAb7HotiO74N8bYX2VESFE,707
|
504
|
-
omlish/testing/pytest/plugins/switches.py,sha256=
|
506
|
+
omlish/testing/pytest/plugins/switches.py,sha256=CflHe6gLhkLt_9OcAmzskuZsrhZhwOuL_bIdogibARc,3815
|
505
507
|
omlish/testing/pytest/plugins/utils.py,sha256=L5C622UXcA_AUKDcvyh5IMiRfqSGGz0McdhwZWvfMlU,261
|
506
508
|
omlish/text/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
507
509
|
omlish/text/asdl.py,sha256=AS3irh-sag5pqyH3beJif78PjCbOaFso1NeKq-HXuTs,16867
|
@@ -510,9 +512,9 @@ omlish/text/glyphsplit.py,sha256=Ug-dPRO7x-OrNNr8g1y6DotSZ2KH0S-VcOmUobwa4B0,329
|
|
510
512
|
omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
|
511
513
|
omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
|
512
514
|
omlish/text/random.py,sha256=jNWpqiaKjKyTdMXC-pWAsSC10AAP-cmRRPVhm59ZWLk,194
|
513
|
-
omlish-0.0.0.
|
514
|
-
omlish-0.0.0.
|
515
|
-
omlish-0.0.0.
|
516
|
-
omlish-0.0.0.
|
517
|
-
omlish-0.0.0.
|
518
|
-
omlish-0.0.0.
|
515
|
+
omlish-0.0.0.dev151.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
516
|
+
omlish-0.0.0.dev151.dist-info/METADATA,sha256=0_iQYyCyZ0t_LBY1iVoaAE45eNRW7Q-Q8VojC9ObbmA,4264
|
517
|
+
omlish-0.0.0.dev151.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
518
|
+
omlish-0.0.0.dev151.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
519
|
+
omlish-0.0.0.dev151.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
520
|
+
omlish-0.0.0.dev151.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|