dekshell 0.2.56__py3-none-any.whl → 0.2.58__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dekshell/core/contexts/methods.py +2 -1
- dekshell/core/markers/pip_.py +3 -14
- {dekshell-0.2.56.dist-info → dekshell-0.2.58.dist-info}/METADATA +1 -1
- {dekshell-0.2.56.dist-info → dekshell-0.2.58.dist-info}/RECORD +6 -6
- {dekshell-0.2.56.dist-info → dekshell-0.2.58.dist-info}/WHEEL +0 -0
- {dekshell-0.2.56.dist-info → dekshell-0.2.58.dist-info}/entry_points.txt +0 -0
|
@@ -15,7 +15,7 @@ from dektools.file import sure_dir, write_file, read_text, remove_path, sure_par
|
|
|
15
15
|
format_path_desc, read_file, split_ext, path_ext, clear_dir, copy_recurse_ignore, path_is_empty, \
|
|
16
16
|
read_lines, seek_py_module_path, come_real_path, status_of_dir, diff_of_dir, path_parent, \
|
|
17
17
|
split_file, combine_split_files, remove_split_files, meta_split_file, tree, iglob, \
|
|
18
|
-
iter_dir_type, iter_dir_type_one, rc4_file, \
|
|
18
|
+
iter_dir_type, iter_dir_type_one, rc4_file, iter_relative_path, \
|
|
19
19
|
where, which, those
|
|
20
20
|
from dektools.venvx.active import activate_venv, is_venv_active
|
|
21
21
|
from dektools.venvx.tools import find_venv_path, is_venv_path
|
|
@@ -321,6 +321,7 @@ default_methods = {
|
|
|
321
321
|
|
|
322
322
|
'lsa': iter_dir_type,
|
|
323
323
|
'lso': lambda path='.', file=None: iter_dir_type_one(path, file, ''),
|
|
324
|
+
'lsr': iter_relative_path,
|
|
324
325
|
'ls': lambda x='.': os.listdir(x),
|
|
325
326
|
|
|
326
327
|
'iglob': iglob,
|
dekshell/core/markers/pip_.py
CHANGED
|
@@ -1,24 +1,13 @@
|
|
|
1
1
|
from dektools.file import write_file, remove_path
|
|
2
|
-
from ...utils.pkg import get_installed_distributions_map, is_dist_installed
|
|
3
2
|
from .base import MarkerWithEnd
|
|
4
3
|
|
|
5
4
|
|
|
6
5
|
class PipMarker(MarkerWithEnd):
|
|
7
|
-
tag_head = "
|
|
6
|
+
tag_head = "_pip"
|
|
8
7
|
|
|
9
8
|
def execute(self, context, command, marker_node, marker_set):
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
for c in node.command.split('||'):
|
|
13
|
-
c = c.strip()
|
|
14
|
-
if c:
|
|
15
|
-
req_list.append(c)
|
|
16
|
-
|
|
17
|
-
req_list = []
|
|
18
|
-
marker_node.walk(walk)
|
|
19
|
-
dist_map = get_installed_distributions_map()
|
|
20
|
-
req_list = [req for req in req_list if not is_dist_installed(req, dist_map)]
|
|
21
|
-
fp = write_file(None, t='\n'.join(req_list))
|
|
9
|
+
text = self.get_inner_content(context, marker_node, translate=None)
|
|
10
|
+
fp = write_file(s=text)
|
|
22
11
|
marker_set.shell_cmd(f'pip install -r {fp}')
|
|
23
12
|
remove_path(fp)
|
|
24
13
|
return []
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
dekshell-0.2.
|
|
2
|
-
dekshell-0.2.
|
|
3
|
-
dekshell-0.2.
|
|
1
|
+
dekshell-0.2.58.dist-info/METADATA,sha256=cejpBgr1WD-2N5sjIEh2k_MFpCzNT-sVAa9jOCRVObM,573
|
|
2
|
+
dekshell-0.2.58.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
|
3
|
+
dekshell-0.2.58.dist-info/entry_points.txt,sha256=d-kbfULiUTZWIBBsrQF3J_-wESncF-4K2rwHT08grlI,75
|
|
4
4
|
dekshell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
dekshell/click/__entry__.py,sha256=CMuxUzXoEe4TcHFZwv-MNFwHnu1HSZCDpXFpqQ814uM,42
|
|
6
6
|
dekshell/click/__init__.py,sha256=r-AHdO9CEEVvTN20-8Jozr6Zh8XSv_BnktYRwrlhtrE,2046
|
|
7
7
|
dekshell/core/__init__.py,sha256=isDEKwk1odLdvTQNCILCtVNBuXp1uFVPz_uTDNihkVU,5547
|
|
8
8
|
dekshell/core/contexts/__init__.py,sha256=oBZhmXtSoOBgZPAHu6wiMCCW-yIdkC5mqSXqbvKYUy4,490
|
|
9
|
-
dekshell/core/contexts/methods.py,sha256
|
|
9
|
+
dekshell/core/contexts/methods.py,sha256=OngRFg2FTG21RjVvd2kguHbYTSLbmvfYQRof4xk7KNI,12339
|
|
10
10
|
dekshell/core/contexts/properties.py,sha256=TQonN3T_K2cB2uakq_DVVB13B-IFwoM6t2ZkL_OMekw,3365
|
|
11
11
|
dekshell/core/markers/__init__.py,sha256=1oq4wlBOJV56hsshPe0ZZZMvoItCV2Xs2RN08HTrbiY,2255
|
|
12
12
|
dekshell/core/markers/base/__init__.py,sha256=CHD9vb8yGjnALimCwZJ2refbPB7zAE4FgQKLoRwzLrE,18037
|
|
@@ -24,7 +24,7 @@ dekshell/core/markers/function.py,sha256=j8Cz4ouBQi_0dT6Q6pfJie-1rfIZuSIcWzGBlsK
|
|
|
24
24
|
dekshell/core/markers/if_.py,sha256=UqEnR0X9bKO7hEKol3MJNWXvP7fuJAGt8zwk3xlBCuk,1118
|
|
25
25
|
dekshell/core/markers/input.py,sha256=94SWaeLnwtxRdIn9Ck0IxMZL6vOXVCedUmsp5IPAwWo,1188
|
|
26
26
|
dekshell/core/markers/invoke.py,sha256=ESL2DE9DTaq33AnrXpvEudp1qtoeZFKOhLL12OQpcs0,1975
|
|
27
|
-
dekshell/core/markers/pip_.py,sha256=
|
|
27
|
+
dekshell/core/markers/pip_.py,sha256=kQjXy57YPFqCpryO_6F5v51g49DprMAAJp-eWdptpFU,408
|
|
28
28
|
dekshell/core/markers/redirect.py,sha256=-w_qhdaHa1hIi-LjCmXpaYKZWrTitAiSawjEf8qjYt4,1989
|
|
29
29
|
dekshell/core/markers/shell.py,sha256=43BDAAzMdmgZmemkW5buh_w4LL1GDGw-s9fNZo6vhag,1929
|
|
30
30
|
dekshell/core/markers/var.py,sha256=yA2T8dq4vbfyeaV1KOUt3YZp51WTC623NviMAJTOdOQ,8182
|
|
@@ -37,4 +37,4 @@ dekshell/utils/cmd.py,sha256=K9FbXgHcGFchHA58xI0_t4YK4yb8XkWbxsNoztYRx3Y,518
|
|
|
37
37
|
dekshell/utils/pkg.py,sha256=TgYqRqawoJfjkxt6UAHnp9ttmpjuHiWRFbqxADOS1VE,1337
|
|
38
38
|
dekshell/utils/serializer.py,sha256=aIdF2Wzo-qHmIshv46jn1XD0X66vQ1JFdU-g3ZFbH2w,386
|
|
39
39
|
dekshell/utils/shell.py,sha256=0NoA2-SOOMinbmZZipwzL-npBbzPOdWEfdPVYqq5G5g,92
|
|
40
|
-
dekshell-0.2.
|
|
40
|
+
dekshell-0.2.58.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|