ci: publish relayfile-sdk Python SDK to PyPI#337
Conversation
Adapt relaycast's publish-python.yml for the relayfile Python SDK: - workflow at packages/sdk/python with version-bump dispatch + dry run - uv build/test, twine check, PyPI trusted publishing, tag + release - rename package to relayfile-sdk (import namespace stays `relayfile`) - add committed uv.lock and README install section Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 53 minutes and 12 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request renames the Python SDK package from relayfile to relayfile-sdk in pyproject.toml, updates the README.md with installation instructions for the renamed package, and adds a uv.lock file to lock project dependencies. There are no review comments, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Relayfile Eval ReviewRun: Passed: 4 | Needs human: 0 | Reviewable: 0 | Missing output: 0 | Failed: 0 | Skipped: 0 Human Review CasesNo reviewable human-review cases captured Relayfile output. |
PR Review: #1198 —
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 101a28b1d8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - name: Publish to PyPI | ||
| if: github.ref == 'refs/heads/main' && github.event.inputs.dry_run != 'true' | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| packages-dir: packages/sdk/python/dist |
There was a problem hiding this comment.
Tag the release before uploading to PyPI
In the main non-dry-run path, this upload runs before the Commit and tag step below. If the subsequent git push, tag push, or release creation fails, the PyPI version has already been published; PyPI release files are not reusable, so rerunning the workflow with the same version will fail before it can create the missing commit/tag. Please commit/tag the version bump before the upload, or publish from a tag-triggered workflow.
Useful? React with 👍 / 👎.
PR Review: Generalize integration auth fallback for local broker workflowsSummary of changesThe PR makes Touched areas:
Verification (run against current checkout)
Impact tracing (beyond changed files)
Addressed comments
No bot/reviewer comment files were provided in Advisory Notes
Auto-applied fixesNone. The PR is mechanically clean (Prettier-formatted, imports ordered, no typos). All logic is behavior-affecting, so per policy I left it unchanged and only verified. StatusThe PR typechecks and its tests pass in this checkout. I could not run the Rust broker build (no cargo in sandbox) or confirm CI check status / mergeability — those are outside what I can verify here. Because required checks (full CI incl. Rust build) are not confirmed-complete-and-green from my side, I am not declaring it human-ready. |
|
ℹ️ pr-reviewer: review only — no file changes were applied to the PR (nothing to commit after review). The notes below are advisory and were not pushed. Review Summary — PR #337 (ci/publish-python-sdk)This PR adds a Scope is clean and self-contained. No application/runtime code is touched — no lifecycle, broker, dispatch, or digest paths are involved. The import namespace ( Verification (ran the workflow's exact sequence locally)
Cleaned up all generated artifacts ( No files were edited. No mechanical fixes were needed (YAML, lockfile, and metadata are all clean). Addressed comments
Advisory NotesThese are out of scope for this PR (they touch unrelated files or are operational), so I left the code unchanged:
The PR's only CI exposure on a pull request is YAML validity (the existing |
Adapts relaycast's
publish-python.ymlfor the relayfile Python SDK so we can shiprelayfile-sdkto PyPI the same way.What
.github/workflows/publish-python.yml—workflow_dispatchwith version-bump choice (patch/minor/major/pre*), optionalcustom_version, anddry_run.uv, runstwine check, publishes via PyPI trusted publishing (id-token), then commits the bump, tagssdk-python-v<version>, and cuts a GitHub Release.relayfile-sdk(import namespace staysrelayfile).uv.lock(the workflow runsuv sync --locked) and adds a README install section.Mirrors relaycast except the relayfile SDK has no
SDK_VERSIONconstant, so the client-version sync step is dropped.Before first publish
PyPI trusted publishing must be configured for the new
relayfile-sdkproject (a pending publisher: this repo, workflowpublish-python.yml, env if any). The first dispatch will fail at the publish step until that exists. Run withdry_run: truefirst to validate build/test.🤖 Generated with Claude Code