From c148f5da7fc7b58ff5c77e123ac2e3446f67276d Mon Sep 17 00:00:00 2001 From: Kamforka Date: Thu, 17 Oct 2024 19:25:23 +0200 Subject: [PATCH] #352 - Add deprecation wraning to the 1.x codebase (#353) --- CHANGELOG.md | 7 +++++++ setup.py | 2 +- thehive4py/__init__.py | 12 ++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e8e1308..72948b86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## [1.8.2](https://github.com/TheHive-Project/TheHive4py/tree/1.8.2) (2024-10-17) +[Full Changelog](https://github.com/TheHive-Project/TheHive4py/compare/1.8.1...1.8.2) + +**Deprecation:** + +Add an overall warning about the deprecation and retirement of thehive4py 1.x library + ## [1.8.1](https://github.com/TheHive-Project/TheHive4py/tree/1.8.1) (2021-01-13) [Full Changelog](https://github.com/TheHive-Project/TheHive4py/compare/1.8.0...1.8.1) diff --git a/setup.py b/setup.py index 81f3c06d..f27fb9a5 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name='thehive4py', - version='1.8.1', + version='1.8.2', description='Python API client for TheHive.', long_description=long_description, long_description_content_type="text/markdown", diff --git a/thehive4py/__init__.py b/thehive4py/__init__.py index e69de29b..eb15f375 100644 --- a/thehive4py/__init__.py +++ b/thehive4py/__init__.py @@ -0,0 +1,12 @@ +import warnings + +warnings.warn( + message=( + "thehive4py v1.x is not maintained anymore as TheHive v3 and v4 " + "are end of life. If you are using TheHive v5 please consider " + "switching to thehive4py v2.x " + "(https://github.com/TheHive-Project/TheHive4py)!" + ), + category=DeprecationWarning, + stacklevel=2, +)