Skip to content

Commit

Permalink
Update changelog for release
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccafair committed Jun 3, 2020
1 parent 34ca252 commit 3bb5d44
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
`Unreleased <https://github.com/pace-neutrons/Euphonic/compare/v0.2.2...HEAD>`_
`Unreleased <https://github.com/pace-neutrons/Euphonic/compare/v0.3.0...HEAD>`_
----------

`v0.3.0 <https://github.com/pace-neutrons/Euphonic/compare/v0.2.2...v0.3.0>`_
----------

- Breaking Changes:
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include c/*.h
include c/*.c
include versioneer.py
include euphonic/_version.py
9 changes: 6 additions & 3 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ def main():
def release_github(test=True):
with open('CHANGELOG.rst') as f:
changelog = f.read()
setup_ver = 'v' + __version__
euphonic_ver = 'v' + __version__
changelog_ver = re.findall('\n`(v\d+\.\d+\.\S+)\s', changelog)[0]
if setup_ver != changelog_ver:
raise Exception('setup.py/changelog.rst version mismatch!')
if euphonic_ver != changelog_ver:
raise Exception((
f'euphonic.__version__/changelog.rst version mismatch! '
f'euphonic.__version__: {euphonic_ver} changelog.rst: '
f'{changelog_ver}'))
desc = re.search('`v\d+\.\d+\.\S+.*?^-+\n(.*?)^`v', changelog,
re.DOTALL | re.MULTILINE).groups()[0].strip()

Expand Down

0 comments on commit 3bb5d44

Please sign in to comment.