chroe: add bump2version

This commit is contained in:
zweien 2021-07-12 15:37:03 +08:00
parent f665364ef0
commit 84cbcce755
3 changed files with 26 additions and 2 deletions

24
.bumpversion.cfg Normal file
View File

@ -0,0 +1,24 @@
[bumpversion]
current_version = 0.0.1-rc1
commit = True
tag = True
tag_name = v{new_version}
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)([-](?P<release>(dev|rc))+(?P<build>\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]

View File

@ -22,7 +22,7 @@ copyright = '2021, IDRL'
author = 'IDRL' author = 'IDRL'
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
release = '0.0.1-alpha' release = '0.0.1-rc1'
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------

View File

@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup( setuptools.setup(
name="idrlnet", # Replace with your own username name="idrlnet", # Replace with your own username
version="0.0.1", version="0.0.1-rc1",
author="Intelligent Design & Robust Learning lab", author="Intelligent Design & Robust Learning lab",
author_email="weipeng@deepinfar.cn", author_email="weipeng@deepinfar.cn",
description="IDRLnet", description="IDRLnet",