Repository navigation
MLE-34256 update SBOM distribution - #153
Merged
Merged
Conversation
RitaChen609
requested review from
jonmille,
ngodugu-marklogic,
rjdew-progress and
rjrudin
as code owners
November 16, 2026 20:06
There was a problem hiding this comment.
🟡 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 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" |
Author
There was a problem hiding this comment.
This sbom.spdx.json is a placeholder.
jonmille
approved these changes
Nov 16, 2026
rjdew-progress
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Include the sbom.spdx.json to the source and wheel distributions. Run
python build_distributions.pyto 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