dekshell 0.2.57__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.
@@ -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 = "pip"
6
+ tag_head = "_pip"
8
7
 
9
8
  def execute(self, context, command, marker_node, marker_set):
10
- def walk(node, depth):
11
- if depth != 0:
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dekshell
3
- Version: 0.2.57
3
+ Version: 0.2.58
4
4
  Author-Email: sanzenwin <sanzenwin@gmail.com>
5
5
  License: MIT
6
6
  Requires-Python: >=3.8
@@ -1,6 +1,6 @@
1
- dekshell-0.2.57.dist-info/METADATA,sha256=UC4cwt4pfDK_oWoNqI4swWU2ZpySRj8hUcm1SXE0LPE,573
2
- dekshell-0.2.57.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- dekshell-0.2.57.dist-info/entry_points.txt,sha256=d-kbfULiUTZWIBBsrQF3J_-wESncF-4K2rwHT08grlI,75
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
@@ -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=mxXa_oqcrk4Qz-HvhlkMoirsl-SbM9Fz610leNqP1o0,832
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.57.dist-info/RECORD,,
40
+ dekshell-0.2.58.dist-info/RECORD,,