From 5030efd65208dbbb0f0404a407bea5cec4e52ea7 Mon Sep 17 00:00:00 2001 From: ceci3 Date: Fri, 25 Nov 2022 14:06:35 +0800 Subject: [PATCH] change version in setup (#1555) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f47a4752..bc284280 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,7 @@ if 'develop' in subprocess.getoutput('git branch'): else: tag_list = subprocess.getoutput('git tag').split('\n') if 'rc' in tag_list[-1]: - if tag_list[-1].split('-')[0] == tag_list[-2]: + if tag_list[-1].split('rc')[0] in tag_list[-2]: slim_version = tag_list[-2] else: slim_version = tag_list[-1] -- GitLab