c4urself / bump2version

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

Not incrementing version on all lines inside setup.cfg #87

Open fastfailure opened 5 years ago

fastfailure commented 5 years ago

Having a setup.cfg with:

[metadata]
version = 0.1.0

[bumpversion]
current_version = 0.1.0

[bumpversion:file:setup.cfg]

With the command bump2version minor the result is:

[bumpversion]
current_version = 0.2.0

[metadata]
version = 0.1.0

[bumpversion:file:setup.cfg]

As you can see only current_version is updated, and the section [bumpversion] it's moved to te top of the file (this doesn't bother me too much)

bump2version version is 0.5.11

Thank you

albireox commented 5 years ago

Seeing the same behaviour with the exception that the [bumpversion] section being moved to the top of the file does bother me a bit 😅