zestsoftware / zest.releaser

Python software releasing made easy and repeatable
https://zestreleaser.readthedocs.io
GNU General Public License v2.0
198 stars 62 forks source link

bumpversion does not play nice with towncrier #310

Closed mauritsvanrees closed 5 years ago

mauritsvanrees commented 5 years ago

When a package uses towncrier to update the changelog file, the last version header will be something like 5.2.0 (2018-11-09). When you call bumpversion --feature it will change this to 5.3.0 (2018-11-09). That is what happened to me in the commit in i18ndude

Easiest fix would seem to be: let bumpversion only touch the changelog file when there is an (unreleased) header in it. Changing the version in setup.py is enough here.

mauritsvanrees commented 5 years ago

All fixed by now.