From b76db83c365c44183edc20a4ae65aee96bc764b1 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Fri, 7 Jul 2023 18:28:55 +0200 Subject: [PATCH] Add tbump config --- pyproject.toml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d256f58..d675e0d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,3 +56,32 @@ omit = [ "tests/**", "integration-tests/**", ] + + +# tbump is used to simplify and standardize the release process when updating +# the version, making a git commit and tag, and pushing changes. +# +# ref: https://github.com/your-tools/tbump#readme +# +[tool.tbump] +github_url = "https://github.com/jupyterhub/the-littlest-jupyterhub" + +[tool.tbump.version] +current = "1.0.0.dev0" +regex = ''' + (?P\d+) + \. + (?P\d+) + \. + (?P\d+) + (?P
((a|b|rc)\d+)|)
+    \.?
+    (?P(?<=\.)dev\d*|)
+'''
+
+[tool.tbump.git]
+message_template = "Bump to {new_version}"
+tag_template = "{new_version}"
+
+[[tool.tbump.file]]
+src = "setup.py"