Remove deprecated APIs
Metadata
Current evaluation
Deprecated APIs were removed by merged PR #1078 (3334f13e), with managed-command cleanup completed separately in PR #1077 (e00540d1).
Resolution: closed resolved
Reason: PR #1078, titled "chore!: remove deprecated APIs", merged as commit 3334f13e and removed the APIs targeted by #1063. The related managed-command cleanup landed in PR #1077 as commit e00540d1.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### What needs to get done
Remove the following deprecated APIs. Downstream apps should require no changes, provided they've addressed the existing deprecations warnings:
- [Application.get_project()](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/application.py#L384), in favor of [ProjectService.get()](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/services/project.py#L607)
- [Application.register_plugins()](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/application.py#L570), in favor of [LifecycleService.get_plugin_group](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/services/lifecycle.py#L179)
- [Application._get_project_vars()](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/application.py#L718) in favor of [ProjectService.project_vars](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/services/project.py#L348)
- [Application._set_global_environment()](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/application.py#L736) in favor of [ProjectService.update_project_environment](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/services/project.py#L598)
- [AppCommand(config=None)](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/commands/base.py#L66) in favor of specifying a config dict
- [AppCommand.get_managed_cmd](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/commands/base.py#L116) (unused)
- [ProjectService._get_project_vars()](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/services/project.py#L329) in favor of [ProjectService.project_vars](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/services/project.py#L348)
- Registering services on [ServiceFactory instantiation](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/services/service_factory.py#L109) in favor of [ServiceFactor.register()](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/services/service_factory.py#L123)
- [ServiceFactory.set_kwargs()](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/services/service_factory.py#L163) in favor of [ServiceFactory.update_kwargs()](https://github.com/canonical/craft-application/blob/4b0e00ae40b338ad9f837ac18bf063afebd086a4/craft_application/services/service_factory.py#L180)
### Why it needs to get done
#1062 is going to release a new major version of Craft Application. This is a good opportunity to clean up the API.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Deprecated APIs were removed by merged PR #1078 (3334f13e), with managed-command cleanup completed separately in PR #1077 (e00540d1). | |
| stealth/space-bunny-alpha | — | closed resolved | Removed all listed deprecated APIs for the major-version cleanup in merged PR #1078, commit 3334f13e. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed after the deprecated APIs were removed as part of the craft-application major version cleanup. Superseded by the corresponding pull request that merged the changes. | |
| qwen/qwen3.6-35b-a3b | — | — | The listed deprecated APIs were removed as part of the craft-application cleanup for the major version release. The issue was closed after completion. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as completed. The deprecated APIs were removed as part of the major version release cleanup, with implementations migrated to the new service-based alternatives. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as resolved. The deprecated methods and legacy service registration patterns were removed as part of the planned API cleanup for the upcoming major release, streamlining the codebase and aligning with updated service interfaces. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as completed after the deprecated APIs were removed to prepare for the major version release. The cleanup replaced legacy methods with the new service-based architecture without requiring downstream changes. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-application#1078
(confidence 100%)
Merged cleanup PR for the deprecated APIs and reported as closing #1063.
-
Likely Fixed By:
canonical/craft-application#1077
(confidence 95%)
Removed the managed-command APIs, including the deprecated command helper, in commit e00540d1.
-
Related To:
canonical/craft-application#1062
(confidence 95%)
The issue cited #1062 as the major-version cleanup context.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5674 Remove deprecated commands | snapcraft | closed | Deprecated commands were removed in commit 3623601d7, with hidden replacements continuing to direct users to current commands. |