← Back to issue list

Utility to obtain all PYDEPS

View original Github issue

Metadata

Project
charmcraft
Number
#1199
Type
issue
State
open
Author
sed-i
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Request for a utility to install all charmlib PYDEPS in test environments (tox), avoiding manual repetition in requirements. Triaged as enhancement; project has since added a PYDEPS linter and uv plugin with charmlibs-pydeps dependency groups, partially addressing the need.

Suggested action: keep open

Reason: The issue is triaged (labeled Status: Triaged, Type: Enhancement) and the feature request remains valid. The project has evolved with a PYDEPS linter (PR #2250) and uv plugin templates including a charmlibs-pydeps dependency group, which partially address the need but do not provide a one-command install utility for test environments. The collect_charmlib_pydeps() utility already exists, making the remaining work (an install command) relatively scoped.

Impact: 35 Quick Win: 22.75 Staleness: 65 Complexity: 35 Confidence: 75 Support Request: 10

Issue body

### What needs to get done Deps that are specified in PYDEPS still need to be repeated in tox.ini/requirements.txt for running test environments. It would be handy if there was a tool to do something like `pip install $PYDEPS`, which we could run in a tox env before running unit tests. ### Why it needs to get done PYDEPS was introduced so users won't need to update their projects deps after fetch-lib. In practice, we still need to update project deps.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 35
Quick Win: 22.75
Staleness: 65
Complexity: 35
Confidence: 75
Support Request: 10
keep open Request for a utility to install all charmlib PYDEPS in test environments (tox), avoiding manual repetition in requirements. Triaged as enhancement; project has since added a PYDEPS linter and uv plugin with charmlibs-pydeps dependency groups, partially addressing the need.
qwen/qwen3.6-35b-a3b
Staleness: 65
Complexity: 45
Confidence: 70
Support Request: 10
keep open Enhancement request for a utility to automatically install PYDEPS in test environments, avoiding manual duplication. Currently triaged with an internal Jira ticket, but inactive for ~10 months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 70
Complexity: 35
Confidence: 65
Support Request: 5
keep open Enhancement request for a utility to extract and install PYDEPS dependencies automatically, avoiding manual duplication in tox.ini or requirements.txt. Currently triaged but inactive for ~9.5 months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 80
Complexity: 15
Confidence: 70
Support Request: 0
keep open Enhancement request for a utility to automatically extract and install PYDEPS, preventing manual duplication in tox.ini and requirements.txt. Currently triaged but inactive for nearly three years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 25
Confidence: 75
Support Request: 10
close stale Proposes a utility to automatically extract and install PYDEPS, removing manual duplication in tox.ini and requirements.txt. Triaged, synced to Jira as CHARMCRAFT-652, and inactive for 271 days.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#2250 (confidence 80%)

    PYDEPS linter added in this PR checks that all pydeps from charmlibs are available in the venv, partially addressing the validation side of the request.

  • Related To: canonical/charmcraft#1157 (confidence 70%)

    Builder already installs pydeps and requirements simultaneously during build, showing the collection+install pattern exists for the build path but not for test environments.

Related issues

No related issues found above the similarity threshold.