nicer changelog

This commit is contained in:
Alex Grintsvayg 2017-04-25 16:51:30 -04:00
parent 8495e62329
commit c7161ba1ac
2 changed files with 24 additions and 1 deletions

View file

@ -8,6 +8,7 @@ can and probably will change functionality and break backwards compatability
at anytime. at anytime.
## [Unreleased] ## [Unreleased]
### Added ### Added
* *
* *
@ -20,7 +21,17 @@ at anytime.
* *
* *
### Deprecated
*
*
### Removed
*
*
## [0.10.0] - 2017-04-25 ## [0.10.0] - 2017-04-25
### Added ### Added
* Add `lbryschema_version` to response from `version` * Add `lbryschema_version` to response from `version`
* Added call to `get_address_balance` when `address` conditional returns true * Added call to `get_address_balance` when `address` conditional returns true
@ -34,14 +45,17 @@ at anytime.
* fixed signing of Windows binaries * fixed signing of Windows binaries
* fixed a few pylint warnings * fixed a few pylint warnings
## [0.10.0rc2] - 2017-04-17 ## [0.10.0rc2] - 2017-04-17
### Changed ### Changed
* Return full `lbry_id` and `installation_id` from `status` * Return full `lbry_id` and `installation_id` from `status`
## [0.10.0rc1] - 2017-04-13 ## [0.10.0rc1] - 2017-04-13
### Fixed ### Fixed
* Fix uncaught exception in `stream_cost_estimate` * Fix uncaught exception in `stream_cost_estimate`
## [0.9.2rc22] - 2017-04-12 ## [0.9.2rc22] - 2017-04-12
### Added ### Added
* Add `claim_id` parameter to `claim_show` * Add `claim_id` parameter to `claim_show`

View file

@ -24,6 +24,14 @@ TEMPLATE = """### Added
* *
* *
### Deprecated
*
*
### Removed
*
*
""" """
@ -96,6 +104,7 @@ class Changelog(object):
output.append('### {}'.format(section)) output.append('### {}'.format(section))
for entry in sections[section]: for entry in sections[section]:
output.append(' * {}'.format(entry)) output.append(' * {}'.format(entry))
output.append("\n")
return output return output
def get_unreleased(self): def get_unreleased(self):
@ -106,7 +115,7 @@ class Changelog(object):
return return
today = datetime.datetime.today() 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 = ( changelog_data = (
''.join(self.start) + ''.join(self.start) +