chore: migrate Python projects from Poetry to uv - #267
Merged
Merged
Conversation
Co-Authored-By: mish@e2b.dev <mish@e2b.dev>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
mishushakov
approved these changes
Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves
template/andexamples/basic-python/from Poetry to uv, matching the E2B monorepo (packages/*-python).pyproject.toml:[tool.poetry.*]→ PEP 621[project].dependencies+[dependency-groups].dev. Caret ranges translated 1:1 (^2.20.3→>=2.20.3,<3,^0.15.0→>=0.15.0,<0.16). No[build-system], so both are virtual (non-package) projects — same as Poetry'spackage-mode = falsein the template; the example'spoetry-corebuild backend was never needed.poetry.lock→uv.lock. Versions match the old locks where possible. Packages whose newest release was under 7 days old were held back:opentelemetry-api1.44.0,charset-normalizer3.5.1,pythonnet3.1.0 (3.2.0 came out yesterday). The example also picks up thee2b-desktop2.6.0 /e2b2.51.0 bumps..tool-versions:poetry 2.5.1→uv 0.12.18(the latest release that's at least 7 days old).template.yml:setup-python+snok/install-poetry→astral-sh/setup-uv@v10.2.0(pinned to a SHA, installs Python from.tool-versions), thenuv sync --locked/uv run python …..vscode/settings.jsonupdated to useuv sync/uv runand theuv.lockname.Heads-up:
template.ymlonly runs on pushes tomain, so this PR gets no CI run. Verified locally:uv lock --check+uv sync --lockedin both projects,uv run python build_docker.pyrenders the Dockerfile,ruff check/ruff format --checkpass, the example's imports resolve, andactionlintis clean.Link to Devin session: https://app.devin.ai/sessions/fcac39d3571e4296b52fd3592275d184
Open in Devin Desktop: https://app.devin.ai/desktop/session/fcac39d3571e4296b52fd3592275d184?variant=devin
Requested by: @mishushakov