Repository navigation
Conversation
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>
|
🌿 Preview your docs: https://nvidia-preview-pr-6197.docs.buildwithfern.com/openshell |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove the Python SDK from core. It lives in ai-openshell/sdk-python, which has published
openshellto 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
python/andtasks/scripts/generate_python_proto.py.pyproject.tomlinto a tooling-only, non-package project (package = false) that keeps ruff, ty, pytest, pyyaml and pyelftools for the repository's scripts.uv.lockdrops the SDK runtime and build dependencies without changing any remaining version.python:proto,python:devandtest:pythontasks. ThepythonBranch Checks job stays for script lint, type checks and tests.Python SDK Freezejob and thepython-sdkfrozen-paths group, as chore(sdk/typescript): remove the @nvidia/openshell-sdk stub #5974 did for TypeScript. The requiredBranch Checksgate reads the workflow result, not single jobs.python3-openshellRPM sub-package. It was already broken: Packit builds Source0 fromgit ls-files, and the generated_protobindings are not committed, so the package shipped without them andimport openshellfailed.openshellnow carriesObsoletes: python3-openshell < %{version}-%{release}.python-sdkfrom the compatibility review surfaces, and the SDK paths from CodeQL, license header, linguist and ignore rules.docs/sdk/python.mdx, AGENTS.md and a new issue template contact link at sdk-python; droppython/from CONTRIBUTING, CI.md, TESTING.md and theupdate-docsskill.Release Notes
The
python3-openshellRPM is no longer built. Install the Python SDK from PyPI withuv add openshellorpip install openshell.Testing
mise run pre-commit(commit hook),python:format:check,python:lint,python:typecheck,test:python-scripts, frozen-paths and maintainer script tests,markdown:lintopenshell.specparses withrpmspecand 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
python3-openshell RPM: history and why it was broken
d8b84773c, 2026-05-05) as a sub-package ofopenshell.spec.maxamillion/nvidia-openshellCOPR. Of the 28 builds listed, 15 successful builds containpython3-openshell: the first is0.0.37(2026-05-05) and the latest is0.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.openshell,openshell-gatewayandpython3-openshell.0.0.85fc44 x86_64 RPM and inspected its header: it lists only__init__.pyandsandbox.py, with no*_pb2modules, soimport openshellfails after install. I did not run the import.git ls-files, and the generated_protobindings are not committed. The spec's%checkonly verified the dist-info version, so nothing caught it.