omlish 0.0.0.dev111__py3-none-any.whl → 0.0.0.dev112__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omlish/.manifests.json +0 -12
- omlish/__about__.py +2 -2
- omlish/diag/{pycharm/pycharm.py → pycharm.py} +4 -4
- omlish/docker/helpers.py +1 -1
- {omlish-0.0.0.dev111.dist-info → omlish-0.0.0.dev112.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev111.dist-info → omlish-0.0.0.dev112.dist-info}/RECORD +10 -12
- omlish/diag/pycharm/__init__.py +0 -7
- omlish/diag/pycharm/cli.py +0 -46
- {omlish-0.0.0.dev111.dist-info → omlish-0.0.0.dev112.dist-info}/LICENSE +0 -0
- {omlish-0.0.0.dev111.dist-info → omlish-0.0.0.dev112.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev111.dist-info → omlish-0.0.0.dev112.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev111.dist-info → omlish-0.0.0.dev112.dist-info}/top_level.txt +0 -0
omlish/.manifests.json
CHANGED
@@ -23,18 +23,6 @@
|
|
23
23
|
}
|
24
24
|
}
|
25
25
|
},
|
26
|
-
{
|
27
|
-
"module": ".diag.pycharm.cli",
|
28
|
-
"attr": "_CLI_MODULE",
|
29
|
-
"file": "omlish/diag/pycharm/cli.py",
|
30
|
-
"line": 38,
|
31
|
-
"value": {
|
32
|
-
"$omdev.cli.types.CliModule": {
|
33
|
-
"cmd_name": "pycharm",
|
34
|
-
"mod_name": "omlish.diag.pycharm.cli"
|
35
|
-
}
|
36
|
-
}
|
37
|
-
},
|
38
26
|
{
|
39
27
|
"module": ".formats.json.cli.__main__",
|
40
28
|
"attr": "_CLI_MODULE",
|
omlish/__about__.py
CHANGED
@@ -8,14 +8,14 @@ import subprocess
|
|
8
8
|
import sys
|
9
9
|
import typing as ta
|
10
10
|
|
11
|
-
from
|
12
|
-
from
|
11
|
+
from .. import check
|
12
|
+
from .. import lang
|
13
13
|
|
14
14
|
|
15
15
|
if ta.TYPE_CHECKING:
|
16
|
-
docker = lang.proxy_import('
|
16
|
+
docker = lang.proxy_import('..docker')
|
17
17
|
else:
|
18
|
-
from
|
18
|
+
from .. import docker
|
19
19
|
|
20
20
|
|
21
21
|
##
|
omlish/docker/helpers.py
CHANGED
@@ -26,7 +26,7 @@ def timebomb_payload(delay_s: float, name: str = _DEFAULT_TIMEBOMB_NAME) -> str:
|
|
26
26
|
DOCKER_FOR_MAC_HOSTNAME = 'docker.for.mac.localhost'
|
27
27
|
|
28
28
|
|
29
|
-
_LIKELY_IN_DOCKER_PATTERN = re.compile(r'^overlay / .*/docker/')
|
29
|
+
_LIKELY_IN_DOCKER_PATTERN = re.compile(r'^overlay / .*/(docker|desktop-containerd)/')
|
30
30
|
|
31
31
|
|
32
32
|
def is_likely_in_docker() -> bool:
|
@@ -1,5 +1,5 @@
|
|
1
|
-
omlish/.manifests.json,sha256=
|
2
|
-
omlish/__about__.py,sha256=
|
1
|
+
omlish/.manifests.json,sha256=CxGnj-UiRPlZgmgWoovDWrOnqpSEmBy_kqA7cdfSA3w,1431
|
2
|
+
omlish/__about__.py,sha256=DGyL6xk-FSlgo5rE4puw2-MQAqKILCVboGjEq38_1Ek,3352
|
3
3
|
omlish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
omlish/argparse.py,sha256=Dc73G8lyoQBLvXhMYUbzQUh4SJu_OTvKUXjSUxq_ang,7499
|
5
5
|
omlish/c3.py,sha256=4vogWgwPb8TbNS2KkZxpoWbwjj7MuHG2lQG-hdtkvjI,8062
|
@@ -155,13 +155,11 @@ omlish/diag/debug.py,sha256=YPzQXiBAJMYHYpBKzx0QhlLMZokjR5kkAVLodA3yddQ,424
|
|
155
155
|
omlish/diag/procfs.py,sha256=vBovaMvAUKdl7FbtFq3TNsSmdhs8DaYfhoEsKeWYta8,9704
|
156
156
|
omlish/diag/procstats.py,sha256=UkqxREqfd-38xPYZ9T1SIJISz5ARQCEhTtOZrxtm2dE,777
|
157
157
|
omlish/diag/ps.py,sha256=1JWxZen3fVG-20R6ZZ8BtO_gpzw_5bhHZiKdoHkgxoU,1004
|
158
|
+
omlish/diag/pycharm.py,sha256=7-r_F-whXt8v-0dehxAX-MeMFPM3iZXX9IfeL0GfUtk,4643
|
158
159
|
omlish/diag/pydevd.py,sha256=tHI0fc2ZaYKudUWTRuUe5B66qGeNktPC49ZKb8x0rSY,7298
|
159
160
|
omlish/diag/threads.py,sha256=1-x02VCDZ407gfbtXm1pWK-ubqhqfePm9PMqkHCVoqk,3642
|
160
161
|
omlish/diag/_pycharm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
161
162
|
omlish/diag/_pycharm/runhack.py,sha256=eJlaUXIcFzAjOop_793RwNS_KF9NmhLv0i22xRVVeo0,34951
|
162
|
-
omlish/diag/pycharm/__init__.py,sha256=-hZryZ3RfuoH4arwhBl-RmCZ6j-ybuUIEUf9C8o37iY,180
|
163
|
-
omlish/diag/pycharm/cli.py,sha256=7SRh6yj8S5YGda4bq9BD4Kzwtgg4_Wa-K202ReZN2iI,1011
|
164
|
-
omlish/diag/pycharm/pycharm.py,sha256=Xmh0PyOe51NSI7kYODvhjYCKIqSddyYOAqjx9v6zNlw,4647
|
165
163
|
omlish/diag/replserver/__init__.py,sha256=uLo6V2aQ29v9z3IMELlPDSlG3_2iOT4-_X8VniF-EgE,235
|
166
164
|
omlish/diag/replserver/__main__.py,sha256=LmU41lQ58bm1h4Mx7S8zhE_uEBSC6kPcp9mn5JRpulA,32
|
167
165
|
omlish/diag/replserver/console.py,sha256=XzBDVhYlr8FY6ym4OwoaIHuFOHnGK3dTYlMDIOMUUlA,7410
|
@@ -175,7 +173,7 @@ omlish/dispatch/methods.py,sha256=XHjwwC9Gn4iDWxbyLAcbdSwRgVaq-8Bnn5cAwf5oZdA,54
|
|
175
173
|
omlish/docker/__init__.py,sha256=dmda-4zBo0UM_CMws_1MOwtyObdF79LB0HF5IT3sDVk,482
|
176
174
|
omlish/docker/cli.py,sha256=gtb9kitVfGnd4cr587NsVVk8D5Ok5y5SAsqD_SwGrSA,2565
|
177
175
|
omlish/docker/compose.py,sha256=4drmnGQzbkOFJ9B6XSg9rnXkJeZz1ETmdcMe1PE790U,1237
|
178
|
-
omlish/docker/helpers.py,sha256=
|
176
|
+
omlish/docker/helpers.py,sha256=4gd82lpFh5bQFmKOkxgVU-QyuDcGR4341qW75UcFiX0,949
|
179
177
|
omlish/docker/hub.py,sha256=7LIuJGdA-N1Y1dmo50ynKM1KUTcnQM_5XbtPbdT_QLU,3940
|
180
178
|
omlish/docker/manifests.py,sha256=LR4FpOGNUT3bZQ-gTjB6r_-1C3YiG30QvevZjrsVUQM,7068
|
181
179
|
omlish/formats/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -469,9 +467,9 @@ omlish/text/glyphsplit.py,sha256=Ug-dPRO7x-OrNNr8g1y6DotSZ2KH0S-VcOmUobwa4B0,329
|
|
469
467
|
omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
|
470
468
|
omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
|
471
469
|
omlish/text/random.py,sha256=jNWpqiaKjKyTdMXC-pWAsSC10AAP-cmRRPVhm59ZWLk,194
|
472
|
-
omlish-0.0.0.
|
473
|
-
omlish-0.0.0.
|
474
|
-
omlish-0.0.0.
|
475
|
-
omlish-0.0.0.
|
476
|
-
omlish-0.0.0.
|
477
|
-
omlish-0.0.0.
|
470
|
+
omlish-0.0.0.dev112.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
471
|
+
omlish-0.0.0.dev112.dist-info/METADATA,sha256=INYzO7o12uhwfL_sfYgGb5QZrhHz6hTkQq8eby0_zrY,4000
|
472
|
+
omlish-0.0.0.dev112.dist-info/WHEEL,sha256=a7TGlA-5DaHMRrarXjVbQagU3Man_dCnGIWMJr5kRWo,91
|
473
|
+
omlish-0.0.0.dev112.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
474
|
+
omlish-0.0.0.dev112.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
475
|
+
omlish-0.0.0.dev112.dist-info/RECORD,,
|
omlish/diag/pycharm/__init__.py
DELETED
omlish/diag/pycharm/cli.py
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
import inspect
|
2
|
-
import os.path
|
3
|
-
import subprocess
|
4
|
-
import tempfile
|
5
|
-
|
6
|
-
from ... import argparse as ap
|
7
|
-
from .pycharm import get_pycharm_version
|
8
|
-
|
9
|
-
|
10
|
-
class Cli(ap.Cli):
|
11
|
-
@ap.command()
|
12
|
-
def version(self) -> None:
|
13
|
-
print(get_pycharm_version())
|
14
|
-
|
15
|
-
@ap.command(
|
16
|
-
ap.arg('python-exe'),
|
17
|
-
ap.arg('args', nargs=ap.REMAINDER),
|
18
|
-
)
|
19
|
-
def runhack(self) -> int:
|
20
|
-
if not os.path.isfile(exe := self.args.python_exe):
|
21
|
-
raise FileNotFoundError(exe)
|
22
|
-
|
23
|
-
from .._pycharm import runhack
|
24
|
-
src = inspect.getsource(runhack)
|
25
|
-
|
26
|
-
src_file = tempfile.mktemp(__package__ + '-runhack') # noqa
|
27
|
-
with open(src_file, 'w') as f:
|
28
|
-
f.write(src)
|
29
|
-
|
30
|
-
proc = subprocess.run([exe, src_file, *self.args.args], check=False)
|
31
|
-
return proc.returncode
|
32
|
-
|
33
|
-
|
34
|
-
def _main() -> None:
|
35
|
-
Cli().call_and_exit()
|
36
|
-
|
37
|
-
|
38
|
-
# @omlish-manifest
|
39
|
-
_CLI_MODULE = {'$omdev.cli.types.CliModule': {
|
40
|
-
'cmd_name': 'pycharm',
|
41
|
-
'mod_name': __name__,
|
42
|
-
}}
|
43
|
-
|
44
|
-
|
45
|
-
if __name__ == '__main__':
|
46
|
-
_main()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|