← Back to issue list

Fix poetry plugin for 25.04+

View original Github issue

Metadata

Project
craft-parts
Number
#1492
Type
issue
State
closed
Author
mr-cal
Labels
Status: Triaged Type: Bug
Created
Updated
Closed

Current evaluation

Fixed by detecting Ubuntu 25.04+ via OsRelease() and conditionally adding python3-poetry-plugin-export to build packages in poetry_plugin.py, resolving the poetry export command failure caused by python3-poetry v2.

Suggested action:

No scores available.

Issue body

### What needs to get done Craft-parts should check the base OS and conditionally install python3-poetry-plugin-export. This should be tested downstream in Snapcraft with this spread test: https://github.com/canonical/snapcraft/blob/6ee41173cce17eccf0048737fcb18f868611baba/tests/spread/core26/python-hello/task.yaml#L8 ### Why it needs to get done `python3-poetry` was bumped to v2 in 25.04. It drops built-in support for the `poetry export` command.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Fixed by detecting Ubuntu 25.04+ via OsRelease() and conditionally adding python3-poetry-plugin-export to build packages in poetry_plugin.py, resolving the poetry export command failure caused by python3-poetry v2.
qwen/qwen3.6-35b-a3b Implemented a fix that detects Ubuntu 25.04+ via OsRelease() and conditionally adds python3-poetry-plugin-export to build packages, resolving the dropped poetry export command support in python3-poetry v2.
qwen/qwen3.6-35b-a3b
Staleness: 65
Complexity: 20
Confidence: 85
Support Request: 5
keep open Bug report for updating the poetry plugin to handle Python Poetry v2 changes in Ubuntu 25.04+. Currently triaged but inactive for ~4.5 months with no assignee or maintainer discussion.
qwen3.6-35b-a3b-mtp-q6
Staleness: 55
Complexity: 30
Confidence: 85
Support Request: 5
keep open Bug tracking poetry plugin incompatibility on Ubuntu 25.04+ due to python3-poetry v2 dropping the export command. Issue is triaged by a maintainer and currently inactive for ~4 months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 55
Complexity: 20
Confidence: 85
Support Request: 5
keep open Conditionally install python3-poetry-plugin-export in Craft-parts for Ubuntu 25.04+ to support poetry v2, which dropped built-in export. Triaged bug, inactive for 99 days, awaiting implementation and downstream spread testing.

Update history

Date Change
closed

Related issues

Issue Project State Summary Similarity
#1510 fix(poetry): install export plugin on 25.04+ craft-parts merged Merged fix for Ubuntu 25.04+ compatibility by conditionally installing python3-poetry-plugin-export. This addresses Poetry 2 deprecating the built-in export subcommand in favor of an optional plugin. Approved by reviewers and passed CI.
88%
#1996 Poetry plugin fails on 20.04 base charmcraft closed Poetry plugin failed on Ubuntu 20.04 due to missing python3-poetry package. Resolved via an upstream craft-parts pull request addressing the package lookup logic. Closed as fixed.
76%
#1633 fix(poetry): don't install the export plugin from apt craft-parts merged Merged a fix preventing the poetry export plugin from installing via apt when poetry is not sourced from apt. Approved by two reviewers and passed CI checks.
73%