From 4ead07b7ba2d8677ecebd705cca73bda4622022c Mon Sep 17 00:00:00 2001 From: its-sushant Date: Thu, 19 Feb 2026 13:34:45 +0530 Subject: [PATCH] feat: add support for spdx3 report Signed-off-by: its-sushant --- README.rst | 3 ++- fossology/enums.py | 6 ++++++ fossology/foss_cli.py | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 98a5029..54d2eaf 100644 --- a/README.rst +++ b/README.rst @@ -170,7 +170,8 @@ Fossology Python also offers a command line interface to simplify interactions w Reuse newest scheduled job for the upload if available. --report_format TEXT The name of the reportformat. [dep5, - spdx2,spdxtv,readmeoss,unifiedreport] + spdx2,spdxtv,readmeoss,unifiedreport, + clixml,spdx3json,spdx3rdf,spdx3jsonld] --access_level TEXT The access level of the upload.[private,protected,public] --help Show this message and exit. diff --git a/fossology/enums.py b/fossology/enums.py index 3658984..09bbf52 100644 --- a/fossology/enums.py +++ b/fossology/enums.py @@ -27,6 +27,9 @@ class ReportFormat(Enum): READMEOSS UNIFIEDREPORT CLIXML + SPDX3JSON + SPDX3RDF + SPDX3JSONLD """ @@ -36,6 +39,9 @@ class ReportFormat(Enum): READMEOSS = "readmeoss" UNIFIEDREPORT = "unifiedreport" CLIXML = "clixml" + SPDX3JSON = "spdx3json" + SPDX3RDF = "spdx3rdf" + SPDX3JSONLD = "spdx3jsonld" class SearchTypes(Enum): diff --git a/fossology/foss_cli.py b/fossology/foss_cli.py index 510fc2d..66334bf 100644 --- a/fossology/foss_cli.py +++ b/fossology/foss_cli.py @@ -687,7 +687,7 @@ def delete_upload( "--report_format", default="unifiedreport", show_default=True, - help="The name of the reportformat (dep5, spdx2, spdxtv, readmeoss, unifiedreport)", + help="The name of the reportformat (dep5, spdx2, spdxtv, readmeoss, unifiedreport, clixml, spdx3json, spdx3rdf, spdx3jsonld)", ) @click.option( "--access_level",