pydevversions 2.0.2__tar.gz → 2.0.3__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.
- {pydevversions-2.0.2 → pydevversions-2.0.3}/PKG-INFO +1 -1
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pydevversions/app.py +117 -4
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pydevversions/apps.yaml +7 -6
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pydevversions.egg-info/PKG-INFO +1 -1
- {pydevversions-2.0.2 → pydevversions-2.0.3}/setup.py +1 -1
- {pydevversions-2.0.2 → pydevversions-2.0.3}/README.md +0 -0
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pydevversions/__init__.py +0 -0
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pydevversions/args.py +0 -0
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pydevversions.egg-info/SOURCES.txt +0 -0
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pydevversions.egg-info/dependency_links.txt +0 -0
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pydevversions.egg-info/entry_points.txt +0 -0
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pydevversions.egg-info/not-zip-safe +0 -0
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pydevversions.egg-info/requires.txt +0 -0
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pydevversions.egg-info/top_level.txt +0 -0
- {pydevversions-2.0.2 → pydevversions-2.0.3}/pyproject.toml +0 -0
- {pydevversions-2.0.2 → pydevversions-2.0.3}/setup.cfg +0 -0
|
@@ -135,7 +135,82 @@ def run_command(cmd):
|
|
|
135
135
|
print([shell, "-i", "-c", f"type {binary}"])
|
|
136
136
|
print(f"CODE : {check.returncode}")
|
|
137
137
|
print(f"STDOUT : {check.stdout}")
|
|
138
|
-
print(f"STDERR : {check.stderr}")
|
|
138
|
+
print(f"STDERR : {check.stderr}")
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
flatpak_check_user = subprocess.run(
|
|
142
|
+
["flatpak", "--user", "list", "--app", "--columns=application"],
|
|
143
|
+
capture_output=True,
|
|
144
|
+
text=True
|
|
145
|
+
)
|
|
146
|
+
user=False
|
|
147
|
+
if flatpak_check_user.returncode == 0:
|
|
148
|
+
apps = flatpak_check_user.stdout.splitlines()
|
|
149
|
+
|
|
150
|
+
for app in apps:
|
|
151
|
+
if binary.lower() in app.lower():
|
|
152
|
+
|
|
153
|
+
info_check = subprocess.run(
|
|
154
|
+
["flatpak", "--user", "info", app],
|
|
155
|
+
capture_output=True,
|
|
156
|
+
text=True
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
version = None
|
|
160
|
+
|
|
161
|
+
if info_check.returncode == 0:
|
|
162
|
+
for line in info_check.stdout.splitlines():
|
|
163
|
+
if line.lstrip().lower(). startswith("version"):
|
|
164
|
+
|
|
165
|
+
version = line.split(":", 1)[1].strip()
|
|
166
|
+
user=True
|
|
167
|
+
break
|
|
168
|
+
|
|
169
|
+
if version:
|
|
170
|
+
return f"{version}"
|
|
171
|
+
else:
|
|
172
|
+
return "not available"
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
else:
|
|
176
|
+
if debug:
|
|
177
|
+
print(f"CODE : {flatpak_check_user.returncode}")
|
|
178
|
+
print(f"STDOUT : {flatpak_check_user.stdout}")
|
|
179
|
+
print(f"STDERR : {flatpak_check_user.stderr}")
|
|
180
|
+
if user==False:
|
|
181
|
+
flatpak_check_system = subprocess.run(
|
|
182
|
+
["flatpak", "--system", "list", "--app", "--columns=application"],
|
|
183
|
+
capture_output=True,
|
|
184
|
+
text=True
|
|
185
|
+
)
|
|
186
|
+
user=False
|
|
187
|
+
if flatpak_check_system.returncode == 0:
|
|
188
|
+
apps = flatpak_check_system.stdout.splitlines()
|
|
189
|
+
|
|
190
|
+
for app in apps:
|
|
191
|
+
if binary.lower() in app.lower():
|
|
192
|
+
|
|
193
|
+
info_check = subprocess.run(
|
|
194
|
+
["flatpak", "--system", "info", app],
|
|
195
|
+
capture_output=True,
|
|
196
|
+
text=True
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
version = None
|
|
200
|
+
|
|
201
|
+
if info_check.returncode == 0:
|
|
202
|
+
for line in info_check.stdout.splitlines():
|
|
203
|
+
if line.lstrip().lower(). startswith("version"):
|
|
204
|
+
|
|
205
|
+
version = line.split(":", 1)[1].strip()
|
|
206
|
+
user=True
|
|
207
|
+
break
|
|
208
|
+
|
|
209
|
+
if version:
|
|
210
|
+
return f"{version}"
|
|
211
|
+
else:
|
|
212
|
+
return "not available"
|
|
213
|
+
|
|
139
214
|
return "not installed"
|
|
140
215
|
|
|
141
216
|
#appel à l'alias ou la fonction via un shell dédié
|
|
@@ -378,7 +453,46 @@ def app():
|
|
|
378
453
|
capture_output=True,
|
|
379
454
|
text=True
|
|
380
455
|
)
|
|
381
|
-
|
|
456
|
+
if check_type.returncode == 0:
|
|
457
|
+
path_cmd = ["echo", check_type.stdout.strip()]
|
|
458
|
+
if check_type.returncode != 0:
|
|
459
|
+
if debug:
|
|
460
|
+
print("")
|
|
461
|
+
print([shell, "-i", "-c", f"type {base_binary}"])
|
|
462
|
+
print(f"CODE : {check_type.returncode}")
|
|
463
|
+
print(f"STDOUT : {check_type.stdout}")
|
|
464
|
+
print(f"STDERR : {check_type.stderr}")
|
|
465
|
+
|
|
466
|
+
try:
|
|
467
|
+
user=False
|
|
468
|
+
flatpak_check_user = subprocess.run(
|
|
469
|
+
["flatpak", "--user", "list", "--app", "--columns=application"],
|
|
470
|
+
capture_output=True,
|
|
471
|
+
text=True
|
|
472
|
+
)
|
|
473
|
+
|
|
474
|
+
if flatpak_check_user.returncode == 0:
|
|
475
|
+
apps = flatpak_check_user.stdout.splitlines()
|
|
476
|
+
for app in apps:
|
|
477
|
+
if base_binary.lower() in app.lower():
|
|
478
|
+
user=True
|
|
479
|
+
path_cmd = ["echo", f"flatpak --user run {app}"]
|
|
480
|
+
if not user:
|
|
481
|
+
flatpak_check_system = subprocess.run(
|
|
482
|
+
["flatpak", "--system", "list", "--app", "--columns=application"],
|
|
483
|
+
capture_output=True,
|
|
484
|
+
text=True
|
|
485
|
+
)
|
|
486
|
+
|
|
487
|
+
if flatpak_check_system.returncode == 0:
|
|
488
|
+
apps = flatpak_check_system.stdout.splitlines()
|
|
489
|
+
for app in apps:
|
|
490
|
+
if base_binary.lower() in app.lower():
|
|
491
|
+
user=True
|
|
492
|
+
path_cmd = ["echo", f"flatpak --system run {app}"]
|
|
493
|
+
except FileNotFoundError:
|
|
494
|
+
if debug:
|
|
495
|
+
print("Flatpak not installed")
|
|
382
496
|
|
|
383
497
|
#calcul version
|
|
384
498
|
if not compute_args().compact:
|
|
@@ -389,7 +503,6 @@ def app():
|
|
|
389
503
|
if version != "not installed":
|
|
390
504
|
output = run_command(path_cmd).splitlines()
|
|
391
505
|
path_output = output[0] if output else ""
|
|
392
|
-
|
|
393
506
|
else:
|
|
394
507
|
path_output = "NA"
|
|
395
508
|
|
|
@@ -405,4 +518,4 @@ def app():
|
|
|
405
518
|
if not is_json:
|
|
406
519
|
console.print(table)
|
|
407
520
|
if is_json:
|
|
408
|
-
print(json.dumps(json_obj, indent=4))
|
|
521
|
+
print(json.dumps(json_obj, indent=4))
|
|
@@ -40,11 +40,6 @@ commands:
|
|
|
40
40
|
- name: chromium
|
|
41
41
|
categories: ["browser", "network"]
|
|
42
42
|
|
|
43
|
-
- name: chromium-flatpak
|
|
44
|
-
version_cmd: ["flatpak", "run", "org.chromium.Chromium", "--version"]
|
|
45
|
-
path_cmd: ["whereis", "flatpak"]
|
|
46
|
-
categories: ["browser", "network"]
|
|
47
|
-
|
|
48
43
|
- name: code
|
|
49
44
|
categories: ["development", "ide"]
|
|
50
45
|
|
|
@@ -158,6 +153,9 @@ commands:
|
|
|
158
153
|
version_cmd: ["k9s", "version", "-s"]
|
|
159
154
|
categories: ["devops", "kubernetes"]
|
|
160
155
|
|
|
156
|
+
- name: LibreWolf
|
|
157
|
+
categories: ["browser", "network"]
|
|
158
|
+
|
|
161
159
|
- name: lift
|
|
162
160
|
version_cmd: ["lift", "version"]
|
|
163
161
|
categories: ["system"]
|
|
@@ -246,6 +244,9 @@ commands:
|
|
|
246
244
|
- name: telnet
|
|
247
245
|
categories: ["network"]
|
|
248
246
|
|
|
247
|
+
- name: torbrowser-launcher
|
|
248
|
+
categories: ["browser"]
|
|
249
|
+
|
|
249
250
|
- name: trivy
|
|
250
251
|
categories: ["security", "devops", "containers", "scanner"]
|
|
251
252
|
|
|
@@ -275,4 +276,4 @@ commands:
|
|
|
275
276
|
categories: ["package-manager"]
|
|
276
277
|
|
|
277
278
|
- name: zsh
|
|
278
|
-
categories: ["shell", "system", "scripting"]
|
|
279
|
+
categories: ["shell", "system", "scripting"]
|
|
@@ -2,7 +2,7 @@ from setuptools import setup
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="pydevversions",
|
|
5
|
-
version="2.0.
|
|
5
|
+
version="2.0.3",
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|