craft_parts.plugins.poetry_plugin module¶
The poetry plugin.
- class craft_parts.plugins.poetry_plugin.PoetryPlugin(*, properties, part_info)¶
Bases:
BasePythonPluginA plugin to build python parts.
- Parameters:
properties (
PluginProperties)part_info (
PartInfo)
- get_build_environment()¶
Return a dictionary with the environment to use in the build step.
- get_build_packages()¶
Return a set of required packages to install in the build environment.
- properties_class¶
alias of
PoetryPluginProperties
- validator_class¶
alias of
PoetryPluginEnvironmentValidator
- class craft_parts.plugins.poetry_plugin.PoetryPluginEnvironmentValidator(*, part_name, env, properties)¶
Bases:
PluginEnvironmentValidatorCheck the execution environment for the Poetry plugin.
- Parameters:
part_name (
str) – The part whose build environment is being validated.env (
str) – A string containing the build step environment setup.properties (
PluginProperties)
- class craft_parts.plugins.poetry_plugin.PoetryPluginProperties(**data)¶
Bases:
PluginPropertiesThe part properties used by the poetry 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].
-
poetry_export_extra_args:
list[str]¶ The extra arguments to pass at the end of the Poetry export command.
-
poetry_with:
set[str]¶ The dependency groups to include.
By default, the main dependencies are included.