Closed mfcabrera closed 5 years ago
Apparently this is impossible to do with standard ConfigParser. https://stackoverflow.com/questions/21476554/update-ini-file-without-removing-comments
So either another library is used or move the configuration fromsetup.cfg
to .bumpversion.cfg
same problem here. thanks @mfcabrera, for showing me the workaround:
move the configuration from setup.cfg
to .bumpversion.cfg
Closing as it looks like a workaround has been found. Thanks @mfcabrera.
FYI: this package can update .INI files and preserve comments: pyscaffold/configupdater: 🌴 Parser like ConfigParser but for updating configuration files
if using
setup.cfg
and setting up the version configuration, once I usebump2version part
the version gets updated but all the comments are removed.Is this the expected behaviour?