Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorized Packages don't bypass unauthorized licenses #4

Closed
whisust opened this issue Oct 26, 2017 · 0 comments
Closed

Authorized Packages don't bypass unauthorized licenses #4

whisust opened this issue Oct 26, 2017 · 0 comments

Comments

@whisust
Copy link
Contributor

whisust commented Oct 26, 2017

With the following requirements.txt

wand
yoyo-migrations

and licence_strategy.ini

# Authorized and unauthorized licenses in lower case
[Licenses]
authorized_licenses:
        BSD
        new BSD
        BSD license
        new BDS license
        simplified BSD
        Apache
        Apache 2.0
        Apache software license
        gnu LGPL
        LGPL with exceptions or zpl
        ISC license
        ISC license (ISCL)
        MIT
        MIT license
        python software foundation license
        zpl 2.1

unauthorized_licenses:
        GPL v3
        GPL
        GNU General Public License v2 or later (GPLv2+)


[Authorized Packages]
# Python software license (see http://zesty.ca/python/uuid.README.txt)
uuid: 1.30
Unidecode: 0.4.20

I get the following result :

gathering licenses...
6 packages and dependencies.

check forbidden packages based on licenses...
1 forbidden packages :

    Unidecode (0.4.20) : GPL ['GNU General Public License v2 or later (GPLv2+)']

      dependencies:

          Unidecode << python-slugify << yoyo-migrations



check authorized packages based on licenses...
4 packages.

check authorized packages...
1 packages.

check unknown licenses...
none

Unidecode should not be matched in the forbidden packages and the execution should succeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant