devops.config.config_release

Release configuration parsing module.

Functions

parse_release_config(raw_config)

Parse release configuration from a raw dictionary.

Classes

ReleaseConfig([branch, ci_workflows, ...])

Dataclass to hold release configuration values.

class devops.config.config_release.ReleaseConfig(branch='main', ci_workflows=<factory>, ci_timeout=1800, ci_interval=20)[source]

Bases: object

Dataclass to hold release configuration values.

Parameters:
branch: str = 'main'
ci_workflows: list[str]
ci_timeout: int = 1800
ci_interval: int = 20
to_toml_lines()[source]

Convert the ReleaseConfig to TOML lines.

Returns:

list[str] – The list of TOML lines representing the configuration.

Return type:

list[str]

devops.config.config_release.parse_release_config(raw_config)[source]

Parse release configuration from a raw dictionary.

Parameters:

raw_config (dict) – The raw configuration dictionary.

Returns:

ReleaseConfig – The parsed ReleaseConfig dataclass instance.

Raises:

ConfigError – If a CI timeout is negative or a CI interval is not positive.

Return type:

ReleaseConfig