more changelog sections

This commit is contained in:
Alex Grintsvayg 2017-04-25 16:57:01 -04:00
parent 092a018d63
commit adb42b2c75

View file

@ -24,6 +24,14 @@ TEMPLATE = """### Added
*
*
### Deprecated
*
*
### Removed
*
*
"""
@ -96,6 +104,7 @@ class Changelog(object):
output.append('### {}'.format(section))
for entry in sections[section]:
output.append(' * {}'.format(entry))
output.append("\n")
return output
def get_unreleased(self):
@ -106,7 +115,7 @@ class Changelog(object):
return
today = datetime.datetime.today()
header = '## [{}] - {}\n'.format(version, today.strftime('%Y-%m-%d'))
header = "## [{}] - {}\n\n".format(version, today.strftime('%Y-%m-%d'))
changelog_data = (
''.join(self.start) +