Skip to content

Prepare the package for PyPI (0.3.1) - #9

Merged
yoch merged 1 commit into
mainfrom
ccr-e9d4cfba-t6i5xz
Oct 6, 2026
Merged

yoch merged 1 commit into
mainfrom
ccr-e9d4cfba-t6i5xz

Conversation

@yoch

@yoch yoch commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Summary

This makes cursor-cloud-mcp publishable on PyPI and installable without a clone.

  • License: MIT (LICENSE), declared with PEP 639 metadata (license = "MIT", license-files).
  • Metadata: author, keywords, classifiers, and project URLs.
  • Dependencies: version ranges instead of exact pins, so the package can be installed next to other packages:
    • httpx>=0.28.1,<0.29
    • mcp>=2.3.0,<3
    • uv.lock still pins the exact versions used in CI.
  • Single version source: hatch reads __version__, which is bumped to 0.3.1 and includes the fix from Treat an SSE error event as an incomplete replay walk #8.
  • sdist contents: only the sources, tests, README, LICENSE and lockfile. No scripts/ and no .github/.
  • Docs:
    • README.md and AGENT_GUIDE.md now install with uvx cursor-cloud-mcp or uv tool install cursor-cloud-mcp.
    • The repository checkout becomes the development path.
    • Links are absolute, because relative links break on the PyPI page.
  • Examples: all three start the server with uvx cursor-cloud-mcp. The Codex startup timeout goes from 10 s to 30 s, to cover the first download.
  • .github/workflows/release.yml: runs on a vX.Y.Z tag. It does the following, in order:
    1. checks that the tag matches __version__;
    2. runs ruff and pytest;
    3. builds the sdist and wheel, and smoke-tests the installed wheel;
    4. publishes through Trusted Publishing (OIDC, no stored token) in the pypi environment.

One-time setup (outside the repo)

  1. On pypi.org, add a pending publisher with these settings:
    • project cursor-cloud-mcp;
    • owner yoch, repository cursor-cloud-mcp;
    • workflow release.yml;
    • environment pypi.
  2. On GitHub, create the pypi environment. Requiring a reviewer is optional.
  3. After merging, push the tag v0.3.1.

Validation

  • Lint and tests: ruff check src tests scripts passes, and pytest passes all 125 tests.
  • Package checks:
    • uv build, then twine check on both distributions: PASSED;
    • the wheel's METADATA shows License-Expression: MIT, the URLs, and the version ranges;
    • LICENSE is in both the wheel and the sdist.
  • Install checks:
    • the wheel, installed in a clean venv, passes scripts/wheel_smoke.py (17 tools, cursor_get_account responds);
    • uvx --from dist/…whl installs the package and the cursor-cloud-mcp command.
  • Release workflow: the YAML parses, and its tag check yields v0.3.1. The workflow itself only runs on the first tag.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEZSiBG4UoNrAh3mC9CUmP


Generated by Claude Code

- MIT license, PEP 639 metadata (license expression and file), author,
  keywords, classifiers and project URLs.
- Dependency ranges instead of exact pins (httpx>=0.28.1,<0.29,
  mcp>=2.3.0,<3), so the package installs next to others; uv.lock keeps
  CI reproducible.
- Single version source: hatch reads __version__, now 0.3.1.
- The sdist ships only the sources, tests, README, LICENSE and lockfile.
- README and AGENT_GUIDE: install with uvx or uv tool install; the clone
  becomes the development path; absolute links for the PyPI page.
- Examples start the server with `uvx cursor-cloud-mcp`; Codex startup
  timeout raised to 30 s for the first download.
- release.yml: on a vX.Y.Z tag matching __version__, check, test, build,
  smoke the wheel, then publish through Trusted Publishing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEZSiBG4UoNrAh3mC9CUmP
@yoch
yoch marked this pull request as ready for review October 6, 2026 14:50
@yoch
yoch merged commit a1b016a into main Oct 6, 2026
2 checks passed
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.

2 participants