Skip to content

MLE-34256 update SBOM distribution - #153

Merged
RitaChen609 merged 2 commits into
developfrom
MLE-34256-Update-SBOM-Distribution
Nov 17, 2026
Merged

RitaChen609 merged 2 commits into
developfrom
MLE-34256-Update-SBOM-Distribution

Conversation

@RitaChen609

Copy link
Copy Markdown

Include the sbom.spdx.json to the source and wheel distributions. Run python build_distributions.py to create the wheel, source distribution, and standalone SPDX SBOM in dist/, for example:

dist/
├── marklogic_python_client-1.3.1.tar.gz
├── marklogic_python_client-1.3.1-py3-none-any.whl
└── marklogic_python_client-1.3.1.spdx.json

Copilot AI balanced review requested due to automatic review settings November 16, 2026 20:06
@RitaChen609 RitaChen609 changed the title Mle 34256 update SBOM distribution MLE-34256 update SBOM distribution Nov 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The SBOM incorrectly lists pytest as a dynamically linked runtime dependency despite its test-only declaration, causing inaccurate runtime dependency analysis.

1 open issue
What changed in this PR

This PR updates the MarkLogic Python Client release packaging to include an SPDX software bill of materials (SBOM) in source and wheel distributions and provide a standalone copy.

Changes:

  • Adds the SBOM and configures Poetry to include it in both distribution formats.
  • Adds a build script that creates distributions and a versioned standalone SBOM.
  • Documents the build command and custom output directory option.
File Description
sbom.spdx.json Adds package, license, and dependency relationship data.
pyproject.toml Includes the SBOM in source and wheel distributions.
CONTRIBUTING.md Documents building distributions and selecting an output directory.
build_distributions.py Runs Poetry builds and copies the SBOM with a versioned filename.

Review effort: Balanced

Comment thread sbom.spdx.json
Comment on lines +2169 to +2171
"spdxElementId": "SPDXRef-package-e2a17edf-232d-4404-a070-9ddf242d54ff---c3d8e723-3424-4c64-b546-9d32ae5d79d0",
"relationshipType": "DYNAMIC_LINK",
"relatedSpdxElement": "SPDXRef-package-c3d8e723-3424-4c64-b546-9d32ae5d79d0---95e39c89-b9c9-44a2-8292-7f0f0e009f54"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sbom.spdx.json is a placeholder.

@RitaChen609
RitaChen609 merged commit 64c97a2 into develop Nov 17, 2026
5 of 6 checks passed
@RitaChen609
RitaChen609 deleted the MLE-34256-Update-SBOM-Distribution branch November 17, 2026 15:18
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

Successfully merging this pull request may close these issues.

4 participants