Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation warning for python 3.8 #361

Open
Kamforka opened this issue Oct 24, 2024 · 0 comments
Open

Add deprecation warning for python 3.8 #361

Kamforka opened this issue Oct 24, 2024 · 0 comments

Comments

@Kamforka
Copy link
Collaborator

Python 3.8 is already end of life, include a deprecation warning in the main module about dropping support for it in the near future.

Something like:

import sys
import warnings

from thehive4py.client import TheHiveApi

if sys.version_info < (3, 9):
    warnings.warn(
        message=(
            "The `thehive4py` library will soon drop support for Python "
            "versions below 3.9, as they have reached their end of life. "
            "Please upgrade to a newer version as soon as possible."
        ),
        category=DeprecationWarning,
        stacklevel=2,
    )
@Kamforka Kamforka self-assigned this Oct 24, 2024
@Kamforka Kamforka added this to the 2.0.0b7 milestone Oct 24, 2024
@Kamforka Kamforka modified the milestones: 2.0.0b7, 2.0.0b8 Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant