Config¶
The Config
object stores configuration values. The global topwrap.config.Config
object is used throughout the codebase to access the Topwrap configuration.
It is created by ConfigManager
that reads the config files as defined in topwrap.config.ConfigManager.DEFAULT_SEARCH_PATHS
, with local files taking precedence.
- class Config(force_interface_compliance: bool | None = False, repositories: ~typing.List[~topwrap.config.RepositoryEntry] | None = <factory>, kpm_build_location: str = '/github/home/.local/cache/topwrap/kpm_build')¶
Global topwrap configuration
- __init__(force_interface_compliance: bool | None = False, repositories: ~typing.List[~topwrap.config.RepositoryEntry] | None = <factory>, kpm_build_location: str = '/github/home/.local/cache/topwrap/kpm_build')¶
- Schema¶
alias of
Config
- class ConfigManager(search_paths: List[str] | None = None)¶
Manager used to load topwrap’s configuration from files.
The configuration files are loaded in a specific order, which also determines the priority of settings that are defined differently in the files. The list of default search paths is defined in the DEFAULT_SEARCH_PATH class variable. Configuration files that are specified earlier in the list have higher priority and can overwrite the settings from the files that follow. The default list of search paths can be changed by passing a different list to the ConfigManager constructor.
- __init__(search_paths: List[str] | None = None)¶