Files
home-cluster/bootstrap/scripts/py_version_check.py
T
Devin Buhl edbcf28139 feat: add python version check (#1176)
* feat: add python version check

Signed-off-by: Devin Buhl <devin@buhl.casa>

* chore: formatting

Signed-off-by: Devin Buhl <devin@buhl.casa>

* test python 3.10

* chore: taskfile formating

Signed-off-by: Devin Buhl <devin@buhl.casa>

* chore: python 3.11 is minimum

Signed-off-by: Devin Buhl <devin@buhl.casa>

---------

Signed-off-by: Devin Buhl <devin@buhl.casa>
2024-01-16 21:13:58 -05:00

10 lines
223 B
Python

import sys
required_version = (3, 11, 0)
if sys.version_info >= required_version:
print(f"Python version is greater than or equal to 3.11")
else:
print("Python version is below 3.11. Please upgrade.")
exit(1)