Skip to content

Commit

Permalink
Add bumpversion #24
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludee committed Dec 6, 2024
1 parent 4959e10 commit 577d8e3
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# SPDX-FileCopyrightText: : 2024 Ludwig Hülk <https://github.com/Ludee> © Reiner Lemoine Institut
# SPDX-License-Identifier: MIT

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

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

[[tool.bumpversion.files]]
filename = "CITATION.cff"
13 changes: 13 additions & 0 deletions docs/development/release/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,16 @@ The software release has four main goals:

The [RELEASE_PROCEDURE.md](https://github.com/rl-institut/super-repository/blob/production/RELEASE_PROCEDURE.md)
contain detailed instructions to do a release.

## Automated Versioning with Bumpversion

**Bumpversion** is a tool for automated version management in software projects. <br>
It ensures consistent version updates across files and documentation. <br>
By specifying a part to increment (major, minor, or patch), Bumpversion updates
the version number and creates a Git commit or tag automatically.
This streamlines release workflows, reduces human error, and keeps project versioning synchronized.

Install package:
💻 `pip install --upgrade bumpversion`

For configuration, create a `.bumpversion.toml` file to specify versioning rules and affected files.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# SPDX-FileCopyrightText: 2023 Jonas Huber <https://github.com/jh-rli> © Reiner Lemoine Institut
# SPDX-License-Identifier: MIT

bumpversion
mkdocs
mkdocs-material
mkdocstrings
Expand Down

0 comments on commit 577d8e3

Please sign in to comment.