c4urself / bump2version

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

Does not replace all occurencies #277

Open htgoebel opened 2 months ago

htgoebel commented 2 months ago

My project is using setup.cfg to hold the package version and the config for bumpversion. When running bumpversion, the package version is not changed.

expected

actual behavior

reproduce

mkdir xxx
cd xxx
cat > setup.cfg <<EOF
[bumpversion]
current_version = 0.3.0

[metadata]
name = some-package
version = 0.3.0

[bumpversion:file:setup.cfg]
EOF
bump2version minor
grep 'version =' setup.cfg

This will output

current_version = 0.4.0
version = 0.3.0

Note that only the entry for current_version was changed.