raimon49 / pip-licenses

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

feat: adding `--no-version` option #158

Closed dennybiasiolli closed 1 year ago

dennybiasiolli commented 1 year ago

to avoid exporting the version number of packages.

I.E. for security reasons you want to export licenses without the specific version number.

raimon49 commented 1 year ago

I thought the version number was essential from a software linesense audit perspective.

I.E. for security reasons you want to export licenses without the specific version number.

Your opinion made me think that indeed there is a demand for this kind of thing.

Thanks for the PR. The implementation and test code look fine. I will merge it later.

codecov[bot] commented 1 year ago

Codecov Report

Merging #158 (5b655ac) into master (9dec2d8) will decrease coverage by 0.23%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #158      +/-   ##
==========================================
- Coverage   99.29%   99.06%   -0.23%     
==========================================
  Files           1        1              
  Lines         427      430       +3     
==========================================
+ Hits          424      426       +2     
- Misses          3        4       +1     
Impacted Files Coverage Δ
piplicenses.py 99.06% <100.00%> (-0.23%) :arrow_down:

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

@dennybiasiolli We have published a merged version of your contribution to PyPI. https://pypi.org/project/pip-licenses/4.3.0/

Thanks!