Skip to content

Commit 95ea661

Browse files
committed
docs
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 571d0dd commit 95ea661

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cyclonedx_py/_internal/utils/packaging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def metadata2licenses(metadata: 'PackageMetadata', lfac: 'LicenseFactory',
4040
if (lexp := metadata.get('License-Expression')) is not None:
4141
# see https://packaging.python.org/en/latest/specifications/license-expression/
4242
# see spec: https://peps.python.org/pep-0639/#add-license-expression-field
43+
# use `make_from_string` to have simple SPDX expressions that are just one disjunctive license be simplified in the process
4344
yield lfac.make_from_string(lexp,
4445
license_acknowledgement=lack)
4546
# Per PEP 639: if License-Expression exists, the deprecated declarations MUST be ignored

0 commit comments

Comments
 (0)