qgis_deployment_toolbelt.jobs.job_environment_variables module¶
Tools to manage the environment setup (variables, etc.)
Author: Julien Moura (https://github.com/guts)
- class qgis_deployment_toolbelt.jobs.job_environment_variables.EnvironmentVariableOptions(*, action: Literal['add', 'remove'], name: Annotated[str, _PydanticGeneralMetadata(pattern='^[^=]+$')], scope: Literal['system', 'user'] = 'user', value: bool | int | str | list | None = None, value_type: Literal['bool', 'path', 'str', 'url'] = 'str', qgis_ini_use: bool = False)¶
Bases:
JobOptionsOptions of one environment variable managed by the manage-env-vars job: the
withkey of the job is a list of them.- _abc_impl = <_abc._abc_data object>¶
- model_config = {'extra': 'forbid', 'frozen': True, 'strict': True, 'validate_default': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class qgis_deployment_toolbelt.jobs.job_environment_variables.JobEnvironmentVariables(options: list[dict])¶
Bases:
GenericJobClass to manage the environment variables of QGIS installation.
- OPTIONS¶
alias of
EnvironmentVariableOptions
- __init__(options: list[dict]) None¶
Instantiate the class.
- Parameters:
options (list[dict]) – list set in the
withkey of the scenario step, one item per environment variable to set or remove, see EnvironmentVariableOptions- Raises:
TypeError – if options is not a list
JobOptionMissingError – if a variable to add has no value
- _abc_impl = <_abc._abc_data object>¶
- options: list[EnvironmentVariableOptions]¶