Skip to content

Commit 87a4a74

Browse files
committed
Replace bump2version with bump-my-version
Signed-off-by: Fabricio Aguiar <[email protected]> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1 parent bfc3a0e commit 87a4a74

File tree

4 files changed

+53
-41
lines changed

4 files changed

+53
-41
lines changed

Makefile

+7-7
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,24 @@ fmt: ## Format the code using Darker
4545

4646
.PHONY: dev/bumpversion-patch
4747
dev/bumpversion-patch: ## 'bumpversion path' to go from 4.1.0 -> 4.1.1
48-
bump2version --verbose patch
48+
bump-my-version bump --verbose patch
4949

5050
.PHONY: bumpversion-minor
5151
dev/bumpversion-minor: ## 'bumpversion minor' to go from 4.1.1 -> 4.2.0
52-
bump2version --verbose minor
52+
bump-my-version bump --verbose minor
5353

5454
.PHONY: bumpversion-major
5555
dev/bumpversion-major: ## 'bumpversion major' to go from 4.2.9 -> 5.0.0
56-
bump2version --verbose major
56+
bump-my-version bump --verbose major
5757

5858
.PHONY: dev/bumpversion-build
5959
dev/bumpversion-build: ## 'bumpversion build' to go from 5.3.7.a1 -> 5.3.7.a2
60-
bump2version --verbose build
60+
bump-my-version bump --verbose build
6161

6262
# another 'bumpversion release' to from from 5.3.7.b1 -> 5.3.7
6363
.PHONY: dev/bumpversion-release
6464
dev/bumpversion-release: ## 'bumpversion release' to from 5.3.7.a1 -> 5.3.7.b1
65-
bump2version --verbose release
65+
bump-my-version bump --verbose release
6666

6767
# Documentation Management
6868

@@ -172,7 +172,7 @@ test/unit: ## Run unit tests
172172
@which tox || (echo "tox not found, installing it now" && pip install tox)
173173
tox -e py311
174174

175-
.PHONY: test/integration/standalone
175+
.PHONY: test/integration/standalone
176176
test/integration/standalone: ## Run integration tests
177177
# if pytest is not found raise a warning and install it
178178
@which pytest || (echo "pytest not found, installing it now" && pip install -r integration_requirements.txt)
@@ -187,4 +187,4 @@ test/integration/standalone: ## Run integration tests
187187
GALAXY_POLLING_MAX_ATTEMPTS=50 \
188188
pytest galaxy_ng/tests/integration \
189189
-p 'no:pulpcore' -p 'no:pulp_ansible' \
190-
-v -r sx --color=yes -m 'deployment_standalone or all'
190+
-v -r sx --color=yes -m 'deployment_standalone or all'

pyproject.toml

+45
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,48 @@ extend-ignore = [
170170

171171
[tool.ruff.lint.flake8-builtins]
172172
builtins-ignorelist = ["id"]
173+
174+
[tool.bumpversion]
175+
176+
current_version = "4.11.0dev"
177+
commit = false
178+
tag = false
179+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)((?P<release>[a-z]+))?((?P<build>\\d+))?"
180+
serialize = [
181+
"{major}.{minor}.{patch}{release}{build}",
182+
"{major}.{minor}.{patch}{release}",
183+
"{major}.{minor}.{patch}",
184+
]
185+
186+
[tool.bumpversion.parts.release]
187+
188+
optional_value = "stable"
189+
first_value = "dev"
190+
values = [
191+
"dev",
192+
"a",
193+
"b",
194+
"stable"
195+
]
196+
197+
[tool.bumpversion.parts.build]
198+
199+
first_value = 0
200+
201+
[[tool.bumpversion.files]]
202+
203+
filename = "./galaxy_ng/app/__init__.py"
204+
search = "version = \"{current_version}\""
205+
replace = "version = \"{new_version}\""
206+
207+
[[tool.bumpversion.files]]
208+
209+
filename = "./galaxy_ng/__init__.py"
210+
search = "__version__ = \"{current_version}\""
211+
replace = "__version__ = \"{new_version}\""
212+
213+
[[tool.bumpversion.files]]
214+
215+
filename = "./setup.py"
216+
search = "version = \"{current_version}\""
217+
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)