Skip to content
Myr

Fixed release script

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 7253ca4 · Browse files · 1 file+4 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+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:scripts/make-release.py+4 added-2 removed
15 unmodified lines
16from datetime import datetime, date17from subprocess import Popen, PIPE181920_date_strip_re = re.compile(r'(?<=\d)(st|nd|rd|th)')212223def parse_changelog():24 with open('CHANGES') as f:25 lineiter = iter(f)26 for line in lineiter:
28 unmodified lines
55 return '.'.join(map(str, parts))565758def parse_date(string):56 string = string.replace('th ', ' ').replace('nd ', ' ') \57 .replace('rd ', ' ').replace('st ', ' ')59 string = _date_strip_re.sub('', string)60 return datetime.strptime(string, '%B %d %Y')616263def set_filename_version(filename, version_number, pattern):
90 unmodified lines