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>
This commit is contained in:
1 parent
35177471b5
commit
edbcf28139
10 files changed
+117
-147
No files matched your search
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
Reference in new issue
Block a user