Skip to content

Commit

Permalink
#352 - Add deprecation wraning to the 1.x codebase (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamforka authored Oct 17, 2024
1 parent 8e3ecc7 commit c148f5d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions thehive4py/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
)

0 comments on commit c148f5d

Please sign in to comment.