[CI][python-client] Publish kuberay-client to PyPI #5346
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.96) × (1 − Review Confidence (0.78)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.96 · 182 lines diff across 28 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 2 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.312
Self Review
self_review
0.140
Sensitive Paths
sensitive_paths
0.096
Mass File Touch
mass_file_touch
0.080
Real PR Conversation Timeline
3 items
Should the Python client have its own version bump, or should its version follow the KubeRay repo version?
Diiscussed in the KubeRay sync, and agreed that the Python client version will follow the KubeRay repository version.
win5923
<!-- Thank you for your contribution! -->
<!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. -->
Why are these changes needed?
Today, the only way to use the Python client is to clone this repository and run
pip install -e clients/python-client. This PR enables the client to be published to PyPI askuberay-client.Rename the distribution package from
python-clienttokuberay-clientand the import package frompython_clienttokuberay_client, including the source and test directories.Add a manually triggered
release-python-clientworkflow that builds sdist/wheel artifacts and publishes them to PyPI via PyPI Trusted Publishing.0.0.0-dev; the release workflow derives the version from the Git tag at build time (e.g.v1.8.0→1.8.0,v1.8.0-rc.0→1.8.0rc0).The layout follows the PyPA publishing guide.
<img width="816" height="177" alt="image" src="https://github.com/user-attachments/assets/9788bde3-6730-40f6-9e6a-085f722ec405" />
Security
To prevent users from triggering the release workflow without approval, we should consider enabling Required reviewers for the pypi environment.
<img width="1040" height="223" alt="image" src="https://github.com/user-attachments/assets/eb6c87b8-34df-4ffe-b38a-8a110a816eaf" />
Verified on TesyPyPI:
<img width="748" height="182" alt="image" src="https://github.com/user-attachments/assets/b54559cf-69d9-4d4a-a50a-387a3c324ed9" />
Related issue number
Closes #3915
Labels
<!-- Please add the appropriate labels to this PR. -->
doc-updates-requiredlabel.breaking-changelabel.Checks
- [x] Unit tests
- [x] Manual tests
- [ ] This PR is not tested :(
<!-- If you selected "Manual tests" above, please fill in the section below. Otherwise you can remove it. -->
Manual test instructions
<!--
Provide step-by-step instructions so reviewers can verify your changes.
Include any relevant screenshots or logs demonstrating the behavior.
-->