Skip to content

Commit

Permalink
Merge pull request #136 from raimon49/fix-output-with-system-in-v4
Browse files Browse the repository at this point in the history
Use raw distributions from importlib_metadata
  • Loading branch information
raimon49 authored Nov 19, 2022
2 parents d0e07f6 + 5cf467b commit 6c49185
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
if: ${{ matrix.python-version==3.8 }}
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
file: ./coverage.xml
name: codecov-umbrella
fail_ci_if_error: true
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## CHANGELOG

### 4.0.1

* Fix "pip-licenses" is missing in output of `pip-licenses --with-system` option

### 4.0.0

* Support for Python 3.11
Expand Down
7 changes: 2 additions & 5 deletions piplicenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
open = open # allow monkey patching

__pkgname__ = 'pip-licenses'
__version__ = '4.0.0'
__version__ = '4.0.1'
__author__ = 'raimon'
__license__ = 'MIT'
__summary__ = ('Dump the software license list of '
Expand Down Expand Up @@ -184,10 +184,7 @@ def get_pkg_info(pkg):

return pkg_info

pkgs = filter(
lambda pkg: pkg.metadata["name"] != "pip-licenses",
importlib_metadata.distributions()
)
pkgs = importlib_metadata.distributions()
ignore_pkgs_as_lower = [pkg.lower() for pkg in args.ignore_packages]
pkgs_as_lower = [pkg.lower() for pkg in args.packages]

Expand Down

0 comments on commit 6c49185

Please sign in to comment.