Skip to content
Snippets Groups Projects

Added support for multiple licenses

Merged Chaitanya requested to merge cmatrix/swh-indexer:npm_license into master

NPM allows for multiple licenses in the form of SPDX expressions. For example, "(ISC OR GPL-3.0)".

Currently, the NpmMapping().normalize_license method does not cover such cases. I have added support for this, and it returns a list of licenses if there are multiple licenses.

It passes the tests (Ran the tests using Pytest). However, the current tests do not cover multiple licenses.

Closes #4480 (closed)

Edited by vlorentz

Merge request reports

Merged by vlorentzvlorentz 1 year ago (Jan 16, 2024 2:09pm UTC)

Loading

Pipeline #6541 passed

Pipeline passed for 27e545fd on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading