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

Deprecated SPDX licenses are marked as unknown #83

Open
meretp opened this issue Apr 19, 2023 · 1 comment
Open

Deprecated SPDX licenses are marked as unknown #83

meretp opened this issue Apr 19, 2023 · 1 comment

Comments

@meretp
Copy link

meretp commented Apr 19, 2023

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.

AyanSinhaMahapatra added a commit that referenced this issue Nov 22, 2023
Added docs server script, dark mode & copybutton for docs, tracking chmod in git
@stefan6419846
Copy link

This is intended: https://github.com/nexB/license-expression/blob/c20b3f605daefc7cd9e4dc7b34e95280f206def3/src/license_expression/__init__.py#L873 It has been changed in ac80a21 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.

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