Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPDX version does not match the description #687

Open
grouigrokon opened this issue Mar 8, 2024 · 0 comments
Open

SPDX version does not match the description #687

grouigrokon opened this issue Mar 8, 2024 · 0 comments

Comments

@grouigrokon
Copy link
Contributor

In spdx.py line 3, the comment says:

"""Generate an SPDX file.

This is following the specification from https://spdx.github.io/spdx-spec/v2.3/
a simple example can be found at ./tests/tests_e3/spdx_test.py
"""

While the DocumentInformation class says it uses SPDX version 1.2:

@dataclass
class DocumentInformation(SPDXSection):
    """Describe the SPDX Document."""

    document_name: DocumentName
    document_namespace: DocumentNamespace = field(init=False)
    version: SPDXVersion = SPDXVersion("SPDX-1.2")

See https://spdx.github.io/spdx-spec/v2.3/document-creation-information/#61-spdx-version-field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant