Skip to content

Commit

Permalink
Add bumpversion configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jan 25, 2019
1 parent 6d6fa51 commit 760255f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[bumpversion]
current_version = 0.0.1-dev
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(?:-(?P<release>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+(?P<build>[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?
serialize =
{major}.{minor}.{patch}-{release}+{build}
{major}.{minor}.{patch}+{build}
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = production
first_value = dev
values =
dev
production

[bumpverion:part:build]
values = [0-9A-Za-z-]+

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

[bumpversion:file:docs/source/conf.py]
search = release = '{current_version}'
replace = release = '{new_version}'

[bumpversion:file:src/nrl/constants.py]
search = VERSION = '{current_version}'
replace = VERSION = '{new_version}'

5 changes: 5 additions & 0 deletions src/nrl/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-

"""Constants for NRL."""

VERSION = '0.0.1-dev'

0 comments on commit 760255f

Please # to comment.