← Back to issue list

craft_parts: export PartsError in base package (CRAFT-456)

View original Github issue

Metadata

Project
craft-parts
Number
#107
Type
pull request
State
merged
Author
cjp256
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #107 (commit 23fbe96c) exposed PartsError from the craft_parts base package, allowing applications to catch it without importing the internal errors module.

Resolution: closed resolved

Reason: The approved one-line export change was merged into main by merge commit e02e04c1, adding PartsError to the public craft_parts package API.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Once applications want to catch this exception, it should probably be exposed from the package rather than require reference to the module. Signed-off-by: Chris Patterson <chris.patterson@canonical.com> - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #107 (commit 23fbe96c) exposed PartsError from the craft_parts base package, allowing applications to catch it without importing the internal errors module.
stealth/space-bunny-alpha — closed resolved PR #107 (CRAFT-456) merged as commit 23fbe96c, adding `from .errors import PartsError` and "PartsError" to __all__ in craft_parts/__init__.py so callers can catch it from the package.
stealth/space-bunny-alpha — closed resolved Merged PR #107, exposing PartsError from craft_parts so callers can catch it without importing the internal errors module.
qwen/qwen3.6-35b-a3b — — Merged after two approvals and passing CI. Exports PartsError from the craft_parts base package via a single-line change, enabling applications to catch the exception directly without internal module references.
qwen3.6-35b-a3b-mtp-q6 — — Merged PR exports PartsError from the craft_parts base package, allowing applications to catch the exception directly without importing internal modules. Resolves CRAFT-456.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#751 Support craft_parts.PartsError as a complex object charmcraft closed The craft-application migration superseded Charmcraft-specific PartsError-to-CraftError conversion; migration cleanup later landed in canonical/charmcraft#1704.
73%
#3636 parts: integrate craft-parts (CRAFT-765) snapcraft merged Merged as ae8467056, integrating craft-parts for project-part validation and parts lifecycle processing (CRAFT-765).
71%
#1334 refactor(parts): move craft-parts related things into their own package charmcraft merged Merged PR #1334, moving craft-parts code from charmcraft/parts.py into a dedicated package with plugins and lifecycle logic split into separate modules.
70%