Skip to content

Commit fcea42f

Browse files
committed
Replace bump2version with bump-my-version (#2472)
Signed-off-by: Fabricio Aguiar <[email protected]> (cherry picked from commit 91c47c4) Signed-off-by: Fabricio Aguiar <[email protected]> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1 parent bd754b8 commit fcea42f

File tree

4 files changed

+50
-39
lines changed

4 files changed

+50
-39
lines changed

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -184,24 +184,24 @@ api/list-permissions: ## List all permissions - CONTAINS=str
184184

185185
# 'bumpversion path' to go from 4.1.0 -> 4.1.1
186186
dev/bumpversion-patch:
187-
bump2version --verbose patch
187+
bump-my-version bump --verbose patch
188188

189189
# 'bumpversion minor' to go from 4.1.1 -> 4.2.0
190190
dev/bumpversion-minor:
191-
bump2version --verbose minor
191+
bump-my-version bump --verbose minor
192192

193193
# 'bumpversion major' to go from 4.2.9 -> 5.0.0
194194
dev/bumpversion-major:
195-
bump2version --verbose major
195+
bump-my-version bump --verbose major
196196

197197
# 'bumpversion build' to go from 5.3.7.a1 -> 5.3.7.a2
198198
dev/bumpversion-build:
199-
bump2version --verbose build
199+
bump-my-version bump --verbose build
200200

201201
# 'bumpversion release' to from 5.3.7.a1 -> 5.3.7.b1
202202
# another 'bumpversion release' to from from 5.3.7.b1 -> 5.3.7
203203
dev/bumpversion-release:
204-
bump2version --verbose release
204+
bump-my-version bump --verbose release
205205

206206
docs/install:
207207
@pip install -r docs_requirements.txt

pyproject.toml

+44
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,47 @@ ignore = [
7777
"profiles/**",
7878
"galaxy_ng/_vendor/**",
7979
]
80+
81+
[tool.bumpversion]
82+
83+
current_version = "4.9.3"
84+
commit = false
85+
tag = false
86+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)((?P<release>[a-z]+))?((?P<build>\\d+))?"
87+
serialize = [
88+
"{major}.{minor}.{patch}{release}{build}",
89+
"{major}.{minor}.{patch}{release}",
90+
"{major}.{minor}.{patch}",
91+
]
92+
93+
[tool.bumpversion.parts.release]
94+
95+
optional_value = "stable"
96+
first_value = "a"
97+
values = [
98+
"a",
99+
"b",
100+
"stable"
101+
]
102+
103+
[tool.bumpversion.parts.build]
104+
105+
first_value = 0
106+
107+
[[tool.bumpversion.files]]
108+
109+
filename = "./galaxy_ng/app/__init__.py"
110+
search = "version = \"{current_version}\""
111+
replace = "version = \"{new_version}\""
112+
113+
[[tool.bumpversion.files]]
114+
115+
filename = "./galaxy_ng/__init__.py"
116+
search = "__version__ = \"{current_version}\""
117+
replace = "__version__ = \"{new_version}\""
118+
119+
[[tool.bumpversion.files]]
120+
121+
filename = "./setup.py"
122+
search = "version = \"{current_version}\""
123+
replace = "version = \"{new_version}\""

requirements/requirements.shipit.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
bump2version
1+
bump-my-version
22
wheel

setup.cfg

-33
This file was deleted.

0 commit comments

Comments
 (0)