Repository navigation
chore: declare the Apache-2.0 license - #77
Merged
Merged
Conversation
There was a problem hiding this comment.
No issues found across 47 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant Dev as Developer
participant Repo as Git Repository
participant Hook as Pre-commit Hook
participant Hatch as Hatchling Build
participant PyPI as PyPI Registry
Note over Dev,PyPI: License Declaration Flow
Dev->>Repo: Commit Python source files
Repo->>Hook: Trigger pre-commit (add-license-header)
Hook->>Repo: Read .license-header template
Hook->>Repo: Scan Python files for SPDX line
alt Missing SPDX Identifier
Hook->>Repo: Insert SPDX-License-Identifier: Apache-2.0
Hook-->>Dev: Apply license header
else Already present
Hook-->>Dev: Skip file
end
Hook-->>Repo: Commit passes
Note over Dev,Hatch: Packaging Flow
Dev->>Hatch: Run build (sdist/wheel)
Hatch->>Repo: Read pyproject.toml
Hatch->>Repo: Extract license = "Apache-2.0"
Hatch->>Repo: Locate LICENSE file via license-files
Hatch->>Hatch: Generate METADATA with License-Expression
Hatch-->>Dev: Produce wheel + sdist
Note over Dev,PyPI: Distribution Flow
Dev->>PyPI: Publish package
PyPI->>PyPI: Store package with license metadata
PyPI-->>Consumer: Expose license info
Note over Consumer: Package consumer queries PyPI
Consumer->>PyPI: Check package metadata
PyPI-->>Consumer: License-Expression: Apache-2.0
wgrant
approved these changes
Nov 6, 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.
ENG-9384
what
Declare stacklet-mcp as Apache-2.0:
LICENSEfile with the Apache 2.0 text.licenseandlicense-filesinpyproject.toml, so the wheeland sdist carry
License-Expression: Apache-2.0and theLICENSEfile.
SPDX-License-Identifier: Apache-2.0to the header templateand apply it to every Python file through the
add-license-headerhook.
license-header.tplto.license-headerto keep it out of the repository root listing.
why
The repository had no license. We published to PyPI with copyright
headers only, so a consumer had no statement of the terms. The SPDX
line gives scanners a per-file identifier that they can read.
testing
N/A
docs
No docs needed.
🤖 Generated with Claude Code