Skip to content

Commit 32c675d

Browse files
authored
build: migrate to bump-my-version tool (#199)
This commit modifies the project's build to use bump-my-version instead of bump2version when creating a new release of the project. Signed-off-by: Phil Adams <[email protected]>
1 parent ce24626 commit 32c675d

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 15 deletions
This file was deleted.

.bumpversion.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[tool.bumpversion]
2+
current_version = "3.20.3"
3+
commit = true
4+
5+
[[tool.bumpversion.files]]
6+
filename = "ibm_cloud_sdk_core/version.py"
7+
search = "__version__ = '{current_version}'"
8+
replace = "__version__ = '{new_version}'"
9+
10+
[[tool.bumpversion.files]]
11+
filename = "setup.py"
12+
search = "__version__ = '{current_version}'"
13+
replace = "__version__ = '{new_version}'"
14+
15+
[[tool.bumpversion.files]]
16+
filename = "README.md"
17+
search = "{current_version}"
18+
replace = "{new_version}"

.releaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[
99
"@semantic-release/exec",
1010
{
11-
"prepareCmd": "bumpversion --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version} patch"
11+
"prepareCmd": "bump-my-version bump --allow-dirty --current-version ${lastRelease.version} --new-version ${nextRelease.version}"
1212
}
1313
],
1414
[

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ script:
2525

2626
before_deploy:
2727
- pip3 install --editable .
28-
- pip3 install bumpversion
28+
- pip3 install bump-my-version
2929
- nvm install 18
3030
- npm install
3131
- node --version

0 commit comments

Comments
 (0)