← Back to issue list

fix(snap): remove libapt-pkg-dev and stale comment now that python3-apt is a stage-package

View original Github issue

Metadata

Project
snapcraft
Number
#6382
Type
pull request
State
closed
Author
Copilot
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

No scores available.

Issue body

`uv` now hard-rejects non-PEP 625 source distributions (`.tar.xz`), breaking `python-apt` installs via `uv pip`. The `python3-apt` part already addresses this by installing `python3-apt` as a stage-package and organizing it into the venv's `site-packages` — but two artifacts from the old source-build approach remained. ## Changes - **`build-deps`**: remove `libapt-pkg-dev` — only needed to compile `python-apt` from source - **`snapcraft` part**: update stale comment that still referenced python-apt as a source build dependency Replicates the fix from [canonical/charmcraft#2818](https://github.com/canonical/charmcraft/pull/2818).

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen/qwen3.6-35b-a3b
Staleness: 5
Complexity: 5
Confidence: 90
needs review Removes unused libapt-pkg-dev build dependency and updates a stale snapcraft comment after switching to python3-apt as a stage-package. Currently awaiting maintainer review with passing CI.

Update history

Date Change
closed
created

Related issues

Issue Project State Summary Similarity
#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.
86%
#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.
77%
#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.
77%
#401 fix(snap): install python3-apt as a stage-package instead of building from source imagecraft closed Closed and rejected without merging. A maintainer dismissed the snap fix to stage python3-apt instead of building from source as insufficiently impactful.
73%
#1321 chore(snap): remove libapt-pkg-dev since we no longer build python-apt rockcraft open Removes unnecessary libapt-pkg-dev build dependency from snapcraft.yaml since python-apt is installed as a stage-package. Draft PR pending spread test fix.
72%
#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.
71%