craft_platforms.snap

Snap-specific module for craft-platforms.

craft_platforms.snap.get_default_architectures(base)[source]

Get the default architectures for a given snap base.

Parameters:

base (str) – the snap base as a string (e.g. core24)

Returns:

Sequence[DebianArchitecture] – A sequence of of DebianArchitecture objects containing the default set of architectures to use if none are defined for this base.

craft_platforms.snap.get_distro_base_from_core_base(base)[source]

Get a DistroBase from a ‘coreXX’ base number.

Parameters:

base (str) – a string containing the base value

Returns:

DistroBase – A generic base object for the given snap base.

craft_platforms.snap.get_platforms_snap_build_plan(base, *, build_base=None, snap_type=None, platforms)[source]

Generate the build plan for a platforms-based snap.

Parameters:
Return type:

Sequence[BuildInfo]