craft_parts.plugins.python_plugin module

The python plugin.

class craft_parts.plugins.python_plugin.PythonPlugin(*, properties, part_info)[source]

Bases: BasePythonPlugin

A plugin to build python parts.

Parameters:
properties_class

alias of PythonPluginProperties

class craft_parts.plugins.python_plugin.PythonPluginProperties(**data)[source]

Bases: PluginProperties

The part properties used by the python plugin.

Parameters:

data (Any)

model_config: ClassVar[ConfigDict] = {'alias_generator': <function PluginProperties.<lambda>>, 'extra': 'forbid', 'frozen': True, 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

plugin: Literal['python']
python_constraints: list[str]
python_packages: list[str]
python_requirements: list[str]
source: str