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 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
@@ -1,5 +1,5 @@
1
- __version__ = '0.0.0.dev111'
2
- __revision__ = 'bb150a1986306450374f5184b47e2658a5b7c656'
1
+ __version__ = '0.0.0.dev112'
2
+ __revision__ = 'b12f9a554e6b2fb475bd820af89e0860c0b46215'
3
3
 
4
4
 
5
5
  #
@@ -8,14 +8,14 @@ import subprocess
8
8
  import sys
9
9
  import typing as ta
10
10
 
11
- from ... import check
12
- from ... import lang
11
+ from .. import check
12
+ from .. import lang
13
13
 
14
14
 
15
15
  if ta.TYPE_CHECKING:
16
- docker = lang.proxy_import('...docker')
16
+ docker = lang.proxy_import('..docker')
17
17
  else:
18
- from ... import docker
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omlish
3
- Version: 0.0.0.dev111
3
+ Version: 0.0.0.dev112
4
4
  Summary: omlish
5
5
  Author: wrmsr
6
6
  License: BSD-3-Clause
@@ -1,5 +1,5 @@
1
- omlish/.manifests.json,sha256=hTFp9tvE72BxKloIq1s1SS0LRQlIsvMtO69Sbc47rKg,1704
2
- omlish/__about__.py,sha256=gvxx_bze4mfSzt-0PMk7AqSogAZ6wFVXsyllG2meSDQ,3352
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=j2eZIqIUpy34ZmoGyIzsYuKx9HeewwYBfrGNC99EFYk,928
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.dev111.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
473
- omlish-0.0.0.dev111.dist-info/METADATA,sha256=NOhma2BjhNWfdWwTjNisoW2NP0V3sJ2Fi75u2-IF2UE,4000
474
- omlish-0.0.0.dev111.dist-info/WHEEL,sha256=a7TGlA-5DaHMRrarXjVbQagU3Man_dCnGIWMJr5kRWo,91
475
- omlish-0.0.0.dev111.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
476
- omlish-0.0.0.dev111.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
477
- omlish-0.0.0.dev111.dist-info/RECORD,,
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,,
@@ -1,7 +0,0 @@
1
- from .pycharm import ( # noqa
2
- PycharmRemoteDebugger,
3
- get_pycharm_version,
4
- is_pycharm_hosted,
5
- pycharm_remote_debugger_attach,
6
- read_darwin_pycharm_info_plist,
7
- )
@@ -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()