Skip to content

Commit

Permalink
Add SPDXPackageSupplier enum
Browse files Browse the repository at this point in the history
  • Loading branch information
leocardao committed Nov 13, 2023
1 parent 8016bdb commit e572aea
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/e3/spdx.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@
class InvalidSPDX(Exception):
"""Raise an exception when the SPDX document cannot be generated."""

pass


class SPDXPackageSupplier(Enum):
"""Used by the SPDX originator field.
This field is composed of a package supplier type (organization, person, tool)
and a name.
This enum represents the package suppplier type.
"""

ORGANIZATION = "Organization"
PERSON = "Person"
TOOL = "Tool"


class SPDXEntry(metaclass=ABCMeta):
"""Describe a SPDX Entry."""
Expand Down

0 comments on commit e572aea

Please sign in to comment.