[Python] Change development release postfix to dev (#6988)

This commit is contained in:
Jiaming Yuan 2021-05-27 16:06:51 +08:00 committed by GitHub
parent 29d6a5e2b8
commit ab6fd304c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
@xgboost_VERSION_MAJOR@.@xgboost_VERSION_MINOR@.@xgboost_VERSION_PATCH@-SNAPSHOT @xgboost_VERSION_MAJOR@.@xgboost_VERSION_MINOR@.@xgboost_VERSION_PATCH@-dev

View File

@ -1 +1 @@
1.5.0-SNAPSHOT 1.5.0-dev

View File

@ -129,7 +129,7 @@ eval[test] = {data_path}
msg = completed.stdout.decode('utf-8') msg = completed.stdout.decode('utf-8')
assert msg.find('XGBoost') != -1 assert msg.find('XGBoost') != -1
v = xgboost.__version__ v = xgboost.__version__
if v.find('SNAPSHOT') != -1: if v.find('dev') != -1:
assert msg.split(':')[1].strip() == v.split('-')[0] assert msg.split(':')[1].strip() == v.split('-')[0]
elif v.find('rc') != -1: elif v.find('rc') != -1:
assert msg.split(':')[1].strip() == v.split('rc')[0] assert msg.split(':')[1].strip() == v.split('rc')[0]