be4eb5fd96
Migrates the Python SDK's packaging and CI from Poetry to [uv](https://docs.astral.sh/uv/): `pyproject.toml` is converted to PEP 621 metadata using uv's native `uv_build` backend (verified to produce a byte-equivalent wheel containing both `e2b` and `e2b_connect`), `poetry.lock` is replaced with `uv.lock`, and the `Makefile`, `package.json` scripts, `.tool-versions`, `CLAUDE.md`, and all six GitHub workflows now use `uv` (`astral-sh/setup-uv` + `uv sync`/`build`/`version`/`publish`). It also drops the now-redundant explicit sync steps (since `uv run` auto-syncs) and removes the orphaned `pydoc-markdown` dev dependency, whose only consumer was deleted long ago — trimming 58 packages from the dev lockfile. ## Usage ```sh cd packages/python-sdk uv sync # install deps (replaces `poetry install`) uv run pytest # run tests uv build # build the wheel/sdist make lint # ruff (run via `uv run`) ``` No user-facing SDK change — packaging/tooling only — so no changeset is included; the published package contents are unchanged. --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
486 B
JSON
15 lines
486 B
JSON
{
|
|
"name": "@e2b/python-sdk",
|
|
"private": true,
|
|
"version": "2.30.0",
|
|
"scripts": {
|
|
"example": "uv run python example.py",
|
|
"test": "uv run pytest -n 4 --verbose -x",
|
|
"postVersion": "uv version $(pnpm pkg get version --workspaces=false | tr -d \\\")",
|
|
"postPublish": "uv build && uv publish --token ${PYPI_TOKEN} --check-url https://pypi.org/simple/",
|
|
"typecheck": "uv run make typecheck",
|
|
"lint": "uv run make lint",
|
|
"format": "uv run make format"
|
|
}
|
|
}
|