Add jobset_api Python package for PyPI publishing#1149
Add jobset_api Python package for PyPI publishing#1149rahulmansharamani14 wants to merge 5 commits intokubernetes-sigs:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rahulmansharamani14 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @rahulmansharamani14! |
|
Hi @rahulmansharamani14. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-jobset canceled.
|
What type of PR is this?
/kind feature
What this PR does / why we need it:
tl;dr: The JobSet Python SDK is not available on PyPI. This PR creates a new
jobset_apipackage that can be published to PyPI, allowing users topip install jobset_apito get JobSet API models.This PR replaces the old auto-generated Python SDK (
sdk/python/) with a new lightweightjobset_apiPython package atapi/python_api/, modeled after Kubeflow Trainer'skubeflow_trainer_api. The package generates only Pydantic models (noAPI client, tests, or docs) and is designed to be published to PyPI.
Changes:
VERSIONfile at repo root for version stampingapi/python_api/package withpyproject.toml,__init__.py, andREADME.mdhack/python-api/gen-api.shgeneration script (OpenAPI Generator v7.13.0, models-only)hack/python-api/swagger_config.jsonwithjobset_apipackage nameMakefileto use new generator, removetest-python-sdktarget, updateverifyandprepare-release-branch.gitignoreandAGENTS.mdreferencessdk/python/andhack/python-sdk/directoriesPost-merge maintainer action required:
jobset_apion PyPIkubernetes-sigs/jobset, workflow=publish-python-api.yaml, environment=pypiWhich issue(s) this PR fixes:
Fixes #736
Special notes for your reviewer:
This follows the same pattern as Kubeflow Trainer's Python API package (ref).
Does this PR introduce a user-facing change?