uv icon indicating copy to clipboard operation
uv copied to clipboard

implement `--invert` for `pip tree`

Open ChannyClaus opened this issue 1 year ago • 4 comments

Summary

partially resolves https://github.com/astral-sh/uv/issues/4439

Test Plan

existing tests pass + added a couple of new tests with --invert.

ChannyClaus avatar Jun 28 '24 15:06 ChannyClaus

all done 🌵

ChannyClaus avatar Jun 29 '24 04:06 ChannyClaus

I haven't looked at the implementation in detail, but is there a reason we want this to be --invert instead of --reverse like in pipdeptree?

Peiffap avatar Jun 29 '24 23:06 Peiffap

I haven't looked at the implementation in detail, but is there a reason we want this to be --invert instead of --reverse like in pipdeptree?

no reason, i just followed the naming convention in cargo tree, but if there's an overall preference for --reverse i'm happy to rename 👍

ChannyClaus avatar Jun 30 '24 00:06 ChannyClaus

I kind of find --invert clearer, but we can provide a hidden alias --reverse for pipdeptree compatibility.

zanieb avatar Jun 30 '24 03:06 zanieb