Giter Club home page Giter Club logo

Comments (4)

ochedru avatar ochedru commented on July 21, 2024

For some reason, the license is not present in PyQt5-sip package metadata.
Fixed by #22.
With the fix, your testcase results in:

gathering licenses...
2 packages and dependencies.
check unauthorized packages...
1 package.
    PyQt5 (5.11.3): ['GPL v3']
      dependency:
          PyQt5
check unknown packages...
1 package.
    PyQt5-sip (4.19.13): UNKNOWN
      dependency:
          PyQt5-sip << PyQt5

from python-license-check.

twartzek avatar twartzek commented on July 21, 2024

Thanks for the fast response. This fixes indeed the Attribute error. However, I still do not understand your approach with approved packages.

If I write in the ini file

[Authorized Packages]
PyQt5: 5.11.3
PyQt5-sip: 4.19.13

it still gives me the output (shouldn't it be all ok?):

gathering licenses...
2 packages and dependencies.
check unauthorized packages...
1 package.
PyQt5 (5.11.3): ['GPL v3']
dependency:
PyQt5
check unknown packages...
1 package.
PyQt5-sip (4.19.13): UNKNOWN
dependency:
PyQt5-sip << PyQt5

I would like to use your tool as a test step in CI pipeline.

from python-license-check.

ochedru avatar ochedru commented on July 21, 2024

Explicitly authorized packages are always accepted, whatever the level (standard, cautious, paranoid).
There is a bug in the check, however, because config values from the strategy file are converted to lowercase, whereas the accepted package check is case sensitive. I am going to fix that.

from python-license-check.

ochedru avatar ochedru commented on July 21, 2024

Fixed by #23 in version 0.3.7

from python-license-check.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.