File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 given-names : " Hew"
99 orcid : " https://orcid.org/0000-0000-0000-0000"
1010title : " My Research Software"
11- version : 2.0.4
11+ version : 1.1.0
1212doi : 10.5281/zenodo.1234
1313date-released : 2017-12-18
1414url : " https://github.com/scientificcomputing/example-paper"
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ dependencies = [
1717[project .optional-dependencies ]
1818dev = [
1919 " pdbpp" ,
20+ " bump-my-version" ,
2021 " pre-commit" ,
2122]
2223docs = [
@@ -70,3 +71,28 @@ target-version = "py310"
7071[tool .ruff .mccabe ]
7172# Unlike Flake8, default to a complexity level of 10.
7273max-complexity = 10
74+
75+
76+ [tool .bumpversion ]
77+ allow_dirty = false
78+ commit = true
79+ message = " Bump version: {current_version} → {new_version}"
80+ tag = true
81+ sign_tags = false
82+ tag_name = " v{new_version}"
83+ tag_message = " Bump version: {current_version} → {new_version}"
84+ current_version = " 0.2.0"
85+ parse = " (?P<major>\\ d+)\\ .(?P<minor>\\ d+)\\ .(?P<patch>\\ d+)"
86+ serialize = [
87+ " {major}.{minor}.{patch}"
88+ ]
89+
90+ [[tool .bumpversion .files ]]
91+ filename = " pyproject.toml"
92+ search = ' version = "{current_version}"'
93+ replace = ' version = "{new_version}"'
94+
95+ [[tool .bumpversion .files ]]
96+ filename = " CITATION.cff"
97+ search = " version: {current_version}"
98+ replace = " version: {new_version}"
You can’t perform that action at this time.
0 commit comments