Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add funcs part_has_slices and part_has_chisel_as_build_snap #914

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

linostar
Copy link
Contributor

@linostar linostar commented Nov 28, 2024

  • Have you signed the CLA?

This is add two utility functions part_has_slices and part_has_chisel_as_build_snap that takes a dictionary (representing a part's data) as an argument and determine whether the part data has slices and whether it has chisel in build-snaps, respectively.

Those functions are needed in Rockcraft, where we deal with part data dictionaries often, and converting those dictionaries to PartSpec objects will require extra code that has been already implemented internally in craft-parts.

Related work: #904

@linostar linostar changed the title feat: add util functions part_has_slices and part_has_chisel_as_build_snap feat: add functions part_has_slices and part_has_chisel_as_build_snap Nov 28, 2024
@linostar linostar changed the title feat: add functions part_has_slices and part_has_chisel_as_build_snap feat: add funcs part_has_slices and part_has_chisel_as_build_snap Nov 28, 2024
@linostar linostar marked this pull request as ready for review November 29, 2024 16:03
@linostar
Copy link
Contributor Author

@mr-cal Ready for review.

@tigarmo tigarmo requested review from mr-cal and tigarmo and removed request for tigarmo November 29, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants