more work

This commit is contained in:
Anthony Scopatz 2016-06-11 17:21:01 -04:00
parent b406cfb8a6
commit 8e4ab188a7
2 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,6 @@
================
====================
Xonsh Change Log
================
====================
v0.3.4
====================

View file

@ -53,12 +53,18 @@ def merge_news():
def version_update(ver):
"""Updates version strings in relevant files."""
fnews = ('Xonsh Change Log\n'
'====================\n\n'
'v{0}'
'====================\n\n'
'{1}')
news = merge_news()
news = fnews.format(ver, news)
pnfs = [
('__version__\s*=.*', "__version__ = '{0}'".format(ver),
['xonsh', '__init__.py']),
('version:\s*', 'version: {0}.{{build}}'.format(ver), ['.appveyor.yml']),
('\*\*\w+:\*\* None', '', ['CHANGELOG.rst']),
('Current Developments', NEW_DEV + '\n\nv' + ver, ['CHANGELOG.rst']),
('Xonsh Change Log', news, ['CHANGELOG.rst']),
]
for p, n, f in pnfs:
replace_in_file(p, n, os.path.join(*f))