未验证 提交 df941a3d 编写于 作者: I iamWHTWD 提交者: GitHub

Update setup.py (#1391)

上级 8049d28f
...@@ -21,7 +21,17 @@ import platform ...@@ -21,7 +21,17 @@ import platform
from setuptools import find_packages from setuptools import find_packages
from setuptools import setup from setuptools import setup
slim_version = "2.3.3" if 'develop' in subprocess.getoutput('git branch'):
slim_version = '0.0.0_dev'
else:
tag_list = subprocess.getoutput('git tag').split('\n')
if 'rc' in tag_list[-1]:
if tag_list[-1].split('-')[0] == tag_list[-2]:
slim_version = tag_list[-2]
else:
slim_version = tag_list[-1]
else:
slim_version = tag_list[-1]
with open('./requirements.txt') as f: with open('./requirements.txt') as f:
setup_requires = f.read().splitlines() setup_requires = f.read().splitlines()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册