Publish Python SDK to PyPI as sst-sdk#6858
Conversation
- Rename package to sst-sdk (sst is taken on PyPI), import stays 'from sst import Resource' - Add PyPI metadata: classifiers, keywords, license, project URLs - Add hatch build config targeting src/sst for correct import name - Add Python SDK publish steps to release.yml (alongside JS and Rust) - Add PUBLISHING.md with one-time PyPI trusted publishing setup - Expand README with installation, migration guide, and usage examples - Pass GITHUB_TOKEN to docs build in check.yml to avoid rate limiting
| env: | ||
| CARGO_REGISTRY_TOKEN: ${{ steps.crates-auth.outputs.token }} | ||
|
|
||
| - name: Release Python SDK |
There was a problem hiding this comment.
is "Release" here correct? aren't we building the sdk? not sure
There was a problem hiding this comment.
Not really building as there's nothing to compile or anything. It's just bundling the files and pushing it to pypi. Don't think it matters, whichever you want.
| [project.urls] | ||
| Homepage = "https://sst.dev" | ||
| Documentation = "https://sst.dev/docs/reference/sdk/" | ||
| Repository = "https://github.com/sst/sst" |
There was a problem hiding this comment.
we should update this URLs to use anomalyco in the org name
|
|
||
| [project.urls] | ||
| Homepage = "https://sst.dev" | ||
| Documentation = "https://sst.dev/docs/reference/sdk/" |
There was a problem hiding this comment.
maybe we can add here sdk#python so it links directly?
| uv add sst-sdk | ||
| ``` | ||
|
|
||
| > **Note**: When deploying with SST, the SDK is automatically included — you don't need to install it manually. This package is for local development and testing. |
There was a problem hiding this comment.
is this true? i don't see any changes made to the function or python runtime
There was a problem hiding this comment.
also if this is the case, why would people need to do uv add sst-sdk?
| - [SST Documentation](https://sst.dev/docs/) | ||
| - [SDK Reference](https://sst.dev/docs/reference/sdk/) | ||
| - [Python on SST](https://sst.dev/docs/examples/#aws-lambda-python) | ||
| - [GitHub](https://github.com/sst/sst) |
There was a problem hiding this comment.
same thing here with the URLs
…ct auto-include note
Summary
Publishes the SST Python SDK to PyPI as
sst-sdk, so users can install withpip install sst-sdkoruv add sst-sdkinstead of pointing at the git repo.Changes (5 files)
sdk/python/pyproject.toml— Rename tosst-sdk, add PyPI metadata, hatch build configsdk/python/README.md— Installation, migration guide, usage examplessdk/python/PUBLISHING.md— One-time PyPI trusted publishing setup docs.github/workflows/release.yml— Add Python SDK publish steps (after Rust, before Discord).github/workflows/check.yml— Pass GITHUB_TOKEN to docs build (fixes rate limit)Migration for users
No code changes —
from sst import Resourceworks the same.Setup required before first publish
Configure trusted publishing on PyPI for
sst-sdk(details insdk/python/PUBLISHING.md).