← Back to issue list

experimental: switch to uv

View original Github issue

Metadata

Project
charmcraft
Number
#1867
Type
pull request
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Landed in main via commit 31fd757e, migrating Charmcraft to uv and updating dependency freezing; related partial work had landed in #2003.

Resolution: closed resolved

Reason: The uv project reconfiguration landed in main via commit 31fd757e. Commit 015c4abd from #2003 had already introduced uv-based dependency freezing.

Evaluated by: mr-cal-bot

No scores available.

Issue body

This reconfigures charmcraft as a `uv` project and updates `freeze-requirements.sh` to use `uv`. As a side effect, this allows using `uv add` to update specific dependencies.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Landed in main via commit 31fd757e, migrating Charmcraft to uv and updating dependency freezing; related partial work had landed in #2003.
stealth/space-bunny-alpha — closed resolved Landed in main via commit 31fd757e, migrating Charmcraft to a uv project and uv-based dependency freezing. The earlier partial migration had landed in #2003.
stealth/space-bunny-alpha — closed resolved Merged as 31fd757e: Charmcraft switched to uv, freeze-requirements.sh was updated, and uv add became available for targeted dependency updates.
qwen/qwen3.6-35b-a3b — — Merged to reconfigure charmcraft as a uv project, updating freeze-requirements.sh and enabling uv add for dependency management.
qwen3.6-35b-a3b-mtp-q6 — — Merged to reconfigure charmcraft as a uv project and update freeze-requirements.sh, enabling uv add for dependency management.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#2003 (confidence 98%)

    Merged as commit 015c4abd and introduced uv-based dependency freezing before the full migration.

Related issues

Issue Project State Summary Similarity
#1779 build(deps): use uv for freeze-requirements charmcraft closed Merged into main in canonical/charmcraft#1779, replacing the freeze-requirements workflow with uv while preserving equivalent output and improving speed.
74%
#2039 Move to using uv plugin to build charmcraft closed Charmcraft’s snap build was migrated to the uv plugin in merged PR #2412 via commit 5d8ea0e4, resolving #2039.
72%
#2120 Add a how-to for switching to uv charmcraft closed Added and published a Charm-to-uv migration how-to via merged PR #2156 (commit 7947040c).
72%
#2050 feat: add uv plugin to charmcraft charmcraft merged Merged PR #2050 as commit 6d0d9ce4, adding uv plugin support to Charmcraft and closing #2040 after prerequisite craft-parts#945.
71%