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) · 912 Bytes
/
Copy pathcommon.py
File metadata and controls
22 lines (18 loc) · 912 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]) >= 8
):
message = (
f"This library requires Python 3.8 at minimum. Python versions 3.7 and below "
f"no longer receive security updates since reaching end of life and of support "
f"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)