From 84cbcce755cfd0a82a32e55bcff07292d6b1f8ef Mon Sep 17 00:00:00 2001 From: zweien <278954153@qq.com> Date: Mon, 12 Jul 2021 15:37:03 +0800 Subject: [PATCH] chroe: add bump2version --- .bumpversion.cfg | 24 ++++++++++++++++++++++++ docs/conf.py | 2 +- setup.py | 2 +- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .bumpversion.cfg diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 0000000..a2c4beb --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,24 @@ +[bumpversion] +current_version = 0.0.1-rc1 +commit = True +tag = True +tag_name = v{new_version} +parse = (?P\d+)\.(?P\d+)\.(?P\d+)([-](?P(dev|rc))+(?P\d+))? +serialize = + {major}.{minor}.{patch}-{release}{build} + {major}.{minor}.{patch} + +[bumpversion:part:release] +first_value = dev +optional_value = ga +values = + dev + rc + ga + +[bumpversion:part:build] +first_value = 1 + +[bumpversion:file:setup.py] + +[bumpversion:file:docs/conf.py] diff --git a/docs/conf.py b/docs/conf.py index ddd4336..2f1f833 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,7 @@ copyright = '2021, IDRL' author = 'IDRL' # The full version, including alpha/beta/rc tags -release = '0.0.1-alpha' +release = '0.0.1-rc1' # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index faba612..4878d9b 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with open("README.md", "r") as fh: setuptools.setup( name="idrlnet", # Replace with your own username - version="0.0.1", + version="0.0.1-rc1", author="Intelligent Design & Robust Learning lab", author_email="weipeng@deepinfar.cn", description="IDRLnet",