Skip to content

Commit

Permalink
bump version to 1.14.1 (#385)
Browse files Browse the repository at this point in the history
* add test for changelog + version consistency
* bump version to 1.14.1
  • Loading branch information
mheilman committed Apr 22, 2020
1 parent 29eec56 commit f8a5366
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion civis/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.14.0"
__version__ = "1.14.1"
18 changes: 18 additions & 0 deletions civis/tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import os
import re

import civis


_THIS_DIR = os.path.dirname(os.path.realpath(__file__))
_REPO_DIR = os.path.dirname(os.path.dirname(_THIS_DIR))


def test_version_number_match_with_changelog():
"""__version__ and CHANGELOG.md match for the latest version number."""
changelog = open(os.path.join(_REPO_DIR, 'CHANGELOG.md')).read()
version_in_changelog = (
re.search(r'##\s+(\d+\.\d+\.\d+)', changelog).groups()[0])
assert civis.__version__ == version_in_changelog, (
'Make sure both __version__ and CHANGELOG are updated to match the '
'latest version number')

0 comments on commit f8a5366

Please sign in to comment.