Skip to content

Commit

Permalink
Correct bumpversion search/replace for CHANGELOG
Browse files Browse the repository at this point in the history
The # in Markdown gets treated as a comment so there is no way to
do multiline search/replace. As a result only a single line with
the version number is replaced. The # Latest headline will have to
be added manually on the next set of changes.

See peritus/bumpversion#199
  • Loading branch information
StuartMacKay committed Oct 23, 2023
1 parent 2f09234 commit 4c88d54
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"

[bumpversion:file:CHANGELOG.md]
search =
# Latest
replace =
# Latest

# {new_version} ({now:%%Y-%%m-%%d})
search = ## Latest
replace = ## {new_version} ({now:%%Y-%%m-%%d})

[bumpversion:file:setup.py]
search = version="{current_version}"
Expand Down

0 comments on commit 4c88d54

Please sign in to comment.