-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathbump
More file actions
executable file
·17 lines (14 loc) · 808 Bytes
/
bump
File metadata and controls
executable file
·17 lines (14 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import bump
parser = argparse.ArgumentParser(description="Bump the (short) bundle version, then tag and commit the change")
group = parser.add_mutually_exclusive_group(required=True)
group.add_argument('--build', dest='bump', action='store_const', const=bump.build,
help="Bump the build number (e.g. 31501 -> 31502, 3.15 -> 3.15)")
group.add_argument('--minor', dest='bump', action='store_const', const=bump.minor,
help="Bump the minor number (e.g. 31501 -> 31600, 3.15 -> 3.16)")
group.add_argument('--major', dest='bump', action='store_const', const=bump.major,
help="Bump the major number (e.g. 31501 -> 40000, 3.15 -> 4.0)")
args = parser.parse_args()
bump.bump_version(args.bump)