Skip to content

chore(python): remove the Python SDK from core - #6197

Open
pimlock wants to merge 1 commit into
mainfrom
chore/5287-remove-python-sdk/pimlock
Open

pimlock wants to merge 1 commit into
mainfrom
chore/5287-remove-python-sdk/pimlock

Conversation

@pimlock

@pimlock pimlock commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Remove the Python SDK from core. It lives in ai-openshell/sdk-python, which has published openshell to PyPI since 0.1.8, and core's E2E suites stopped depending on it in #5624.

Related Issue

Part of #5287 (phase 5, "Retire in core"). The issue stays open for the non-code follow-ups: moving #4919, closing the open SDK PRs, and removing core's PyPI trusted publisher.

Changes

  • Delete python/ and tasks/scripts/generate_python_proto.py.
  • Turn the root pyproject.toml into a tooling-only, non-package project (package = false) that keeps ruff, ty, pytest, pyyaml and pyelftools for the repository's scripts. uv.lock drops the SDK runtime and build dependencies without changing any remaining version.
  • Drop the python:proto, python:dev and test:python tasks. The python Branch Checks job stays for script lint, type checks and tests.
  • Remove the Python SDK Freeze job and the python-sdk frozen-paths group, as chore(sdk/typescript): remove the @nvidia/openshell-sdk stub #5974 did for TypeScript. The required Branch Checks gate reads the workflow result, not single jobs.
  • Drop the python3-openshell RPM sub-package. It was already broken: Packit builds Source0 from git ls-files, and the generated _proto bindings are not committed, so the package shipped without them and import openshell failed. openshell now carries Obsoletes: python3-openshell < %{version}-%{release}.
  • Remove python-sdk from the compatibility review surfaces, and the SDK paths from CodeQL, license header, linguist and ignore rules.
  • Point README, docs/sdk/python.mdx, AGENTS.md and a new issue template contact link at sdk-python; drop python/ from CONTRIBUTING, CI.md, TESTING.md and the update-docs skill.

Release Notes

The python3-openshell RPM is no longer built. Install the Python SDK from PyPI with uv add openshell or pip install openshell.

Testing

  • Checks appropriate to the affected code and behavior pass: mise run pre-commit (commit hook), python:format:check, python:lint, python:typecheck, test:python-scripts, frozen-paths and maintainer script tests, markdown:lint
  • Unit tests added/updated (if applicable): the frozen-paths group-selection test now uses its own config
  • E2E tests added/updated (if applicable)

openshell.spec parses with rpmspec and adds no new rpmlint warnings (Fedora 44 container). A full Packit/COPR build was not run locally; this PR's COPR build covers it.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)
python3-openshell RPM: history and why it was broken
  • Introduced with the first RPM packaging in feat(rpm): add RPM packaging with Packit/COPR and GHA release publishing #1126 (d8b84773c, 2026-05-05) as a sub-package of openshell.spec.
  • Published to the maxamillion/nvidia-openshell COPR. Of the 28 builds listed, 15 successful builds contain python3-openshell: the first is 0.0.37 (2026-05-05) and the latest is 0.0.85 (2026-07-16). The listing may not cover the full history. One other build (2026-05-07, version 1.14-8) has no such package.
  • Checked builds 10728561 (0.0.85), 10698647 (0.0.79) and 10612165 (0.0.65): each produced openshell, openshell-gateway and python3-openshell.
  • Downloaded the 0.0.85 fc44 x86_64 RPM and inspected its header: it lists only __init__.py and sandbox.py, with no *_pb2 modules, so import openshell fails after install. I did not run the import.
  • Cause: Packit builds Source0 from git ls-files, and the generated _proto bindings are not committed. The spec's %check only verified the dist-info version, so nothing caught it.

The Python SDK lives in ai-openshell/sdk-python, which publishes `openshell`
to PyPI. Core's E2E suites no longer need it (#5624), so delete `python/`
and the binding generator.

- Turn the root pyproject.toml into a tooling-only, non-package project and
  drop the SDK runtime and build dependencies from uv.lock.
- Drop the python:proto and python:dev tasks, test:python, and the Python
  SDK Freeze job and frozen-paths group.
- Drop the python3-openshell RPM sub-package. It shipped without generated
  bindings, so it could not be imported; `openshell` now obsoletes it.
- Remove python-sdk from the compatibility review surfaces and the SDK paths
  from CodeQL, license, linguist, and ignore rules.
- Point README, docs, AGENTS.md, and the issue template links at sdk-python.

Part of #5287.

Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
@pimlock
pimlock requested a review from a team as a code owner December 3, 2026 19:05
@pimlock pimlock added the topic:sdk:python Python SDK implementation, maintenance, interfaces, and distribution. label Dec 3, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

@pimlock pimlock changed the title chore(python)!: remove the Python SDK from core chore(python): remove the Python SDK from core Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue topic:sdk:python Python SDK implementation, maintenance, interfaces, and distribution.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant