From 60e2d2e1b4ca4dc48e51ba3e01d27e4ecf7864ff Mon Sep 17 00:00:00 2001 From: SWHL Date: Sun, 8 Jan 2023 17:21:23 +0800 Subject: [PATCH] Fix bug: increase one automatically of the version number. --- python/rapid_structure/setup_layout.py | 2 +- python/rapid_structure/setup_table.py | 2 +- python/setup_onnxruntime.py | 2 +- python/setup_openvino.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/rapid_structure/setup_layout.py b/python/rapid_structure/setup_layout.py index b464989..5ed0d94 100644 --- a/python/rapid_structure/setup_layout.py +++ b/python/rapid_structure/setup_layout.py @@ -13,7 +13,7 @@ def get_latest_version(package_name): output = output.stdout.decode('utf-8') if output: output = list(filter(lambda x: len(x) > 0, output.split('\n'))) - return output[0].split(' ')[-1][1:-1] + return output[0].split(' ')[-1][1:-2] return None diff --git a/python/rapid_structure/setup_table.py b/python/rapid_structure/setup_table.py index 5e7758e..bf1b9c5 100644 --- a/python/rapid_structure/setup_table.py +++ b/python/rapid_structure/setup_table.py @@ -13,7 +13,7 @@ def get_latest_version(package_name): output = output.stdout.decode('utf-8') if output: output = list(filter(lambda x: len(x) > 0, output.split('\n'))) - return output[0].split(' ')[-1][1:-1] + return output[0].split(' ')[-1][1:-2] return None diff --git a/python/setup_onnxruntime.py b/python/setup_onnxruntime.py index d3eb044..3c6adea 100644 --- a/python/setup_onnxruntime.py +++ b/python/setup_onnxruntime.py @@ -13,7 +13,7 @@ def get_latest_version(package_name): output = output.stdout.decode('utf-8') if output: output = list(filter(lambda x: len(x) > 0, output.split('\n'))) - latest_version = output[0].split(' ')[-1][1:-1] + latest_version = output[0].split(' ')[-1][1:-2] return latest_version return None diff --git a/python/setup_openvino.py b/python/setup_openvino.py index 5d8350b..244be8d 100644 --- a/python/setup_openvino.py +++ b/python/setup_openvino.py @@ -12,7 +12,7 @@ def get_latest_version(package_name): output = output.stdout.decode('utf-8') if output: output = list(filter(lambda x: len(x) > 0, output.split('\n'))) - latest_version = output[0].split(' ')[-1][1:-1] + latest_version = output[0].split(' ')[-1][1:-2] return latest_version return None