← Back to issue list

Add an option to use `uv venv` and `uv pip` in the `python` and `poetry` plugins

View original Github issue

Metadata

Project
craft-parts
Number
#936
Type
issue
State
open
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

Feature request to add a uv package-manager option to the python and poetry plugins, replacing venv+pip with uv venv/uv pip. Unlabeled, no comments, inactive about 18 months; still unimplemented, though a separate uv plugin now exists.

Suggested action: keep open

Reason: Filed by maintainer lengau as a task ('What needs to get done'), which is clear maintainer buy-in, and the request is still unimplemented: the current python_plugin.py has no package-manager property and still uses pip, and the poetry plugin is unchanged. The project remains active (recent uv plugin and poetry fixes), and the separate uv plugin (#930) is a related but different feature, not a replacement for the requested option, so the issue is still relevant.

Impact: 45 Quick Win: 20.25 Staleness: 65 Complexity: 55 Confidence: 80 Support Request: 0

Issue body

### What needs to get done This old experimental PR is an example: https://github.com/canonical/craft-parts/pull/825 You should be able to make parts like: ```yaml parts: python: source: . python-package-manager: uv poetry: source: . poetry-package-manager: uv ``` and instead of using the system `python -m venv` and installing pip in that virtual environment, it would use uv for the relevant `venv` and `pip` commands. ### Why it needs to get done The old methods are both slow and can be error-prone since the behaviour of `venv` and `pip` changes from base to base.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 45
Quick Win: 20.25
Staleness: 65
Complexity: 55
Confidence: 80
Support Request: 0
keep open Feature request to add a uv package-manager option to the python and poetry plugins, replacing venv+pip with uv venv/uv pip. Unlabeled, no comments, inactive about 18 months; still unimplemented, though a separate uv plugin now exists.
qwen/qwen3.6-35b-a3b
Staleness: 92
Complexity: 65
Confidence: 85
Support Request: 5
close stale Feature request to integrate the uv package manager into python and poetry plugins. Unlabeled, inactive for over a year, with no maintainer comments or assigned work.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 50
Confidence: 85
Support Request: 0
needs triage Feature request to add uv package manager support to craft-parts python and poetry plugins. Unlabelled, inactive for over a year, awaiting maintainer triage.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 50
Confidence: 70
Support Request: 5
needs triage Proposes adding uv as a configurable package manager for the python and poetry plugins to replace slower, error-prone system venv and pip. Open, needs triage, and stalled for over a year. Requires implementation.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/craft-parts#930 (confidence 85%)

    Adds a standalone uv plugin that uses 'uv venv' and 'uv pip', overlapping with but not fulfilling this request for an option inside the python/poetry plugins.

  • Related To: canonical/craft-parts#825 (confidence 70%)

    Experimental PR explicitly cited in the issue body as an example of the desired uv-based venv/pip behavior.

Related issues

No related issues found above the similarity threshold.