Skip to content

Commit 2426bde

Browse files
committed
Add 'Bump My Version' config
1 parent 1c13efa commit 2426bde

File tree

3 files changed

+32
-23
lines changed

3 files changed

+32
-23
lines changed

.bumpversion.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[tool.bumpversion]
2+
current_version = "0.0.1"
3+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
4+
serialize = ["{major}.{minor}.{patch}"]
5+
search = "{current_version}"
6+
replace = "{new_version}"
7+
regex = false
8+
ignore_missing_version = false
9+
ignore_missing_files = false
10+
tag = false
11+
sign_tags = false
12+
tag_name = "v{new_version}"
13+
tag_message = "Bump version: {current_version} → {new_version}"
14+
allow_dirty = false
15+
commit = false
16+
message = "Bump version: {current_version} → {new_version}"
17+
moveable_tags = []
18+
commit_args = ""
19+
setup_hooks = []
20+
pre_commit_hooks = []
21+
post_commit_hooks = []
22+
23+
24+
[[tool.bumpversion.files]]
25+
filename = "my_project_template/__init__.py"
26+
search = "__version__ = \"{current_version}\""
27+
replace = "__version__ = \"{new_version}\""
28+
29+
[[tool.bumpversion.files]]
30+
filename = "pyproject.toml"
31+
search = "version = \"{current_version}\""
32+
replace = "version = \"{new_version}\""

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ minversion = "6.0"
6565
addopts = "-ra -q"
6666
testpaths = [
6767
"tests",
68-
"integration",
6968
]
7069

7170
[tool.ruff]

setup.cfg

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

0 commit comments

Comments
 (0)