pydevversions 4.2.0__tar.gz → 4.2.2__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: 4.2.0
3
+ Version: 4.2.2
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
@@ -57,7 +57,7 @@ try:
57
57
  app_version = version("pydevversions")
58
58
  except PackageNotFoundError:
59
59
  app_version = "dev"
60
- if not noparams:
60
+ if not noparams and not compact:
61
61
  if not is_json:
62
62
  print(format_message("pydevversions",f"v{app_version} is running...","🚀"))
63
63
  print(format_message("command",' '.join(sys.argv[0:]),"🧾"))
@@ -72,7 +72,7 @@ BASE_DIR = Path(__file__).resolve().parent
72
72
  yaml_path = BASE_DIR / "apps.yaml"
73
73
  word_with_version_regex = re.compile(r'\S*\d\S*')
74
74
 
75
- if not noinfo:
75
+ if not noinfo and not compact:
76
76
  json_obj["info"] = {}
77
77
  if not noprograms:
78
78
  json_obj["programs"] = []
@@ -84,7 +84,7 @@ if not is_json:
84
84
  table.add_column("Version")
85
85
  table.add_column("Path")
86
86
 
87
- use_tqdm = not (raw or is_json or debug or noprogress or noprograms)
87
+ use_tqdm = not (raw or is_json or debug or noprogress or noprograms or compact)
88
88
 
89
89
  #filter apps
90
90
  with open(yaml_path, "r") as f:
@@ -455,7 +455,7 @@ def process_item(item, multi):
455
455
  def app():
456
456
  #info bloc
457
457
 
458
- if not noinfo:
458
+ if not noinfo and not compact:
459
459
  if not is_json:
460
460
  print(format_message("user (shell)",getpass.getuser() + " ("+os.environ.get("SHELL")+")","👤"))
461
461
  print(format_message("os",f"{distro.name()} {distro.version()} ({platform.release()})","💻"))
@@ -529,17 +529,17 @@ def app():
529
529
  json_obj["programs"].append(r)
530
530
 
531
531
  if not is_json:
532
- if not notime:
532
+ if not notime and not compact:
533
533
  print(f"⏳ exec. time : {time.time() - start_time:.1f}s")
534
534
  if compact:
535
535
  table.show_header = False
536
536
  table.show_lines = False
537
537
  table.border_style = None
538
-
539
- table.row_styles = ["blue", "green"] # alternance couleurs
538
+ if not raw:
539
+ table.row_styles = ["blue", "green"]
540
540
  console.print(table)
541
541
  else:
542
- if not is_json and not notime:
542
+ if not is_json and not notime and not compact:
543
543
  print(f"⏳ exec. time : {time.time() - start_time:.1f}s")
544
544
  #json bloc
545
545
  if is_json:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pydevversions
3
- Version: 4.2.0
3
+ Version: 4.2.2
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="4.2.0",
5
+ version="4.2.2",
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