forked from meraki/dashboard-api-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.py
More file actions
22 lines (18 loc) · 981 Bytes
/
Copy pathcommon.py
File metadata and controls
22 lines (18 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import platform
from meraki.exceptions import *
def check_python_version():
# Check minimum Python version
if not (
int(platform.python_version_tuple()[0]) == 3
and int(platform.python_version_tuple()[1]) >= 10
):
message = (
f"This library requires Python 3.10 at minimum. Python versions 3.8 and below are EOL as of October 2024"
f" or earlier. End of life Python versions no longer receive security updates since reaching end of life"
f" and of support per the Python maintainers. Your interpreter version is: {platform.python_version()}. "
f"Please consult the readme at your convenience: https://github.com/meraki/dashboard-api-python "
f"Additional details: "
f"python_version_tuple()[0] = {platform.python_version_tuple()[0]}; "
f"python_version_tuple()[1] = {platform.python_version_tuple()[1]} "
)
raise PythonVersionError(message)