SnapPart

class starlark_tugger.SnapPart

The SnapPart type represents a part entry in a snapcraft.yaml file. Specifically, this type represents the values of parts.<part-name> keys.

See https://snapcraft.io/docs/snapcraft-yaml-reference for more documentation.

Instances of SnapPart expose attributes that map to the keys within parts.<part-name> entries in snapcraft.yaml configuration files.

Currently the attributes are write only.

Setting an attribute value to None has the side-effect of removing that attribute from the serialized snapcraft.yaml file.

See https://snapcraft.io/docs/snapcraft-yaml-reference for detailed documentation about what each attribute means.

__init__() SnapPart

SnapPart() creates an empty instance. It accepts no arguments.

after

(Optional[list[str]])

build_attributes

(Optional[list[str]])

build_environment

(Optional[list[dict[str, str]]])

build_packages

(Optional[list[str]])

build_snaps

(Optional[list[str]])

filesets

(Optional[dict[str, list[str]]])

organize

(Optional[dict[str, str]])

override_build

(Optional[str])

override_prime

(Optional[str])

override_pull

(Optional[str])

override_stage

(Optional[str])

parse_info

(Optional[str])

plugin

(Optional[str])

prime

(Optional[list[str]])

source_branch

(Optional[str])

source_checksum

(Optional[str])

source_commit

(Optional[str])

source_depth

(Optional[int])

source_subdir

(Optional[str])

source_tag

(Optional[str])

source_type

(Optional[str])

source

(Optional[str])

stage_packages

(Optional[list[str]])

stage_snaps

(Optional[list[str]])

stage

(Optional[list[str]])