chore: migrate chart_data_extractor and CI from Poetry to uv - #341
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
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
Replaces Poetry with uv, matching the E2B monorepo (
uv 0.10.0,astral-sh/setup-uv@v6.8.0,uv_buildbackend).chart_data_extractor:[tool.poetry]→ PEP 621[project]+[dependency-groups] dev, withuv_buildas the build backend.poetry.lock→uv.lock, generated withmigrate-to-uvso every locked version stays the same (I diffed the name/version pairs across all 26 packages). Caret ranges are now explicit (^2.2.6→>=2.2.6,<3).license-files = ["LICENSE"]was added because Poetry includedLICENSEautomatically anduv_builddoes not. With it, the sdist and wheel contain the same files as the Poetry build.package.jsonscripts switch frompoetry …touv ….postVersionis nowuv version <v>, which also updatesuv.lock. The release commit already runsgit add -A, so the lockfile ends up in it..tool-versions:poetry 2.1.1→uv 0.10.0.setup-python+snok/install-poetrypair is replaced withsetup-uv.uv sync --locked/uv build/uv run pytestuv sync --locked, and the globalpip install ruffbecomesuv tool install ruff==0.11.12uv build && uv publish --check-url https://pypi.org/simple/(this replaces--skip-existing). It still uses theCHARTS_PYPI_TOKENsecret, now passed asUV_PUBLISH_TOKEN, so nothing changes on PyPI.setup-uvwithactivate-environment: true+uv pip install -r requirements-dev.txt. Thepython build_*.pysteps are unchanged.Not changed: the sandbox image itself (
template.pystill usespip_install). No changeset, because the publishede2b-chartspackage has no functional change.Verified locally with uv 0.10.0:
uv sync --locked,uv build, pytest (13 passed), ruff lint/format for both packages,uv version 1.0.1→uv sync --lockedstill passes, andactionlintis clean.Link to Devin session: https://app.devin.ai/sessions/9d57c61598ca48b8bb89122f271ecddb
Open in Devin Desktop: https://app.devin.ai/desktop/session/9d57c61598ca48b8bb89122f271ecddb?variant=devin
Requested by: @mishushakov