Skip to content

Commit

Permalink
More consistent deps output
Browse files Browse the repository at this point in the history
  • Loading branch information
thatch committed Feb 2, 2024
1 parent f3bb221 commit a633028
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion honesty/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,8 @@ def current_versions_callback(p: str) -> Optional[str]:
with keke.kev("print"):
if pick:
# TODO this is completely wrong
print(f"{deptree.name}=={deptree.version}")
child = deptree.deps[0].target
print(f"{child.name}=={child.version}")
elif flat:
print_flat_deps(walker.root, seen)
else:
Expand Down
3 changes: 2 additions & 1 deletion honesty/deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,8 @@ def print_deps(
if key[0] in known_conflicts and x.constraints
else None,
)
+ f"{dep_extras} (=={x.target.version}) (already listed){' ; ' + str(x.markers) if x.markers else ''} via {x.constraints or '*'}"
+ f"{dep_extras} (=={x.target.version}) (already listed){' ; ' + str(x.markers) if x.markers else ''} via "
+ click.style(x.constraints or "*", fg="yellow")
)
else:
if key[0] in known_conflicts and x.constraints:
Expand Down

0 comments on commit a633028

Please sign in to comment.