From 701cb9d5c386c79eb1a64cd3b79e96894e9cc8ff Mon Sep 17 00:00:00 2001 From: kuseler <47039588+kuseler@users.noreply.github.com> Date: Mon, 1 May 2023 11:53:13 +0200 Subject: [PATCH] changed version comparison mechanism in deploy.py The version comparison used to work by comparing the strings inside the tuple. This mechanism returned False, when it should have returned True for Python >= 3.10.x This behaviour is fixed by converting the strings to integers. --- deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.py b/deploy.py index 12ea903..0cf22bf 100755 --- a/deploy.py +++ b/deploy.py @@ -33,7 +33,7 @@ import datetime import enum -if platform.python_version_tuple()<('3','6','0'): +if tuple(int(i) for i in platform.python_version_tuple())<(3,6,0): print('requires python >= 3.6') quit(1)