c4urself / bump2version

Version-bump your software with a single command
https://pypi.python.org/pypi/bump2version
MIT License
1.06k stars 134 forks source link

Allow not updating the config file, even when it exists. #169

Open coderanger opened 4 years ago

coderanger commented 4 years ago

This allows working completely off the latest tag support for current_version so the config file doesn't change on bump.

coderanger commented 3 years ago

Any chance of this getting looked at?

florisla commented 3 years ago

Does this not bring the version in the config out of sync with the other version numbers?

coderanger commented 3 years ago

The goal was to better help with a tag-only workflow. So a config like:

[bumpversion]
commit = True
tag = True
no_update_config = True
parse = (?P<major>\d+)\.(?P<minor>\d+)
serialize = {major}.{minor}

With no current_version at all, and the version discovered only from the latest tag on the fly.

florisla commented 3 years ago

OK. Do you think it's possible to have no no_update_configat all option, and just assume this in case we can't find a current_version in the config or in the command-line arguments?