feat: deprecate OsRelease in favor of distro
Metadata
Current evaluation
Closed unmerged and superseded by canonical/craft-parts#1581, which carries forward the OsRelease deprecation in favor of distro.
Resolution: closed superseded
Reason: Maintainer lengau closed PR #1569 with the comment "superseded by" canonical/craft-parts#1581. The replacement PR contains the same OsRelease deprecation changes.
Evaluated by: mr-cal-bot
No scores available.
Issue body
We've been using `distro` in several places, we might as well use it in craft-parts too.
This doesn't remove it yet though since that would require a major release.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed superseded | Closed unmerged and superseded by canonical/craft-parts#1581, which carries forward the OsRelease deprecation in favor of distro. | |
| stealth/space-bunny-alpha | — | closed superseded | Closed unmerged and superseded by canonical/craft-parts#1581, which carries the changes to deprecate OsRelease in favor of distro without removing the API. | |
| qwen/qwen3.6-35b-a3b | — | — | Superseded by pull request #1581. The changes deprecate OsRelease in favor of the distro package to avoid a major version bump. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Superseded by PR #1581. The OsRelease deprecation was closed without merging, as a subsequent PR directly implemented the distro library integration. |
Update history
| Date | Change |
|---|---|
| updated |
Related work
-
Superseded By:
canonical/craft-parts#1581
(confidence 100%)
Replacement PR carrying the deprecation work forward.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1581 feat: deprecate OsRelease in favor of distro | craft-parts | open | Deprecates os_utils.OsRelease in favor of the distro PyPI package across 18 files (+179/-132). Approved by 1 reviewer, but 3 unresolved review comments and 19 failing checks; no author activity for 128 days. | |
| #1333 Consolidate `os-release` utils with other repositories | craft-parts | open | Replace Craft Parts' hand-rolled os-release parser with the distro library; maintainers agreed on this direction, but no implementation has landed and the work remains open. | |
| #356 utils: remove Ubuntu-specific code from OsRelease | craft-parts | merged | Merged PR #356 as commit 62c65491, removing 62 lines of Ubuntu-specific OsRelease code across two files and resolving CRAFT-1584. |