Skip to content

Commit c2d0830

Browse files
authored
Update pep621.py
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 06a22c7 commit c2d0830

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cyclonedx_py/_internal/utils/pep621.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ def project2licenses(project: dict[str, Any], lfac: 'LicenseFactory', *,
6666
# https://packaging.python.org/en/latest/specifications/core-metadata/#license
6767
if 'file' in plicense and 'text' in plicense:
6868
# per spec:
69-
# > If both a file and text are provided, tools MUST raise an error.
70-
# > Tools MUST NOT assume that the file and text are the same.
69+
# > These keys are mutually exclusive, so a tool MUST raise an error if the metadata specifies both keys.
7170
raise ValueError('`license.file` and `license.text` are mutually exclusive,')
7271
if 'file' in plicense:
7372
# per spec:

0 commit comments

Comments
 (0)