Skip to content

Commit

Permalink
Merge pull request #9 from scientificcomputing/version-bumper
Browse files Browse the repository at this point in the history
Add bump-my-version config
  • Loading branch information
finsberg authored Nov 13, 2023
2 parents f6c9a42 + 4f9c955 commit 5898925
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "hatchling.build"
[project]
name = "my-paper"
classifiers = ["Private :: Do Not Upload"]
version = "0"
version = "0.2.0"
dependencies = [
"h5py==3.9.0", # Pin to same version that is allready installed in the docker image
"cardiac-geometries>=0.11.0",
Expand All @@ -19,6 +19,7 @@ dependencies = [
dev = [
"pdbpp",
"pre-commit",
"bump-my-version",
]
docs = [
"jupyter-book",
Expand Down Expand Up @@ -71,3 +72,24 @@ target-version = "py310"
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10


[tool.bumpversion]
allow_dirty = false
commit = true
message = "Bump version: {current_version} → {new_version}"
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
current_version = "0.2.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = [
"{major}.{minor}.{patch}"
]
search = "version = {current_version}"
replace = "version = {new_version}"


[[tool.bumpversion.files]]
filename = "pyproject.toml"

0 comments on commit 5898925

Please sign in to comment.