nexB/license-expression

Accept plain strings list as Licensing "symbols"

pombredanne opened this issue · 1 comments

The latest code in #6 changes the API and drops the ugly "LicenseRef" object in favor of plain license symbols objects. We should also accept a lists of plain strings for license keys and be smart in this case to avoid raising exceptions for "with" expression since this plain list of strings could only be transformed in plain LicenseSymbol and could not know which ones could be ExceptionSymbol . This would help deal more simply with the simple cases when you just have a list of license ids and only need proper parsing and may not want full validation.

This is fixed now in master. Licensing accepts either:

  • a list of LicenseSymbol
  • a list of strings
  • a list of LicenseSymbol-like objects