← Back to issue list

fix(snap): install python3-apt as a stage-package instead of building from source

View original Github issue

Metadata

Project
imagecraft
Number
#401
Type
pull request
State
closed
Author
Copilot
Labels
Created
Updated
Closed

Current evaluation

Closed and rejected without merging. A maintainer dismissed the snap fix to stage python3-apt instead of building from source as insufficiently impactful.

Suggested action:

No scores available.

Issue body

Replicates [canonical/charmcraft#2818](https://github.com/canonical/charmcraft/pull/2818) for imagecraft. `uv` now hard-rejects sdists with non-PEP 625 filenames (`.tar.xz`), which is the only format Launchpad serves for `python-apt`. ## Changes - **New `python3-apt` part** — stages the distro package and organizes `usr/lib/python3/dist-packages/*` into `lib/python3.12/site-packages/`, providing the `apt`/`apt_pkg`/`apt_inst`/`aptsources` bindings without a source build. - **`imagecraft-libs`** — removed `python3-apt` from `stage-packages` and dropped the old `apt*` organize entry, both now handled by the dedicated part. - **`imagecraft` part** — added `python3-apt` to `after`; removed `libapt-pkg-dev` from top-level `build-packages` (only needed when compiling python-apt from source).

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed and rejected without merging. A maintainer dismissed the snap fix to stage python3-apt instead of building from source as insufficiently impactful.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 15
Confidence: 85
needs review Switches snap build to install python3-apt as a stage-package instead of building from source, resolving uv's rejection of non-PEP 625 sdists. Currently pending maintainer review with passing CI.

Update history

Date Change
closed
created

Related issues

Issue Project State Summary Similarity
#2850 fix(snap): install python3-apt as a stage-package instead of building… charmcraft merged Merged. Fixes snap build failures from uv rejecting non-compliant python-apt sources by installing python3-apt as a distro stage-package and isolating it in a dedicated snap part. Also fixes ruff lint errors.
84%
#2818 fix(snap): install python3-apt as a stage-package instead of building from source charmcraft merged Merged. Fixed snap build failures from uv rejecting non-PEP 625-compliant python-apt sources by installing python3-apt as an apt stage-package instead of compiling from source. Removed requirements-noble.txt and updated snapcraft configuration.
82%
#6383 fix(snap): remove libapt-pkg-dev now that python3-apt is a stage-package snapcraft closed Merged a fix to remove redundant libapt-pkg-dev from snapcraft build dependencies, resolving uv source distribution build failures by relying on the python3-apt stage-package.
77%
#6382 fix(snap): remove libapt-pkg-dev and stale comment now that python3-apt is a stage-package snapcraft closed Merged to remove the unused libapt-pkg-dev build dependency and update a stale comment, reflecting the switch to python3-apt as a stage-package.
73%
#3236 snap: use python3-apt stage-package snapcraft closed Switching python3-apt to a stage-package was closed without merging. The request remained pending review with four unresolved comments and no CI checks, indicating it was abandoned.
72%