astral-sh / uv

An extremely fast Python package installer and resolver, written in Rust.
https://astral.sh/
Apache License 2.0
14.72k stars 419 forks source link

`uv pip tree` should display extras #4710

Open ibraheemdev opened 6 days ago

ibraheemdev commented 6 days ago

uv pip tree should display extras that are installed in the environment.

potiuk commented 5 days ago

I believe that's impossible - that information is not stored after installation is finished - simply extras are only used while installation command runs and they are discarded (at least that's how it work when you install packages via pip - but it also means that there is no metadata stored in the system that can be queried about it.

zanieb commented 5 days ago

Hm yeah so at best we would be guessing.

There's relevant discussion about tracking the metadata at https://github.com/pypa/packaging-problems/issues/215 maybe we should just track this?

ChannyClaus commented 4 days ago

There's relevant discussion about tracking the metadata at https://github.com/pypa/packaging-problems/issues/215 maybe we should just track this?

that sounds reasonable to me - in the meantime if there's a lot of demand on this feature people can react to this issue, probably? since there hasn't been any update on the linked issue for years, might make sense to just implement the best-effort 🌵