← Back to issue list

Sources are getting difficult to maintain

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1648906
Type
issue
State
closed
Author
~kyrofa
Labels
—
Created
Updated
Closed

Current evaluation

Source handlers were split from snapcraft/internal/sources.py into modules by snapcore/snapcraft PRs #957 and #961–#970, resolving the maintainability issue.

Resolution: closed resolved

Reason: The maintainer linked the completed refactor series in the issue: PR #957 and PRs #961–#970 separated the local, Bazaar, Deb, Git, Mercurial, RPM, script, Subversion, Tar, and Zip handlers.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Currently all of the sources are contained in snapcraft/internal/sources.py, which results in a large line count and the ability to get lost. It would be nice to refactor this into a snapcraft/internal/sources package.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Source handlers were split from snapcraft/internal/sources.py into modules by snapcore/snapcraft PRs #957 and #961–#970, resolving the maintainability issue.
stealth/space-bunny-alpha — closed resolved Refactored sources into a package via #955 (commit 0ef7dc218), then split individual handlers into modules through #957 and #961–#970.
stealth/space-bunny-alpha — closed resolved Resolved by merged PR #955 (commit 0ef7dc218), which converted snapcraft/internal/sources.py into a package; maintainers followed with per-source refactors in #961–#970.
stealth/space-bunny-alpha — closed resolved Converted snapcraft/internal/sources.py into a package in merged PR #955 (commit 0ef7dc218), improving maintainability and enabling extraction of individual source handlers.
qwen/qwen3.6-35b-a3b — — Proposed refactoring of sources.py into a package was closed without implementation. Zero comments and over nine years of inactivity indicate the request was abandoned or superseded by later codebase changes.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The proposal to refactor sources.py into a package was abandoned due to inactivity, with no comments or implementation recorded.
qwen/qwen3.6-35b-a3b — — Abandoned. The proposed refactoring of sources.py into a package was not implemented and the issue was closed without resolution.
qwen3.6-35b-a3b-mtp-q6 — — Refactoring sources.py into a package was closed without resolution. Zero comments and over nine years of inactivity indicate the request was abandoned. No fix or merge occurred.

Update history

Date Change
created

Related work

Related issues

Issue Project State Summary Similarity
#955 sources: convert to package. snapcraft merged Merged PR #955 (commit 0ef7dc218) converted snapcraft/internal/sources.py into a package, groundwork for LP bug #1648906. Follow-ups #957 and #961-#970 then split each source handler into its own module.
72%