Skip to content

Commit

Permalink
set packaging regex at the top
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Pawłowski <[email protected]>
  • Loading branch information
pawloch00 committed Jan 14, 2025
1 parent eb99442 commit 4c861a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/xpk/core/kueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
LOCAL_QUEUE_NAME = 'multislice-queue'
WAIT_FOR_KUEUE_TIMEOUT = '5m'

packaging.version.VERSION_PATTERN = r'^v\d+\.\d+\.\d+$'

cluster_set_crd_yaml = """apiVersion: kueue.x-k8s.io/v1beta1
kind: ResourceFlavor
metadata:
Expand Down Expand Up @@ -210,7 +212,7 @@ def install_kueue_on_cluster(args) -> int:
Returns:
0 if successful and 1 otherwise.
"""
packaging.version.VERSION_PATTERN = r'^v\d+\.\d+\.\d+$'

err_code, kueue_version_installed = get_kueue_version(args)
if err_code == 0:
if Version(kueue_version_installed) <= Version('v0.8.1') and Version(
Expand Down

0 comments on commit 4c861a3

Please sign in to comment.