raimon49 / pip-licenses

Dump the license list of packages installed with pip.
MIT License
298 stars 42 forks source link

[BUG] Unable to check licences of archived github packages #189

Closed ryan-cpi closed 4 months ago

ryan-cpi commented 4 months ago

As the title says the pip-licenses checker reports back a licence of UNKNOWN for archived packages. For example, these show up as unknown for us when its clearly marked as MIT

stefan6419846 commented 4 months ago

pip-licenses only considers the package metadata as provided by the maintainer, which just does not have a license in neither https://github.com/markfinger/optional-django/blob/master/setup.py nor https://github.com/markfinger/python-npm/blob/master/setup.py If you want to determine the license from hints like the LICENSE file (as GitHub does), you will have to use a fully-fledged license scanner pip-licenses is NOT.