src/eric7/PipInterface/piplicenses.py

branch
eric7
changeset 10352
37d8616b44ca
parent 10331
c1a2ff7e3575
child 10439
21c28b0f9e41
equal deleted inserted replaced
10351:1f9bafeff96c 10352:37d8616b44ca
64 from email.message import Message 64 from email.message import Message
65 from typing import Callable, Dict, Iterator, Optional, Sequence 65 from typing import Callable, Dict, Iterator, Optional, Sequence
66 66
67 67
68 __pkgname__ = "pip-licenses" 68 __pkgname__ = "pip-licenses"
69 __version__ = "4.3.2" 69 __version__ = "4.3.3"
70 __author__ = "raimon" 70 __author__ = "raimon"
71 __license__ = "MIT" 71 __license__ = "MIT"
72 __summary__ = ( 72 __summary__ = (
73 "Dump the software license list of Python packages installed with pip." 73 "Dump the software license list of Python packages installed with pip."
74 ) 74 )
330 license_names, fail_on_licenses 330 license_names, fail_on_licenses
331 ) 331 )
332 if failed_licenses: 332 if failed_licenses:
333 sys.stderr.write( 333 sys.stderr.write(
334 "fail-on license {} was found for package " 334 "fail-on license {} was found for package "
335 "{}:{}".format( 335 "{}:{}\n".format(
336 "; ".join(sorted(failed_licenses)), 336 "; ".join(sorted(failed_licenses)),
337 pkg_info["name"], 337 pkg_info["name"],
338 pkg_info["version"], 338 pkg_info["version"],
339 ) 339 )
340 ) 340 )
345 license_names, allow_only_licenses 345 license_names, allow_only_licenses
346 ) 346 )
347 if len(uncommon_licenses) == len(license_names): 347 if len(uncommon_licenses) == len(license_names):
348 sys.stderr.write( 348 sys.stderr.write(
349 "license {} not in allow-only licenses was found" 349 "license {} not in allow-only licenses was found"
350 " for package {}:{}".format( 350 " for package {}:{}\n".format(
351 "; ".join(sorted(uncommon_licenses)), 351 "; ".join(sorted(uncommon_licenses)),
352 pkg_info["name"], 352 pkg_info["name"],
353 pkg_info["version"], 353 pkg_info["version"],
354 ) 354 )
355 ) 355 )

eric ide

mercurial