Skip to content
Myr

Fix when release date is not today

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Also, some fixes for PyFlakes Original commit by @dongweiming at a05c4038706f3a95776adea376bc664c0714b426

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent d4fec14 · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:scripts/make-release.py+3 added-2 removed
24 unmodified lines
25 for line in lineiter:26 match = re.search('^Version\s+(.*)', line.strip())27 if match is None:28 continue29 length = len(match.group(1))29 version = match.group(1).strip()30 if lineiter.next().count('-') != len(match.group(0)):31 continue32 while 1:
25 unmodified lines
585960def set_filename_version(filename, version_number, pattern):61 changed = []6263 def inject_version(match):64 before, old, after = match.groups()65 changed.append(True)66 return before + version_number + after
65 unmodified lines
132133 if version in tags:134 fail('Version "%s" is already tagged', version)135 if release_date.date() != date.today():136 fail('Release date is not today (%s != %s)')136 fail('Release date is not today (%s != %s)',137 release_date.date(), date.today())138139 if not git_is_clean():140 fail('You have uncommitted changes in git')141
11 unmodified lines