diff --git a/README.md b/README.md index 970ef6e..88d89e1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -**IMPORTANT NOTE**: This library will require **at least** python 3.8 starting the 1st of January 2022. If you have legacy versions of python, please use the latest PyMISP version that will be released in December 2021, and consider updating your system(s). Anything released within the last 2 years will do, starting with Ubuntu 20.04. +**IMPORTANT NOTE**: This library will require **at least** Python 3.10 starting the 1st of January 2023. If you have legacy versions of python, please use the latest PyMISP version that will be released in December 2022, and consider updating your system(s). Anything released within the last 2 years will do, starting with Ubuntu 22.04. # PyMISP - Python Library to access MISP @@ -33,7 +33,7 @@ And there are a few optional dependencies: * email: to generate MISP Email objects * brotli: to use the brotli compression when interacting with a MISP instance -Example: +Example: ``` pip3 install pymisp[virustotal,email] diff --git a/pymisp/__init__.py b/pymisp/__init__.py index 6a77103..680e06b 100644 --- a/pymisp/__init__.py +++ b/pymisp/__init__.py @@ -6,11 +6,11 @@ import warnings logger = logging.getLogger(__name__) -def warning_2022(): - if sys.version_info < (3, 8): +def warning_2024(): + if sys.version_info < (3, 10): warnings.warn(""" -As our baseline system is the latest Ubuntu LTS, and Ubuntu LTS 20.04 has Python 3.8 available, -we will officially deprecate python versions below 3.8 on January 1st 2022. +As our baseline system is the latest Ubuntu LTS, and Ubuntu LTS 22.04 has Python 3.10 available, +we will officially deprecate python versions below 3.10 on January 1st 2024. **Please update your codebase.**""", DeprecationWarning, stacklevel=3) @@ -25,7 +25,7 @@ Response (if any): try: - warning_2022() + warning_2024() from .exceptions import (PyMISPError, NewEventError, NewAttributeError, MissingDependency, NoURL, NoKey, # noqa InvalidMISPObject, UnknownMISPObjectTemplate, PyMISPInvalidFormat, MISPServerError, PyMISPNotImplementedYet, PyMISPUnexpectedResponse, PyMISPEmptyResponse) from .abstract import AbstractMISP, MISPEncode, pymisp_json_default, MISPTag, Distribution, ThreatLevel, Analysis # noqa