refactor(python): rename to keeperhub-mcp and align packaging with npm#6
Merged
Conversation
…lient. Aligns keeperhub-mcp-client packaging with npm 0.1.1 follow-ups while keeping version at 0.1.0. Co-authored-by: Cursor <cursoragent@cursor.com>
PyPI name and import module are now keeperhub-mcp / keeperhub_mcp, aligned with the npm scoped package naming. Co-authored-by: Cursor <cursoragent@cursor.com>
…flow The previous packaging used a parent-path force-include (../LICENSE) plus an sdist include override. That override replaced Hatch's default file selection, so the sdist shipped no package source, and ../LICENSE could not be resolved when building the wheel from the unpacked sdist -- python -m build (the release workflow's build step) failed outright. - Add python/LICENSE (Apache-2.0) inside the package project root. - Declare it via PEP 639 license-files; drop the broken force-include/sdist include blocks. LICENSE now lands in dist-info/licenses and both sdist and wheel build cleanly. - Gate the publish job on a py-v* tag ref so a manual workflow_dispatch cannot publish, and verify the tag matches the pyproject version before building.
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.
Summary
keeperhub-mcp-clienttokeeperhub-mcpand import module fromkeeperhub_mcp_clienttokeeperhub_mcp, mirroring the npm package@keeperhub/mcp.py.typedmarker for PEP 561 typed-package support.LICENSEinto wheel and sdist via Hatchforce-include/include.@keeperhub/mcp: at most one re-init on persistent 401 or session-related 404, then raise.Breaking change
Integrators must update imports:
PyPI install becomes
pip install keeperhub-mcp.Test plan
python -m pytest tests/ -q(6 passed)LICENSEandkeeperhub_mcp/py.typedPyPI note
If
keeperhub-mcp-clientwas never published, register the pending publisher forkeeperhub-mcpon PyPI before the firstpy-v*tag.