Skip to content

Prepare Python SDK publishing to PyPI - #201

Merged
lukebuehler merged 4 commits into
mainfrom
feat/python-sdk-publishing
Nov 19, 2026
Merged

lukebuehler merged 4 commits into
mainfrom
feat/python-sdk-publishing

Conversation

@lukebuehler

@lukebuehler lukebuehler commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What changes

Publish the Python SDK under the distribution name lightspeed-ai-sdk. Users install it with python -m pip install lightspeed-ai-sdk and import the client with from lightspeed import AsyncLightspeedClient. Users migrating from a Git checkout with the old package layout should update their lightspeed_ai imports.

CI builds a wheel and a source distribution and installs each in isolation. The tag workflow publishes the tested files to PyPI using GitHub Trusted Publishing before publishing npm and the GitHub Release. The installation and release guides include the package names and publisher settings.

Before the first publication

  • Create or confirm the lightspeed-ai-sdk project under the lightspeed-ai PyPI organization.
  • Rehearse a GitHub Actions upload and clean install on TestPyPI.
  • Configure the production project's trusted publisher for smartcomputer-ai/lightspeed, workflow release-tag.yml, environment official-release.

The PyPI name-transfer request concerns the separate lightspeed-ai distribution. Publishing lightspeed-ai-sdk can proceed independently.

Verification

Installed both distributions, imported AsyncLightspeedClient from lightspeed, inspected the wheel metadata and typing marker, and completed an upload dry run. The Python suite passed 112 tests with the opt-in live gateway test skipped. Type checking, generated-code verification, release version tests, release metadata validation and the documentation build passed.

Tracks #187.

@lukebuehler
lukebuehler marked this pull request as ready for review November 19, 2026 22:23
@lukebuehler
lukebuehler merged commit 1e60ca7 into main Nov 19, 2026
5 checks passed
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