feat: add an API for registering source types
Metadata
Current evaluation
Merged PR #927 (commit ef0f35d8) added craft_parts.sources.register/unregister API for source types, treating built-in sources as mandatory; closes issue #915 (CRAFT-3734).
Resolution: closed resolved
Reason: The PR was approved and merged into the main branch as commit ef0f35d8 ('feat: add an API for registering source types (#927)'), with the merge back-port/fix relationship recorded on issue #915. craft_parts/sources/__init__.py now re-exports register and unregister in __all__.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This provides a pair of functions (sources.register, sources.unregister) for registering and unregistering source types. This differs slightly from plugin registration:
- All current sources are considered mandatory, meaning they cannot be replaced or unregistered by the application.
- Mandatory sources can be changed at a major release.
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Fixes #915, CRAFT-3734
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #927 (commit ef0f35d8) added craft_parts.sources.register/unregister API for source types, treating built-in sources as mandatory; closes issue #915 (CRAFT-3734). | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #927 via ef0f35d8 added sources.register and sources.unregister; built-in sources are mandatory and may only change at major releases. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged after four approvals, adding sources.register and sources.unregister API functions. Sources are mandatory by default and only change at major releases. Resolves #915 and CRAFT-3734. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged an API adding sources.register and sources.unregister functions. Mandatory sources cannot be replaced or unregistered by applications, with changes reserved for major releases. Resolves #915 and CRAFT-3734. |
Update history
No update history recorded yet.
Related work
-
Duplicate Of:
craft-parts#915
(confidence 95%)
Issue #915 'add API for registering source types' was implemented by this PR and is now closed as fixed.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #915 add API for registering source types | craft-parts | closed | Implemented in craft-parts PR #927 (commit ef0f35d8), adding sources.register and sources.unregister APIs for custom source handlers. |