* 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>
10 lines
223 B
Python
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)
|