Skip to content

Commit

Permalink
use bump-my-version toml config
Browse files Browse the repository at this point in the history
  • Loading branch information
pdiakumis committed Oct 7, 2024
1 parent 2417f40 commit 12a5355
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .bumpversion.cfg

This file was deleted.

45 changes: 45 additions & 0 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -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)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:\\.(?P<dev>\\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}"

0 comments on commit 12a5355

Please sign in to comment.