Skip to content

Commit

Permalink
Merge pull request #1920 from camptocamp/backport/1915-to-1.5
Browse files Browse the repository at this point in the history
[Backport 1.5] Print version only of pre-installed application and c2cciutils
  • Loading branch information
sbrunner authored Sep 9, 2024
2 parents 3e5b7ba + 2496828 commit f004180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions c2cciutils/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,7 @@
{ "name": "node", "prefix": "node ", "cmd": ["node", "--version"] },
{ "name": "npm", "prefix": "npm ", "cmd": ["npm", "--version"] },
{ "name": "docker", "cmd": ["docker", "--version"] },
{ "name": "docker-compose", "cmd": ["docker-compose", "--version"] },
{ "name": "kubectl", "cmd": ["kubectl", "version"] },
{ "name": "docker compose", "cmd": ["docker", "compose", "version"] },
{ "name": "make", "cmd": ["make", "--version"], "prefix": "make " },
{ "name": "pip_packages", "cmd": ["pip", "freeze", "--all"], "prefix": "pip packages:\n" },
{
Expand Down
2 changes: 1 addition & 1 deletion c2cciutils/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def main() -> None:
print(yaml.dump(c2cciutils.get_config(), default_flow_style=False, Dumper=yaml.SafeDumper))

if args.version:
for pkg in ("c2cciutils", "black", "isort"):
for pkg in ("c2cciutils", "black", "isort", "codespell"):
try:
print(f"{pkg} {pkg_resources.get_distribution(pkg).version}")
except pkg_resources.DistributionNotFound:
Expand Down

0 comments on commit f004180

Please sign in to comment.