Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic license field #995

Open
LecrisUT opened this issue Feb 19, 2025 · 2 comments
Open

Dynamic license field #995

LecrisUT opened this issue Feb 19, 2025 · 2 comments

Comments

@LecrisUT
Copy link
Collaborator

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.

@henryiii
Copy link
Collaborator

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+.

@LecrisUT
Copy link
Collaborator Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants