raimon49 / pip-licenses

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

Use raw distributions from importlib_metadata #136

Closed raimon49 closed 1 year ago

raimon49 commented 1 year ago

This PR resolves #135

raimon49 commented 1 year ago

Currently, testing in Python 3.8 is failing. I will address this issue at a later date.

[2022-11-14T13:11:52.162Z] ['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}

Related Links:

codecov[bot] commented 1 year ago

Codecov Report

Merging #136 (5cf467b) into master (d0e07f6) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #136   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines          371       371           
=========================================
  Hits           371       371           
Impacted Files Coverage Δ
piplicenses.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

raimon49 commented 1 year ago

OK, I see that the token was used and the job was successful.

failure log

  Codecov report uploader 0.3.2
[2022-11-14T13:13:47.319Z] ['info'] => Project root located at: /home/runner/work/pip-licenses/pip-licenses
[2022-11-14T13:13:47.321Z] ['info'] -> No token specified or token is empty
[2022-11-14T13:13:47.411Z] ['info'] Searching for coverage files...
[2022-11-14T13:13:47.473Z] ['info'] => Found 1 possible coverage files:
  ./coverage.xml
[2022-11-14T13:13:47.473Z] ['info'] Processing ./coverage.xml...
[2022-11-14T13:13:47.476Z] ['info'] Detected GitHub Actions as the CI provider.
[2022-11-14T13:13:47.477Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.1-uploader-0.3.2&token=*******&branch=fix-output-with-system-in-v4&build=3461764854&build_url=https%3A%2F%2Fgithub.com%2Fraimon49%2Fpip-licenses%2Factions%2Fruns%2F3461764854&commit=7631f76d66ccc84218c74ed5dd381190c820dd19&job=Python+package&pr=136&service=github-actions&slug=raimon49%2Fpip-licenses&name=codecov-umbrella&tag=&flags=&parent=
[2022-11-14T13:13:48.721Z] ['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 404 - {'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}

success log

  Codecov report uploader 0.3.2
[2022-11-19T09:05:24.443Z] ['info'] => Project root located at: /home/runner/work/pip-licenses/pip-licenses
[2022-11-19T09:05:24.444Z] ['info'] ->  Token found by environment variables
[2022-11-19T09:05:24.537Z] ['info'] Searching for coverage files...
[2022-11-19T09:05:24.591Z] ['info'] => Found 1 possible coverage files:
  ./coverage.xml
[2022-11-19T09:05:24.591Z] ['info'] Processing ./coverage.xml...
[2022-11-19T09:05:24.595Z] ['info'] Using manual override from args.
[2022-11-19T09:05:24.596Z] ['info'] Detected GitHub Actions as the CI provider.
[2022-11-19T09:05:24.597Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.1-uploader-0.3.2&token=*******&branch=fix-output-with-system-in-v4&build=3502871440&build_url=https%3A%2F%2Fgithub.com%2Fraimon49%2Fpip-licenses%2Factions%2Fruns%2F3502871440&commit=5cf467b52a84b5703d04bd09ff0badb2146fc797&job=Python+package&pr=136&service=github-actions&slug=raimon49%2Fpip-licenses&name=codecov-umbrella&tag=&flags=&parent=
[2022-11-19T09:05:25.085Z] ['info'] https://app.codecov.io/github/raimon49/pip-licenses/commit/5cf467b52a84b5703d04bd09ff0badb2146fc797
https://storage.googleapis.com/codecov/v4/raw/2022-11-19/E13974577919ABF094EC6B6E5BF61C93/5cf467b52a84b5703d04bd09ff0badb2146fc797/77dd22e1-1e5f-4d2a-9d05-df84926751a4.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20221119%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20221119T090525Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=f72baacd21161e70a52aa620aafd85f5a6ec549333e0c06791b5ab5e8691d227
[2022-11-19T09:05:25.086Z] ['info'] Uploading...
[2022-11-19T09:05:25.298Z] ['info'] {"status":"success","resultURL":"https://app.codecov.io/github/raimon49/pip-licenses/commit/5cf467b52a84b5703d04bd09ff0badb2146fc797"}