~cedric/guardian

3b26bae374ac848009d6016f7ffc01c0e83175ea — Cédric Bonhomme 2 months ago b4e3002 v0.2.1
released version 0.2.1
3 files changed, 17 insertions(+), 10 deletions(-)

M CHANGELOG.md
M guardian/conf.py
M pyproject.toml
M CHANGELOG.md => CHANGELOG.md +7 -0
@@ 1,6 1,13 @@
Guardian Changelog
==================

## 0.2.1 (2021-07-04)

### New

- fix loading of the configuration file.


## 0.2.0 (2021-06-27)

### New

M guardian/conf.py => guardian/conf.py +9 -9
@@ 9,15 9,15 @@ config = configparser.SafeConfigParser()
try:
    config.read("guardian/config/conf.cfg")
except:
    config.read("guardian/config/conf.cfg.sample")
    pass #config.read("guardian/config/conf.cfg.sample")


IRC_CHANNEL = config.get("irc", "channel")
IRKER_HOST = config.get("irc", "host")
IRKER_PORT = int(config.get("irc", "port"))
IRC_CHANNEL = config.get("irc", "channel", fallback="irc://irc.libera.chat/#testGuardian")
IRKER_HOST = config.get("irc", "host", fallback="localhost")
IRKER_PORT = int(config.get("irc", "port", fallback=6659))

MAIL_FROM = config.get("email", "mail_from")
MAIL_TO = [config.get("email", "mail_to")]
SMTP_SERVER = config.get("email", "smtp")
USERNAME = config.get("email", "username")
PASSWORD = config.get("email", "password")
MAIL_FROM = config.get("email", "mail_from", fallback="guardian@localhost")
MAIL_TO = [config.get("email", "mail_to", fallback="")]
SMTP_SERVER = config.get("email", "smtp", fallback="")
USERNAME = config.get("email", "username", fallback="")
PASSWORD = config.get("email", "password", fallback="")

M pyproject.toml => pyproject.toml +1 -1
@@ 1,6 1,6 @@
[tool.poetry]
name = "guardian"
version = "0.2.0"
version = "0.2.1"
description = "Monitor the status of a set of services."
authors = ["Cédric Bonhomme <cedric@cedricbonhomme.org>"]
license = "AGPL-3.0-or-later"