feat: add python wasm release workflow#2409
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Assessment: Comment The workflow structure is sound and follows existing patterns in the repo well. The dependency fix for PyPI publishing is correct and the tag scoping for Python 1.x is a good improvement. Review Categories
The overall approach is clean and the pyproject.toml changes are well-motivated. |
|
Assessment: Comment The workflow is well-structured and the Remaining Items
Overall, the workflow follows repo conventions well and the safety guard preventing |
|
Assessment: Comment (LGTM with minor outstanding items) The "address comments" commit has resolved the critical security findings from the previous review round — env vars are now used consistently in Outstanding items from prior review (non-blocking)
The workflow is well-structured, permissions are appropriately scoped, and the |
Description
The monorepo now produces three releasable packages: the TypeScript SDK (npm), Python 1.x (PyPI), and the new Python WASM 2.x (PyPI). The Python WASM package embeds a compiled .wasm binary from the TypeScript SDK and ships it as a single wheel. This PR adds the release workflow for that third package and prepares strands-py-wasm for PyPI publishing by resolving a direct URL dependency that PyPI rejects.
The existing Python 1.x workflow is tightened from
python/v*topython/v1.*tags; it is scoped to the 1.x line and will be removed at EOL. A new workflow (python-wasm-pypi-publish-on-release.yml) handlespython-wasm/v*releases with this pipeline:typescript-ts-check.yml,typescript-ts-test.yml) →wasm-py-check.yml) →The
pgrayy-wasmtimedependency is switched from agit+https://direct reference to a versioned PyPI package. PyPI's upload endpoint rejects direct URL references per PEP 440, so this change is required for publishing. Reference issueRelated Issues
Documentation PR
Type of Change
New feature
Testing
How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli
To verify locally that the wheel builds correctly:
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.