Skip to content

chore: migrate Python projects from Poetry to uv - #267

Merged
mishushakov merged 1 commit into
mainfrom
devin/1790764154-uv
Sep 30, 2026
Merged

mishushakov merged 1 commit into
mainfrom
devin/1790764154-uv

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Moves template/ and examples/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's package-mode = false in the template; the example's poetry-core build 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-api 1.44.0, charset-normalizer 3.5.1, pythonnet 3.1.0 (3.2.0 came out yesterday). The example also picks up the e2b-desktop 2.6.0 / e2b 2.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), then uv sync --locked / uv run python ….
  • READMEs and .vscode/settings.json updated to use uv sync / uv run and the uv.lock name.

Heads-up: template.yml only runs on pushes to main, so this PR gets no CI run. Verified locally: uv lock --check + uv sync --locked in both projects, uv run python build_docker.py renders the Dockerfile, ruff check/ruff format --check pass, the example's imports resolve, and actionlint is 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

Co-Authored-By: mish@e2b.dev <mish@e2b.dev>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@cla-bot cla-bot Bot added the cla-signed label Sep 30, 2026
@mishushakov
mishushakov marked this pull request as ready for review September 30, 2026 10:56
@mishushakov
mishushakov self-requested a review as a code owner September 30, 2026 10:56

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@mishushakov
mishushakov merged commit 1ff98a3 into main Sep 30, 2026
8 checks passed
@mishushakov
mishushakov deleted the devin/1790764154-uv branch September 30, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant