Snap
¶
-
class
starlark_tugger.
Snap
¶ The
Snap
type represents an entiresnapcraft.yaml
file.See https://snapcraft.io/docs/snapcraft-yaml-reference for more documentation.
Instances of
Snap
expose attributes that map to the keys withinsnapcraft.yaml
files.Currently the attributes are write only.
Setting an attribute value to
None
has the side-effect of removing that attribute from the serializedsnapcraft.yaml
file.See https://snapcraft.io/docs/snapcraft-yaml-reference for detailed documentation about what each attribute means.
-
__init__
(name: str, version: str, summary: str, description: str)¶ Creates an instance initialized with required parameters. It accepts the following arguments:
name
version
summary
description
-
adopt_info
¶ (
Optional[str]
)
-
apps
¶ (
Optional[dict[str, SnapApp]]
)
-
architectures
¶ (
Optional[dict["build_on" | "run_on", str]]
)
-
assumes
¶ (
Optional[list[str]]
)
-
base
¶ (
Optional[str]
)
-
confinement
¶ (
Optional[str]
)
-
description
¶ (
str
)
-
grade
¶ (
Optional[str]
)
-
icon
¶ (
Optional[str]
)
-
license
¶ (
Optional[str]
)
-
name
¶ (
str
)
-
passthrough
¶ (
Optional[dict[str, str]]
)
-
parts
¶ (
Optional[dict[str, SnapPart]]
)
-
plugs
¶ (
Optional[dict[str, list[str]]]
)
-
slots
¶ (
Optional[dict[str, list[str]]]
)
-
summary
¶ (
str
)
-
title
¶ (
Optional[str]
)
-
type
¶ (
Optional[str]
)
-
version
¶ (
str
)
-
to_builder
() → SnapcraftBuilder¶ Converts this instance into a
SnapcraftBuilder
.This method accepts no arguments and is equivalent to calling
SnapcraftBuilder(self)
.
-