Skip to content

Deprecated SPDX licenses are marked as unknown #83

Open

Description

@meretp

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.

Activity

  1. added a commit that references this issue on Nov 22, 2023
  2. stefan6419846 commented on Jul 4, 2024

    @stefan6419846

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions