mirror of https://github.com/MISP/PyMISP
chg: Bump warning to inform user that python 3.10 wil be required in 12 months
parent
7ddd7bdc7c
commit
d7f28aa4cb
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue