pilosus / pip-license-checker

Check license types for third-party dependencies: permissive, copyleft, proprietory, etc.
https://blog.pilosus.org/posts/2021/09/07/pip-license-checker/
Other
67 stars 3 forks source link

Show license for yanked Python packages for exact version matches #125

Closed pilosus closed 1 year ago

pilosus commented 1 year ago

It's correct to ignore yanked Python packages when there's no version specified expression or we use <, '>' or their variations with =. But in case of exact matching, we need to show the license, e.g.

grpcio==1.48.0

should show the license, rather than PyPI::version Not found. We can also save time on fetching versions from PyPI Simple API for exact matching: no need to do two requests, as a request for JSON API will do.