Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not replace all occurencies #277

Open
htgoebel opened this issue Apr 30, 2024 · 0 comments
Open

Does not replace all occurencies #277

htgoebel opened this issue Apr 30, 2024 · 0 comments

Comments

@htgoebel
Copy link

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

  • bumpversion's current_version in setup.cfg is bumped.
  • The package metadata version in setup.cfg is bumped, too.

actual behavior

  • bumpversion's current_version in setup.cfg is bumped.
  • The package metadata version in setup.cfg is not bumped.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant