rattler icon indicating copy to clipboard operation
rattler copied to clipboard

Add PEP 639 license information to `PypiPackageData`

Open pavelzw opened this issue 11 months ago • 1 comments

Checklist

  • [x] I added a descriptive title
  • [x] I searched open requests and couldn't find a duplicate

What is the idea?

It would be nice to have the license information available in the PypiPackageData struct similar to how we have it in CondaPackageData as well.

https://peps.python.org/pep-0639/

Why is this needed?

needed for https://github.com/Quantco/conda-deny/issues/25

What should happen?

No response

Additional Context

No response

pavelzw avatar Dec 18 '24 10:12 pavelzw

The reason we have the license information in the lock-file is not because its nice to have this information in the lock-file. We store it because in the matchspec language one could depend on the license of a package. E.g. rattler[license="BSD-3-Clause"]. Theoretically its part of the metadata that we need for the solver.

Its a pretty cool feature but also something I have never seen used. Regardless, to be fully compliant we need the information in the lock-file.

baszalmstra avatar Jan 01 '25 20:01 baszalmstra