omlish 0.0.0.dev65__py3-none-any.whl → 0.0.0.dev67__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omlish/.manifests.json +4 -4
- omlish/__about__.py +2 -2
- omlish/argparse.py +9 -1
- omlish/diag/_pycharm/__init__.py +0 -0
- omlish/diag/_pycharm/runhack.py +1456 -0
- omlish/diag/pycharm/__init__.py +6 -0
- omlish/diag/pycharm/cli.py +46 -0
- omlish/diag/{pycharm.py → pycharm/pycharm.py} +4 -15
- {omlish-0.0.0.dev65.dist-info → omlish-0.0.0.dev67.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev65.dist-info → omlish-0.0.0.dev67.dist-info}/RECORD +14 -10
- {omlish-0.0.0.dev65.dist-info → omlish-0.0.0.dev67.dist-info}/WHEEL +1 -1
- {omlish-0.0.0.dev65.dist-info → omlish-0.0.0.dev67.dist-info}/LICENSE +0 -0
- {omlish-0.0.0.dev65.dist-info → omlish-0.0.0.dev67.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev65.dist-info → omlish-0.0.0.dev67.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,46 @@
|
|
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()
|
@@ -4,14 +4,14 @@ import subprocess
|
|
4
4
|
import sys
|
5
5
|
import typing as ta
|
6
6
|
|
7
|
-
from
|
8
|
-
from
|
7
|
+
from ... import check
|
8
|
+
from ... import lang
|
9
9
|
|
10
10
|
|
11
11
|
if ta.TYPE_CHECKING:
|
12
|
-
docker = lang.proxy_import('
|
12
|
+
docker = lang.proxy_import('...docker')
|
13
13
|
else:
|
14
|
-
from
|
14
|
+
from ... import docker
|
15
15
|
|
16
16
|
|
17
17
|
##
|
@@ -136,14 +136,3 @@ def pycharm_remote_debugger_attach(
|
|
136
136
|
stdoutToServer=True,
|
137
137
|
stderrToServer=True,
|
138
138
|
)
|
139
|
-
|
140
|
-
|
141
|
-
# @omlish-manifest
|
142
|
-
_CLI_MODULE = {'$omdev.cli.types.CliModule': {
|
143
|
-
'cmd_name': 'pycharm',
|
144
|
-
'mod_name': __name__,
|
145
|
-
}}
|
146
|
-
|
147
|
-
|
148
|
-
if __name__ == '__main__':
|
149
|
-
print(get_pycharm_version())
|
@@ -1,7 +1,7 @@
|
|
1
|
-
omlish/.manifests.json,sha256=
|
2
|
-
omlish/__about__.py,sha256=
|
1
|
+
omlish/.manifests.json,sha256=TXvFdkAU0Zr2FKdo7fyvt9nr3UjCtrnAZ0diZXSAteE,1430
|
2
|
+
omlish/__about__.py,sha256=GBJLEW2X4D4jw_aYUOp97zWZQ0xVb4LJGcqAd4jBtnk,3420
|
3
3
|
omlish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
omlish/argparse.py,sha256=
|
4
|
+
omlish/argparse.py,sha256=Dc73G8lyoQBLvXhMYUbzQUh4SJu_OTvKUXjSUxq_ang,7499
|
5
5
|
omlish/c3.py,sha256=4vogWgwPb8TbNS2KkZxpoWbwjj7MuHG2lQG-hdtkvjI,8062
|
6
6
|
omlish/cached.py,sha256=UAizxlH4eMWHPzQtmItmyE6FEpFEUFzIkxaO2BHWZ5s,196
|
7
7
|
omlish/check.py,sha256=fgWiBoHvqZlE8tjaxK7OMW4J8z3_rEGRENTka3EohbI,10378
|
@@ -155,9 +155,13 @@ 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=d5-qwdewcEw-cUL1gbbNLJsdPYJWKu4vUmtXhkdP4-Q,3297
|
159
158
|
omlish/diag/pydevd.py,sha256=Fsx9rfCOnwLD6RLBqH0uAdtq75rbNeBAQfiDvIBd3e0,7295
|
160
159
|
omlish/diag/threads.py,sha256=1-x02VCDZ407gfbtXm1pWK-ubqhqfePm9PMqkHCVoqk,3642
|
160
|
+
omlish/diag/_pycharm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
161
|
+
omlish/diag/_pycharm/runhack.py,sha256=PCH6K4yT1di3n5q9d1nqUQWHZRcEOi3piGKXPjVDb38,35428
|
162
|
+
omlish/diag/pycharm/__init__.py,sha256=sT-ub7flKeCCbM_i32z9-eGV8hgGJ45hwdcqtGDkVRY,153
|
163
|
+
omlish/diag/pycharm/cli.py,sha256=7SRh6yj8S5YGda4bq9BD4Kzwtgg4_Wa-K202ReZN2iI,1011
|
164
|
+
omlish/diag/pycharm/pycharm.py,sha256=g-IfF8FBH93o6k_KDrLy8kIiFSLe3n39I2URipfFy0Q,3115
|
161
165
|
omlish/diag/replserver/__init__.py,sha256=uLo6V2aQ29v9z3IMELlPDSlG3_2iOT4-_X8VniF-EgE,235
|
162
166
|
omlish/diag/replserver/__main__.py,sha256=LmU41lQ58bm1h4Mx7S8zhE_uEBSC6kPcp9mn5JRpulA,32
|
163
167
|
omlish/diag/replserver/console.py,sha256=XzBDVhYlr8FY6ym4OwoaIHuFOHnGK3dTYlMDIOMUUlA,7410
|
@@ -408,9 +412,9 @@ omlish/text/delimit.py,sha256=ubPXcXQmtbOVrUsNh5gH1mDq5H-n1y2R4cPL5_DQf68,4928
|
|
408
412
|
omlish/text/glyphsplit.py,sha256=Ug-dPRO7x-OrNNr8g1y6DotSZ2KH0S-VcOmUobwa4B0,3296
|
409
413
|
omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
|
410
414
|
omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
|
411
|
-
omlish-0.0.0.
|
412
|
-
omlish-0.0.0.
|
413
|
-
omlish-0.0.0.
|
414
|
-
omlish-0.0.0.
|
415
|
-
omlish-0.0.0.
|
416
|
-
omlish-0.0.0.
|
415
|
+
omlish-0.0.0.dev67.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
416
|
+
omlish-0.0.0.dev67.dist-info/METADATA,sha256=hkhdhVlLm3TrbEEx22WjxDY4HDUOG_i2F--9ZwlK-ZE,4167
|
417
|
+
omlish-0.0.0.dev67.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
418
|
+
omlish-0.0.0.dev67.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
419
|
+
omlish-0.0.0.dev67.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
420
|
+
omlish-0.0.0.dev67.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|