domcleal / spdx-licenses

SPDX license and identifier lookup
MIT License
14 stars 12 forks source link

Multiple/combined licence parsing support #1

Open domcleal opened 9 years ago

domcleal commented 9 years ago

2.0 is in the works, which changes how "+" (or later) licenses are expressed.

http://wiki.spdx.org/view/Legal_Team/Decisions/license_expression_syntax has some information.

It might mean this library has to parse the licence text a little (it probably should already, to support and/or) and validate "GPL-3.0+" as being the "GPL-3.0" licence.

domcleal commented 9 years ago

Maybe I'll change the API to something more supportive of multiple licences, switching "exist" to "valid":

Then perhaps deprecate the single value return value from .lookup for a future version? It would also be nice to be able to parse the and/or in a meaningful way.

tuxinaut commented 9 years ago

:+1:

balupton commented 8 years ago

@domcleal I wouldn't care about updating lookup to support multiple licenses, but rather that doing the valid proposal

Our use case is over at https://github.com/bevry/staticsitegenerators-list/issues/221