license-expression
license-expression copied to clipboard
Deprecated SPDX licenses are marked as unknown
The documentation for the SPDX License List states:
"When a license identifier is "deprecated" on the SPDX License List, it effectively means that there is an updated license identifier and the deprecated license identifier, while remaining valid, should no longer be used. "
"wxWindows" is one of the deprecated license but it's marked as an unknown license key when trying to validate it with the code below.
expression = get_spdx_licensing().parse("wxWindows")
print(get_spdx_licensing().validate(expression))
Other deprecated identifiers containing an exception like "GPL-2.0-with-autoconf-exception" are also marked as unknown. I am not sure if this has to do with #82 but I think these should also be accepted.
This is intended: https://github.com/nexB/license-expression/blob/c20b3f605daefc7cd9e4dc7b34e95280f206def3/src/license_expression/init.py#L873 It has been changed in https://github.com/nexB/license-expression/commit/ac80a210abeb848a405266817257d2cb5184a390 and is part of #58. If you need support for deprecated licenses, you cannot use get_spdx_licensing
at the moment, but will have to use your own version of get_spdx_licensing
/build_spdx_licensing
.