Skip to content

Commit

Permalink
Add version change management
Browse files Browse the repository at this point in the history
  • Loading branch information
lszeremeta committed Oct 20, 2020
1 parent 6c5f8b4 commit f1f122d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -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]
45 changes: 45 additions & 0 deletions tbump.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Uncomment this if your project is hosted on GitHub:
# github_url = https://github.com/<user or organization>/<project>/

[version]
current = "2.0.0"

# Example of a semver regexp.
# Make sure this matches current_version before
# using tbump
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\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"

0 comments on commit f1f122d

Please sign in to comment.