diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100755 index 655b14a..0000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,8 +0,0 @@ -[bumpversion] -current_version = 0.8.0 -commit = True -tag = False - -[bumpversion:file:DESCRIPTION] -search = Version: {current_version} -replace = Version: {new_version} diff --git a/.bumpversion.toml b/.bumpversion.toml new file mode 100644 index 0000000..fca0e5e --- /dev/null +++ b/.bumpversion.toml @@ -0,0 +1,26 @@ +[tool.bumpversion] +current_version = "0.8.0" +search = "{current_version}" +replace = "{new_version}" +message = "Bump version: {current_version} → {new_version}" +regex = false +ignore_missing_version = false +ignore_missing_files = false +commit = true +parse = """(?x) + (?P0|[1-9]\\d*)\\. + (?P0|[1-9]\\d*)\\. + (?P0|[1-9]\\d*) + (?:\\.(?P\\d+))? +""" + +serialize = [ + "{major}.{minor}.{patch}.{dev}", + "{major}.{minor}.{patch}", +] + +[[tool.bumpversion.files]] +filename = "DESCRIPTION" +search = "Version: {current_version}" +replace = "Version: {new_version}" +