scikit-build-core icon indicating copy to clipboard operation
scikit-build-core copied to clipboard

Dynamic `license` field

Open LecrisUT opened this issue 1 year ago • 2 comments

It occurred to me that we should support dynamic license field because a user project might either bundle or link to a library which would change the license metadata. A tricky point would be how to indicate different licenses for sdist and wheel that could occur on PyPI. This seems like it would require a PEP enhancement on top of PEP639.

LecrisUT avatar Feb 19 '25 12:02 LecrisUT

I believe this is possible with dynamic-metadata (we need to work on finishing that project, actually, probably should be another "before 1.0" target). It's also something that comes up with SBOM's (PEP 770), and I think it's the same solution, use the Dynamic field of METADATA 2.2+.

henryiii avatar Feb 19 '25 15:02 henryiii

Ah, ok so for PEP770 it adds a Sbom-File to PKG-INFO and .dist-info. That should also solve the SourceLicense vs License distinction. Dynamic field for license would work having different values in the PKG-INFO vs .dist-info/METADATA?

LecrisUT avatar Feb 19 '25 15:02 LecrisUT