From 6e0f84f8d3a601401783de1ca4d2270d9d4c0621 Mon Sep 17 00:00:00 2001 From: Nicola Coretti Date: Wed, 13 Mar 2024 08:40:36 +0100 Subject: [PATCH] Fix version condition --- exasol/toolbox/nox/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exasol/toolbox/nox/tasks.py b/exasol/toolbox/nox/tasks.py index 6e03d3f4..5999f78f 100644 --- a/exasol/toolbox/nox/tasks.py +++ b/exasol/toolbox/nox/tasks.py @@ -375,7 +375,7 @@ def _parser(): args = parser.parse_args(session.posargs) new_version = args.version old_version = Version.from_poetry() - if not new_version >= old_version: + if not (new_version >= old_version): error_msg = ( f"Invalid version: the release version ({new_version}) " f"must be greater than or equal to the current version ({old_version})." @@ -435,7 +435,7 @@ def release(session: Session, python=False) -> None: Creates a new release and publishing it to GitHub and pypi. """ session.error("Not implemented yet") - # Precondition(s): + # Precondition(s): # Convert ci-cd.yml workflow to cd.yml workflow # Tests validation can be skipped. Branch protection together with # PR and merge validation shoudl be sufficient