Skip to content

Commit 5898925

Browse files
authored
Merge pull request #9 from scientificcomputing/version-bumper
Add bump-my-version config
2 parents f6c9a42 + 4f9c955 commit 5898925

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

pyproject.toml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
55
[project]
66
name = "my-paper"
77
classifiers = ["Private :: Do Not Upload"]
8-
version = "0"
8+
version = "0.2.0"
99
dependencies = [
1010
"h5py==3.9.0", # Pin to same version that is allready installed in the docker image
1111
"cardiac-geometries>=0.11.0",
@@ -19,6 +19,7 @@ dependencies = [
1919
dev = [
2020
"pdbpp",
2121
"pre-commit",
22+
"bump-my-version",
2223
]
2324
docs = [
2425
"jupyter-book",
@@ -71,3 +72,24 @@ target-version = "py310"
7172
[tool.ruff.mccabe]
7273
# Unlike Flake8, default to a complexity level of 10.
7374
max-complexity = 10
75+
76+
77+
[tool.bumpversion]
78+
allow_dirty = false
79+
commit = true
80+
message = "Bump version: {current_version} → {new_version}"
81+
tag = true
82+
sign_tags = false
83+
tag_name = "v{new_version}"
84+
tag_message = "Bump version: {current_version} → {new_version}"
85+
current_version = "0.2.0"
86+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
87+
serialize = [
88+
"{major}.{minor}.{patch}"
89+
]
90+
search = "version = {current_version}"
91+
replace = "version = {new_version}"
92+
93+
94+
[[tool.bumpversion.files]]
95+
filename = "pyproject.toml"

0 commit comments

Comments
 (0)