← Back to issue list

`python-extras` keyword for Python plugin

View original Github issue

Metadata

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

Current evaluation

Feature request for a python-extras keyword in the python plugin to install pip extras (e.g. pip install -U .[toml]). Unimplemented in the python plugin, but the uv plugin (added later) provides uv-extras for the same need. No maintainer response; only a Jira-sync bot comment.

Suggested action: needs triage

Reason: No maintainer has acknowledged, labelled, or responded to this feature request — the only comment is the autogenerated Jira-sync bot (CRAFT-2520), so it remains untriaged. The python plugin still lacks a python-extras keyword (python_plugin.py only supports python-requirements/constraints/packages), but the uv plugin now offers uv-extras, so a maintainer should decide whether to implement it for the python plugin or steer users to the uv plugin.

Impact: 30 Quick Win: 22.5 Staleness: 75 Complexity: 25 Confidence: 70 Support Request: 0

Issue body

### What needs to get done It would be nice to have a `python-extras` keyword for the python plugin that will install the given package with any extras specified. Example: ``` parts: codespell: plugin: python source: https://github.com/codespell-project/codespell source-type: git source-tag: v2.2.6 source-depth: 1 python-extras: - toml ``` would [at the appropriate place](https://github.com/canonical/craft-parts/blob/bd6c687f30dc72346816d7cd0b4ceabc8e530d92/craft_parts/plugins/python_plugin.py#L115) run `pip install -U .[toml]` ### Why it needs to get done Quality of life improvement

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 22.5
Staleness: 75
Complexity: 25
Confidence: 70
Support Request: 0
needs triage Feature request for a python-extras keyword in the python plugin to install pip extras (e.g. pip install -U .[toml]). Unimplemented in the python plugin, but the uv plugin (added later) provides uv-extras for the same need. No maintainer response; only a Jira-sync bot comment.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 15
Confidence: 80
Support Request: 0
needs triage Feature request to add a python-extras keyword to the craft-parts Python plugin for installing packages with extras. Open for nearly 2.5 years with no maintainer assessment or implementation.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 45
Confidence: 75
Support Request: 15
needs triage Feature request to add a python-extras keyword to the craft-parts Python plugin for installing packages with extras. Unlabelled and awaiting maintainer assessment after over two years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 75
Support Request: 0
needs triage Add python-extras keyword to the Python plugin to install package extras via pip. Inactive for over a year with an internal Jira ticket created. Awaiting triage and implementation.

Update history

No update history recorded yet.

Related work

  • Related To: craft-parts#930 (confidence 80%)

    PR #930 added the uv plugin, which includes the uv-extras keyword providing the same extras-install capability requested here for uv-based projects.

Related issues

No related issues found above the similarity threshold.