diff options
| author | mo khan <mo.khan@gmail.com> | 2020-05-25 11:01:03 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-05-26 19:33:44 -0600 |
| commit | 80fa34dd2bd72af88efcb85844302d04450a0e1e (patch) | |
| tree | 2a5ba8dfc9bdb61c58633373be122ae2f83df1e7 /lib/license/management/python.rb | |
| parent | bff873a938de126d2b79e799df325f3d5c31295b (diff) | |
Scan Conan projects
* Scan the conan examples project
* Split licenses by comma
* Add integration test job for c projects
* Add package_manager, version and path to v2.1 report
* Detect collisions between names from different package managers
* Add CHANGELOG entry
* Update README to indicate Conan support
* Print timestamps in install script
Diffstat (limited to 'lib/license/management/python.rb')
| -rw-r--r-- | lib/license/management/python.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/license/management/python.rb b/lib/license/management/python.rb index b8932f9..ccf53e9 100644 --- a/lib/license/management/python.rb +++ b/lib/license/management/python.rb @@ -24,7 +24,7 @@ module License ENV.fetch('PIP_INDEX_URL', 'https://pypi.org/simple/') end - def pip_licenses(venv: '.venv') + def pip_licenses(venv: '.venv', detection_path:) _stdout, _stderr, status = shell.sh([ ". #{venv}/bin/activate &&", :pip, :install, @@ -41,10 +41,12 @@ module License return [] unless status.success? JSON.parse(IO.read('pip-licenses.json')).map do |dependency| - ::LicenseFinder::Package.new( + ::LicenseFinder::Dependency.new( + 'Pip', dependency['Name'], dependency['Version'], description: dependency['Description'], + detection_path: detection_path, homepage: dependency['URL'], spec_licenses: [dependency['License']] ) |
