Skip to content
Myr

Added version bumping

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 3d14654 · Browse files · 1 file+12 added−0 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+12 added−0 removed

  • other:+12 added−0 removed

1 file+12 added−0 removed

modified:scripts/make-release.py+12 added
40 unmodified lines
41 datestr, codename = match.groups()42 return version, parse_date(datestr), codename434445def bump_version(version):46 try:47 parts = map(int, version.split('.'))48 except ValueError:49 fail('Current version is not numeric')50 parts[-1] += 151 return '.'.join(map(str, parts))525354def parse_date(string):55 string = string.replace('th ', ' ').replace('nd ', ' ') \56 .replace('rd ', ' ').replace('st ', ' ')57 return datetime.strptime(string, '%B %d %Y')
64 unmodified lines
122 if rv is None:123 fail('Could not parse changelog')124125 version, release_date, codename = rv126 dev_version = bump_version(version) + '-dev'127128 info('Releasing %s (codename %s, release date %s)',129 version, codename, release_date.strftime('%d/%m/%Y'))130 tags = get_git_tags()
10 unmodified lines
141 set_setup_version(version)142 make_git_commit('Bump version number to %s', version)143 make_git_tag(version)144 build_and_upload()145 set_init_version(dev_version)146 set_setup_version(dev_version)147148149if __name__ == '__main__':150 main()