diff --git a/setup.cfg b/setup.cfg index 3f2f172..a7b46e6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,6 +2,10 @@ current_version = 0.2.1 commit = True tag = True +parse = (?P\d+)\.(?P\d+)\.(?P\d+)(?:\.dev(?P\d+))? +serialize = + {major}.{minor}.{patch}.dev{dev} + {major}.{minor}.{patch} [bumpversion:file:setup.py] search = version='{current_version}' @@ -11,6 +15,15 @@ replace = version='{new_version}' search = __version__ = '{current_version}' replace = __version__ = '{new_version}' +[bumpversion:part:dev] +values = + 0 + 1 + 2 + 3 + 4 +optional_value = 4 + [bdist_wheel] universal = 1