peritus / bumpversion

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

Strange replacement: __version__ = "__version__ = '0.2.0'" #194

Closed JulienPalard closed 6 years ago

JulienPalard commented 6 years ago

In powrap, I'm getting a strange replacement after a bumpversion minor in __init__.py:

-__version__ = "0.1.1"
+__version__ = "__version__ = '0.2.0'"

And in setup.py:

-    version="0.1.1",
+    version="version='0.2.0'",
JulienPalard commented 6 years ago

Just noticed I'm having this in my setup.cfg:

[bumpversion:file:setup.py]
search = version='{current_version}'
replace = version='{new_version}'

[bumpversion:file:powrap/__init__.py]
search = __version__ = '{current_version}'
replace = __version__ = '{new_version}'

It may be due to single quotes / double quotes.

JulienPalard commented 6 years ago

OK don't mind me, I just forgot about this file (probably even auto-generated by the cookiecutter I used for this old project).