You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add uv license or similar to audit dependency licenses #8156
It would be cool to have a possibility to audit licenses of dependencies like pip-license does. (And including the new License-Expression in Metadata 2.4)
Reacted by Markus Pielmeier, Jared Lewis, Agriya Khetarpal, yayami3, Makarov Andrey, T-256, Charles Tapley Hoyt, Nathan Cain, Tom Gillam, Nick Murphy and 25 more
@charliermarsh would an appropriate approach here to include license information in the uv.lock file? I am new to the uv codebase, but exploring the feasibility of adding this capability.
It seems that ideally given a set of dependencies pulled in from a Lockfile that we would then introspect the license and report back. I spent an ~hour exploring the Package and PackageMetadata data models. It seems like most of what is discovered by the resolver is ultimately serialized into uv.lock and I'm not sure that would be appropriate here.
I'm exploring the codepath of uv tree as that seems most conceptually similar. Given a list of Packages, what would the most sensible way be to access either (a) classifiers, and/or (b) pyproject toml license data?
Activity
yayami3 commentedon Nov 29, 2024
I'm on board!
ryanleary commentedon Dec 13, 2024
@charliermarsh would an appropriate approach here to include license information in the
uv.lockfile? I am new to theuvcodebase, but exploring the feasibility of adding this capability.It seems that ideally given a set of dependencies pulled in from a Lockfile that we would then introspect the license and report back. I spent an ~hour exploring the
PackageandPackageMetadatadata models. It seems like most of what is discovered by the resolver is ultimately serialized into uv.lock and I'm not sure that would be appropriate here.I'm exploring the codepath of
uv treeas that seems most conceptually similar. Given a list of Packages, what would the most sensible way be to access either (a) classifiers, and/or (b) pyproject toml license data?