open-contracting / software-development-handbook

A guide for developers of OCP's tools
https://ocp-software-handbook.readthedocs.io/en/latest/
Other
4 stars 1 forks source link

Licensing compliance #64

Closed jpmckinney closed 2 years ago

jpmckinney commented 2 years ago

https://pypi.org/project/pip-licenses/

Install in all virtual environments:

for env in (pyenv virtualenvs --skip-aliases --bare);
  pyenv activate $env; pip install pip-licenses
end

Check for a strong copyleft, ignoring false positives (like LPGL, which is weak copyleft) and dual-licensed packages:

for env in (pyenv virtualenvs --skip-aliases --bare);
  pyenv activate $env; echo $env; pip-licenses | grep -E 'GPL|GNU' | grep -v -E 'LGPL|BSD|Artistic License'; echo;
end

Current strong copyleft packages are:

jpmckinney commented 2 years ago

Some packages don't have useful metadata:

I've created issues for them. Some other packages have fixed their metadata in recent versions; I upgrade those.

jpmckinney commented 2 years ago

Added guidance to e80e568 and addressed all cases.

logparser isn't yet used by kingfisher-collect, but we can make it an optional dependency.