This MR moves us from standard yaml configs to using dynaconf.
There are multiple neat features that could be implemented with Dynaconf, but for this MR I wanted to keep things as simple as possible, so I've done this with as few changes as I could.
The way the configurations are used is not changed, the only changes are:
config/__init__.py
config/S.yaml
, config/.secret.S.yaml
, ~/.config/pycalibration/S.yaml
, DYNACONF_S_*
env vars (where S
is the service name, e.g. webservice
or serve_overview
Checked that the configs, when accessed as a dictionary, are identical between the original and dynaconf version
@calibration there are a few other changes I need to do, main one being to make the command line arguments work again (currently passing a config path does nothing), but apart from that this is ready for review
Closes https://git.xfel.eu/gitlab/calibration/planning/issues/22