python-license-check icon indicating copy to clipboard operation
python-license-check copied to clipboard

Support globs for license matches

Open a-recknagel opened this issue 3 years ago • 0 comments

Let's say you have a project which uses fluent-logger, stevedore, and typed-ast. These three all have an apache license, but running liccheck against them looks like this:

    fluent-logger (0.9.6): ['Apache License, Version 2.0']
      dependency:
          fluent-logger
    stevedore (2.0.1): ['Apache Software']
      dependency:
          stevedore 
    typed-ast (1.4.1): ['Apache License 2.0']
      dependency:
          typed-ast

which means that instead of this

authorized_licenses:
        apache 

I have to do this

authorized_licenses:
        apache license, version 2.0
        apache software
        apache license 2.0

I think it would be nice to support globs, in order to match all three with something similar to the intuitive one while still keeping readability high

authorized_licenses:
        apache*

a-recknagel avatar Jul 15 '20 18:07 a-recknagel