1 class CmdRelease(object):
4 self.help = "release a project using its next version number (changing wscript and tagging)"
7 if args.minor is False and args.micro is False:
8 raise Error('you must specify --minor or --micro')
10 target = SourceTarget()
11 tree = globals.trees.get(args.project, args.checkout, target)
13 version = tree.version
20 set_version_in_wscript(version)
21 append_version_to_changelog(version)
22 append_version_to_debian_changelog(version)
24 command('git commit -a -m "Bump version"')
25 command('git tag -m "v%s" v%s' % (version, version))
28 set_version_in_wscript(version)
29 command('git commit -a -m "Bump version"')
31 command('git push --tags')