From f3f5b78c1c17d3502745c254da09a2b1c6b3e6f2 Mon Sep 17 00:00:00 2001 From: "Maurice (mausy5043) Hendrix" Date: Sun, 21 Jul 2024 09:14:32 +0200 Subject: [PATCH] deprecating my own GracefulKiller in favor of pypi's --- pyproject.toml | 2 +- src/mausy5043_common/libsignals.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a98730c..55de303 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "hatchling.build" [project] name = "mausy5043-common" -version = "1.6.7" # latest production version +version = "1.6.8" # latest production version # version = "1.5.4" # latest test version description = "Common python functions" readme = "README.md" diff --git a/src/mausy5043_common/libsignals.py b/src/mausy5043_common/libsignals.py index 4659df4..4ff3f1c 100755 --- a/src/mausy5043_common/libsignals.py +++ b/src/mausy5043_common/libsignals.py @@ -5,7 +5,8 @@ # TODO: migrate to https://pypi.org/project/GracefulKiller/ import signal - +import warnings +warnings.warn("This module is deprecated. Use https://pypi.org/project/GracefulKiller/ instead.") class GracefulKiller: # pylint: disable=R0903 """A class to intercept kill signals."""