diff options
author | Daniel Schadt <kingdread@gmx.de> | 2025-08-11 22:29:15 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2025-08-11 22:29:15 +0200 |
commit | 818e75efb20127d29462370573f282a1c4549f53 (patch) | |
tree | c5d1370cab1877b1336b2670e02c0c7bca436654 | |
parent | 460cf81169f9a9d022857923944c6a894a8971b1 (diff) | |
download | fietsboek-818e75efb20127d29462370573f282a1c4549f53.tar.gz fietsboek-818e75efb20127d29462370573f282a1c4549f53.tar.bz2 fietsboek-818e75efb20127d29462370573f282a1c4549f53.zip |
remove hittekaart.bin setting
This is the first time we're removing a setting (I think)!
-rw-r--r-- | fietsboek/config.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fietsboek/config.py b/fietsboek/config.py index beea820..2d25773 100644 --- a/fietsboek/config.py +++ b/fietsboek/config.py @@ -64,6 +64,10 @@ KNOWN_TILE_LAYERS = [ "hiking", ] +WARNINGS = { + "hittekaart.bin": "hittekaart is now used via a Python module. Enable extra `hittekaart` to install the dependency.", +} + class ValidationError(Exception): """Exception for malformed configurations. @@ -203,9 +207,6 @@ class Config(BaseModel): tile_layers: list[TileLayerConfig] = [] """Tile layers.""" - hittekaart_bin: str = Field("", alias="hittekaart.bin") - """Path to the hittekaart binary.""" - hittekaart_autogenerate: PyramidList = Field([], alias="hittekaart.autogenerate") """Overlay maps to automatically generate.""" @@ -350,6 +351,9 @@ def parse(config: dict) -> Config: for key in keys: LOGGER.warning("Unknown configuration key: %r", key) + if warning := WARNINGS.get(key): + LOGGER.warning(warning) + return parsed_config |