From 12a53557fb90d97bfac90475881cf821c5087b0b Mon Sep 17 00:00:00 2001 From: pdiakumis Date: Tue, 8 Oct 2024 10:24:13 +1100 Subject: [PATCH] use bump-my-version toml config --- .bumpversion.cfg | 23 ----------------------- .bumpversion.toml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 23 deletions(-) delete mode 100644 .bumpversion.cfg create mode 100644 .bumpversion.toml diff --git a/.bumpversion.cfg b/.bumpversion.cfg deleted file mode 100644 index 0a94645..0000000 --- a/.bumpversion.cfg +++ /dev/null @@ -1,23 +0,0 @@ -[bumpversion] -current_version = 0.15.0 -commit = True - -[bumpversion:file:dracarys/VERSION.txt] -search = {current_version} -replace = {new_version} - -[bumpversion:file:DESCRIPTION] -search = Version: {current_version} -replace = Version: {new_version} - -[bumpversion:file:.github/workflows/conda_deploy.yaml] -search = VERSION: '{current_version}' -replace = VERSION: '{new_version}' - -[bumpversion:file:conda/env/yaml/dracarys.yaml] -search = r-dracarys =={current_version} -replace = r-dracarys =={new_version} - -[bumpversion:file:conda/recipe/meta.yaml] -search = version: {current_version} -replace = version: {new_version} diff --git a/.bumpversion.toml b/.bumpversion.toml new file mode 100644 index 0000000..da4f4b0 --- /dev/null +++ b/.bumpversion.toml @@ -0,0 +1,45 @@ +[tool.bumpversion] +current_version = "0.15.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 = "dracarys/VERSION.txt" +search = "{current_version}" +replace = "{new_version}" + +[[tool.bumpversion.files]] +filename = "DESCRIPTION" +search = "Version: {current_version}" +replace = "Version: {new_version}" + +[[tool.bumpversion.files]] +filename = ".github/workflows/conda_deploy.yaml" +search = "VERSION: '{current_version}'" +replace = "VERSION: '{new_version}'" + +[[tool.bumpversion.files]] +filename = "conda/env/yaml/dracarys.yaml" +search = "r-dracarys =={current_version}" +replace = "r-dracarys =={new_version}" + +[[tool.bumpversion.files]] +filename = "conda/recipe/meta.yaml" +search = "version: {current_version}" +replace = "version: {new_version}"