From f1f122dd92884bbac83f5b3487cd99cc5d0232d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Szeremeta?= Date: Tue, 20 Oct 2020 16:45:06 +0200 Subject: [PATCH] Add version change management --- .bumpversion.cfg | 10 ++++++++++ tbump.toml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .bumpversion.cfg create mode 100644 tbump.toml diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 0000000..cd6195e --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,10 @@ +[bumpversion] +current_version = 2.0.0 +commit = True +tag = True + +[bumpversion:file:setup.py] + +[bumpversion:file:molstruct/__init__.py] + +[bumpversion:file:tbump.toml] diff --git a/tbump.toml b/tbump.toml new file mode 100644 index 0000000..ee48442 --- /dev/null +++ b/tbump.toml @@ -0,0 +1,45 @@ +# Uncomment this if your project is hosted on GitHub: +# github_url = https://github.com/// + +[version] +current = "2.0.0" + +# Example of a semver regexp. +# Make sure this matches current_version before +# using tbump +regex = ''' + (?P\d+) + \. + (?P\d+) + \. + (?P\d+) + ''' + +[git] +message_template = "Bump to {new_version}" +tag_template = "v{new_version}" + +# For each file to patch, add a [[file]] config section containing +# the path of the file, relative to the tbump.toml location. +[[file]] +src = "setup.py" + +[[file]] +src = "molstruct/__init__.py" + +[[file]] +src = ".bumpversion.cfg" + +# You can specify a list of commands to +# run after the files have been patched +# and before the git commit is made + +# [[before_commit]] +# name = "check changelog" +# cmd = "grep -q {new_version} Changelog.rst" + +# Or run some commands after the git tag and the branch +# have been pushed: +# [[after_push]] +# name = "publish" +# cmd = "./publish.sh"