From 11ff280b8b90edf80fd9c02b1005a29a54f5ef9e Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Wed, 1 Feb 2023 15:24:24 +0100 Subject: [PATCH] Introducing bumpver --- pyproject.toml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 99162f8..1bd1295 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "reference_model" -version = "0.6.1" +version = "0.1.1" description = "Example VIPS model, showcasing functionality" readme = "README.md" authors = [{ name="Tor-Einar Skog", email="tor-einar.skog@nibio.no" }] @@ -24,3 +24,21 @@ dependencies = [ requires-python = ">=3.9" + +[tool.bumpver] +current_version = "0.1.1" +version_pattern = "MAJOR.MINOR.PATCH" +commit_message = "bump version {old_version} -> {new_version}" +commit = true +tag = true +push = true + +[tool.bumpver.file_patterns] +"pyproject.toml" = [ + 'current_version = "{version}"', + 'version = "{version}"', +] +"README.md" = [ + "{version}", +] + -- GitLab