|
|
@ -26,7 +26,6 @@ def parse_changelog(): |
|
|
|
match = re.search('^Version\s+(.*)', line.strip()) |
|
|
|
match = re.search('^Version\s+(.*)', line.strip()) |
|
|
|
if match is None: |
|
|
|
if match is None: |
|
|
|
continue |
|
|
|
continue |
|
|
|
length = len(match.group(1)) |
|
|
|
|
|
|
|
version = match.group(1).strip() |
|
|
|
version = match.group(1).strip() |
|
|
|
if lineiter.next().count('-') != len(match.group(0)): |
|
|
|
if lineiter.next().count('-') != len(match.group(0)): |
|
|
|
continue |
|
|
|
continue |
|
|
@ -60,6 +59,7 @@ def parse_date(string): |
|
|
|
|
|
|
|
|
|
|
|
def set_filename_version(filename, version_number, pattern): |
|
|
|
def set_filename_version(filename, version_number, pattern): |
|
|
|
changed = [] |
|
|
|
changed = [] |
|
|
|
|
|
|
|
|
|
|
|
def inject_version(match): |
|
|
|
def inject_version(match): |
|
|
|
before, old, after = match.groups() |
|
|
|
before, old, after = match.groups() |
|
|
|
changed.append(True) |
|
|
|
changed.append(True) |
|
|
@ -133,7 +133,8 @@ def main(): |
|
|
|
if version in tags: |
|
|
|
if version in tags: |
|
|
|
fail('Version "%s" is already tagged', version) |
|
|
|
fail('Version "%s" is already tagged', version) |
|
|
|
if release_date.date() != date.today(): |
|
|
|
if release_date.date() != date.today(): |
|
|
|
fail('Release date is not today (%s != %s)') |
|
|
|
fail('Release date is not today (%s != %s)', |
|
|
|
|
|
|
|
release_date.date(), date.today()) |
|
|
|
|
|
|
|
|
|
|
|
if not git_is_clean(): |
|
|
|
if not git_is_clean(): |
|
|
|
fail('You have uncommitted changes in git') |
|
|
|
fail('You have uncommitted changes in git') |
|
|
|