pydevversions 5.2.2__tar.gz → 5.2.4__tar.gz

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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydevversions
3
- Version: 5.2.2
3
+ Version: 5.2.4
4
4
  Summary: Displays versions and paths of a collection of apps in the terminal
5
5
  Home-page: https://github.com/thib1984/pydevversions
6
6
  Author: thib1984
@@ -160,7 +160,13 @@ source_cmds = " && ".join(
160
160
  cmd_src = f"{source_cmds} && env"
161
161
  if debug:
162
162
  print(format_message("debug cmdsrc",cmd_src,"👾"))
163
- result = subprocess.run([shell, "-c", cmd_src], capture_output=True, text=True)
163
+ result = subprocess.run(
164
+ [shell, "-c", cmd_src],
165
+ stdin=subprocess.DEVNULL,
166
+ start_new_session=True,
167
+ capture_output=True,
168
+ text=True,
169
+ )
164
170
  if debug:
165
171
  print(format_message("debug cmdsrc",result,"👾"))
166
172
  env = dict(
@@ -174,6 +180,8 @@ if noalias:
174
180
  else:
175
181
  alias_proc = subprocess.run(
176
182
  [shell, "-i", "-c", "alias -L | awk -F'[ =]' '{print $2}'"],
183
+ stdin=subprocess.DEVNULL,
184
+ start_new_session=True,
177
185
  capture_output=True,
178
186
  text=True
179
187
  )
@@ -182,6 +190,8 @@ else:
182
190
  print(format_message("debug aliases",str(aliases),"👾"))
183
191
  func_proc = subprocess.run(
184
192
  [shell, "-i", "-c", "compgen -A function"],
193
+ stdin=subprocess.DEVNULL,
194
+ start_new_session=True,
185
195
  capture_output=True,
186
196
  text=True
187
197
  )
@@ -424,6 +434,8 @@ def run_command_version(cmd, multi):
424
434
  return "_interactive_"
425
435
  result = subprocess.run(
426
436
  [shell, "-i", "-c", shlex.join(cmd)],
437
+ stdin=subprocess.DEVNULL,
438
+ start_new_session=True,
427
439
  capture_output=True,
428
440
  text=True,
429
441
  env=env
@@ -474,6 +486,8 @@ def process_item(item, multi):
474
486
  if base_binary in aliases or base_binary in functions:
475
487
  check_type = subprocess.run(
476
488
  [shell, "-i", "-c", f"type {shlex.quote(base_binary)}"],
489
+ stdin=subprocess.DEVNULL,
490
+ start_new_session=True,
477
491
  capture_output=True,
478
492
  text=True,
479
493
  env=env
@@ -140,7 +140,6 @@ commands:
140
140
  categories: ["build", "development"]
141
141
 
142
142
  - name: grep
143
- version_cmd: ["grep", "--help"]
144
143
  categories: ["system"]
145
144
 
146
145
  - name: groovy
@@ -259,7 +258,7 @@ commands:
259
258
  categories: ["editor"]
260
259
 
261
260
  - name: nc
262
- version_cmd: ["nc"]
261
+ version_cmd: ["nc", "-h"]
263
262
  categories: ["network"]
264
263
 
265
264
  - name: node
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydevversions
3
- Version: 5.2.2
3
+ Version: 5.2.4
4
4
  Summary: Displays versions and paths of a collection of apps in the terminal
5
5
  Home-page: https://github.com/thib1984/pydevversions
6
6
  Author: thib1984
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name="pydevversions",
5
- version="5.2.2",
5
+ version="5.2.4",
6
6
  description="Displays versions and paths of a collection of apps in the terminal",
7
7
  long_description="The complete description/installation/use/FAQ is available at : https://github.com/thib1984/pydevversions#readme",
8
8
  url="https://github.com/thib1984/pydevversions",
File without changes
File without changes