peritus / bumpversion

Version-bump your software with a single command
https://pypi.python.org/pypi/bumpversion
MIT License
1.5k stars 148 forks source link

Add ability to specify a value of a part of version only #216

Closed alexandrnikitin closed 2 years ago

alexandrnikitin commented 2 years ago

Similar to --new_version=X.X.X, it can be --new_version-part=X parameter that tells the value to use as the part of the version. Other than specified part values will be taken from the current version.

# Say current_version=0.1.0
bump2version --new-version-part 3 patch
# will set 0.1.3 version value, where major and minor are taken from the current version

Right now I need to write bash script to handle that.

alexandrnikitin commented 2 years ago

Closing as duplicate of https://github.com/peritus/bumpversion/issues/50