bump2version
bump2version copied to clipboard
Part condition for files
Looking at the source I don't think this is possible, but I'll ask anyway. Is it possible to make trigger of search-and-replace conditional on the part being bumped? For example, I would not want a changelog to be updated for dev releases.
Maybe something like:
[bumpversion]
current_version = 0.1.0.dev0
parse = (?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+)(\.dev(?P<dev>\d+))?)?
[bumpversion:file:CHANGELOG.md]
ignore_parts =
dev
serialize = {major}.{minor}.{patch}