-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
[FEATURE] SPDX License factory #304
Comments
will prepare a POC for discussion this would lead to a v2 implementation in module(file) |
Will there be an option to force a specific license model? e.g. Dependency Track does not support expressions yet so even if the string is actually an expression, forcing it to a named license would at least make it visible in Dependency Track (knowing that the matching will not work). |
good point. the factory should be supporting both
the later one is the thing that is required, so that an implementation in the https://github.com/CycloneDX/cyclonedx-python/ should be a one-liner, then. |
I'm curious to see how it will determine what the return type should be.
Examples of licenses which are currently present in the BOM we use:
|
re: #304 (comment) the source of SPDX is different, but the rest is basically correc. a best-effort detection:
implementation will be good-enough for now and can be seen as a ground for improvements later. see #305 |
i am providing a best-effort-implementation - as a ground for improvements. |
feat: add license factories to more easily support creation of `License` or `LicenseChoice` from SPDX license strings #304
have a license factory, a thing that i feed a string and that returns the appropriate license model: expression, named license, spdx license.
required for
as a contrast implementation of CycloneDX/cyclonedx-python#410
solution ala
The text was updated successfully, but these errors were encountered: