From 28057dddd6703c031ac269e1115263e7f1795af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Dausseur?= Date: Thu, 17 Apr 2025 14:40:34 +0200 Subject: [PATCH] Removed systemd dependency --- VERSION | 2 +- pyproject.toml | 4 +--- src/appengine/__init__.py | 5 ----- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/VERSION b/VERSION index 1d71ef9..e6adf3f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3 \ No newline at end of file +0.4 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 2b1adc6..c70d0c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,9 +15,7 @@ classifiers = [ "License :: OSI Approved :: CeCILL-C", "Operating System :: OS Independent", ] -dependencies = [ - "systemd-python", -] +dependencies = [ ] dynamic = ["version"] [project.urls] diff --git a/src/appengine/__init__.py b/src/appengine/__init__.py index 847abd1..c32b3cc 100644 --- a/src/appengine/__init__.py +++ b/src/appengine/__init__.py @@ -5,7 +5,6 @@ import sys import traceback from configparser import ConfigParser import logging -from systemd import journal import inspect from enum import Enum, auto import signal @@ -364,12 +363,8 @@ class AppEngine: if is_writeable: self.log.addHandler(logging.FileHandler(fname)) else: - self.log.addHandler(journal.JournalHandler()) self.log.error('No write permissions: "{}"'.format(fname)) - else: - self.log.addHandler(journal.JournalHandler()) - def exec(self, modpath: str = ""): self.cl = CommandsLoader(self.conf, self.log, modpath) self.cl.start()