@@ -42,6 +42,15 @@ def parse_changelog():
42
42
return version , parse_date (datestr ), codename
43
43
44
44
45
+ def bump_version (version ):
46
+ try :
47
+ parts = map (int , version .split ('.' ))
48
+ except ValueError :
49
+ fail ('Current version is not numeric' )
50
+ parts [- 1 ] += 1
51
+ return '.' .join (map (str , parts ))
52
+
53
+
45
54
def parse_date (string ):
46
55
string = string .replace ('th ' , ' ' ).replace ('nd ' , ' ' ) \
47
56
.replace ('rd ' , ' ' ).replace ('st ' , ' ' )
@@ -114,6 +123,7 @@ def main():
114
123
fail ('Could not parse changelog' )
115
124
116
125
version , release_date , codename = rv
126
+ dev_version = bump_version (version ) + '-dev'
117
127
118
128
info ('Releasing %s (codename %s, release date %s)' ,
119
129
version , codename , release_date .strftime ('%d/%m/%Y' ))
@@ -132,6 +142,8 @@ def main():
132
142
make_git_commit ('Bump version number to %s' , version )
133
143
make_git_tag (version )
134
144
build_and_upload ()
145
+ set_init_version (dev_version )
146
+ set_setup_version (dev_version )
135
147
136
148
137
149
if __name__ == '__main__' :
0 commit comments