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 ) |
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 ) |