Skip to content

Commit c6135d9

Browse files
authored
Merge pull request #11 from scientificcomputing/version-bumper-citation-cff
Add bump-my-version config for CITATION.cff as well
2 parents 18cc25c + 42bb363 commit c6135d9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors:
88
given-names: "Hew"
99
orcid: "https://orcid.org/0000-0000-0000-0000"
1010
title: "My Research Software"
11-
version: 2.0.4
11+
version: 0.2.0
1212
doi: 10.5281/zenodo.1234
1313
date-released: 2017-12-18
1414
url: "https://github.com/scientificcomputing/example-paper"

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,14 @@ parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
8686
serialize = [
8787
"{major}.{minor}.{patch}"
8888
]
89-
search = "version = {current_version}"
90-
replace = "version = {new_version}"
9189

9290

9391
[[tool.bumpversion.files]]
9492
filename = "pyproject.toml"
93+
search = 'version = "{current_version}"'
94+
replace = 'version = "{new_version}"'
95+
96+
[[tool.bumpversion.files]]
97+
filename = "CITATION.cff"
98+
search = "version: {current_version}"
99+
replace = "version: {new_version}"

0 commit comments

Comments
 (0)