Skip to content

[sdk] support streaming - #13

Merged
rodnnnney merged 2 commits into
mainfrom
rod/streaming-wrap
Jul 22, 2026
Merged

[sdk] support streaming#13
rodnnnney merged 2 commits into
mainfrom
rod/streaming-wrap

Conversation

@rodnnnney

Copy link
Copy Markdown
Collaborator

No description provided.

@socket-security

socket-security Bot commented Jul 22, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedconnect-python@​0.9.0100100100100100
Addedprotobuf@​7.35.1100100100100100

View full report

@rodnnnney
rodnnnney force-pushed the rod/streaming-wrap branch from 2810ceb to f4a2aae Compare July 22, 2026 20:32
@rodnnnney
rodnnnney merged commit 7f38f2f into main Jul 22, 2026
4 checks passed
rodnnnney added a commit that referenced this pull request Jul 28, 2026
…15)

Speakeasy's Compile SDK step has failed on every generation run since
PR #13, so no SDK has been published since 1.0.5.

Root cause: `.speakeasy/gen.yaml` had an empty `additionalDependencies`,
so each `speakeasy run` regenerated `pyproject.toml` without the
hand-added `connect-python`/`protobuf` deps. `uv sync --dev` then
uninstalled them and the vendored `_connect` tree stopped resolving —
609 mypy errors and pylint 3.57/10 (exit 22).

- gen.yaml: declare connect-python, protobuf and types-protobuf so they
  survive regeneration. pyproject.toml and pylintrc are gen-managed, so
  this is the only durable place for them.
- scripts/postprocess-connect.py (new, idempotent, run at the end of
  generate-connect.sh): relative-ise absolute imports in the .pyi stubs
  (protoletariat only matches protoc's alias convention, so it skipped
  46 of them), prune package-stub entries for deleted subtrees, and
  prepend pylint/mypy opt-outs to the generated files — protobuf codegen
  emits ~64k pylint messages and cannot be silenced from config.
- streaming.py: rename unused on_end/on_end_sync params to _-prefixed
  (pylintrc already ignores those). connectrpc calls them positionally.
- pyproject.toml: match the generator's output byte-for-byte so main is
  a fixed point. Dropping "*.pyi" from package-data is a no-op —
  setuptools includes stubs automatically (verified: 68 either way).

Verified with a real `speakeasy run` against a scratch copy: the
regenerated pyproject keeps all three deps, and _connect, the headers
and streaming.py all survive. From a clean venv: mypy clean (was 223
locally), pylint 10.00/10, runtime import and client construction OK.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant