Skip to content

Commit

Permalink
Allow bumpversion to find version (#184)
Browse files Browse the repository at this point in the history
* Allow bumpversion to find version

* Add newsfragment
  • Loading branch information
kclowes authored Aug 4, 2022
1 parent f1ee532 commit 891ec7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ current_version = 0.5.8
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<stage>[^.]*)\.(?P<devnum>\d+))?
serialize =
serialize =
{major}.{minor}.{patch}-{stage}.{devnum}
{major}.{minor}.{patch}

[bumpversion:part:stage]
optional_value = stable
first_value = stable
values =
values =
alpha
beta
stable

[bumpversion:part:devnum]

[bumpversion:file:setup.py]
search = version='{current_version}',
replace = version='{new_version}',
search = version="{current_version}",
replace = version="{new_version}",
1 change: 1 addition & 0 deletions newsfragments/184.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow bumpversion to find version

0 comments on commit 891ec7c

Please sign in to comment.