tbump.toml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # https://github.com/TankerHQ/tbump
  2. # https://hackernoon.com/lets-automate-version-number-updates-not-a91q3x7n
  3. # Uncomment this if your project is hosted on GitHub:
  4. github_url = "https://github.com/biojppm/rapidyaml/"
  5. [version]
  6. current = "0.4.0"
  7. # Example of a semver regexp.
  8. # Make sure this matches current_version before
  9. # using tbump
  10. regex = '''
  11. (?P<major>\d+)
  12. \.
  13. (?P<minor>\d+)
  14. \.
  15. (?P<patch>\d+)
  16. (-(?P<release>[a-z]+)(?P<build>\d+))?
  17. '''
  18. [git]
  19. message_template = "chg: pkg: version {new_version}"
  20. tag_template = "v{new_version}"
  21. # For each file to patch, add a [[file]] config section containing
  22. # the path of the file, relative to the tbump.toml location.
  23. [[file]]
  24. src = "CMakeLists.txt"
  25. search = "c4_project\\(VERSION {current_version}"
  26. [[file]]
  27. src = "test/test_install/CMakeLists.txt"
  28. search = "c4_project\\(VERSION {current_version}"
  29. [[file]]
  30. src = "test/test_singleheader/CMakeLists.txt"
  31. search = "c4_project\\(VERSION {current_version}"
  32. # You can specify a list of commands to
  33. # run after the files have been patched
  34. # and before the git commit is made
  35. # [[before_commit]]
  36. # name = "check changelog"
  37. # cmd = "grep -q {new_version} Changelog.rst"
  38. # TODO: add version header, containing commit hash
  39. # TODO: consolidate changelog from the git logs:
  40. # https://pypi.org/project/gitchangelog/
  41. # https://blogs.sap.com/2018/06/22/generating-release-notes-from-git-commit-messages-using-basic-shell-commands-gitgrep/
  42. # https://medium.com/better-programming/create-your-own-changelog-generator-with-git-aefda291ea93
  43. # Or run some commands after the git tag and the branch
  44. # have been pushed:
  45. # [[after_push]]
  46. # name = "publish"
  47. # cmd = "./publish.sh"