File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,19 @@ def fix_version(v):
18
18
vlst = vlst [:- 1 ] + vlst [- 1 ].split ('-' )
19
19
20
20
if len (vlst ) <= 3 :
21
- v = '.' join ('vlst' )
21
+ v = '.' . join ('vlst' )
22
22
vtup = tuple (int (x ) for x in vlst )
23
23
else :
24
24
# The first 3 numbers are always integer
25
25
vtup = tuple (int (x ) for x in vlst [:3 ])
26
26
# The 4th one may not be, so trap it
27
27
try :
28
28
vtup = vtup + (int (vlst [3 ]),)
29
- # Zero pad the post version #, so it sorts lexicographically
30
- vlst [3 ] = 'post%03d' % int (vlst [3 ])
29
+ # Zero pad the dev version #, so it sorts lexicographically
30
+ vlst [3 ] = 'dev%03d' % int (vlst [3 ])
31
+ # increment the third version number, so
32
+ # the '.dev##' versioning convention works
33
+ vlst [2 ] = str (int (vlst [2 ]) + 1 )
31
34
except ValueError :
32
35
pass
33
36
ver = '.' .join (vlst [:4 ]) + '+' + '.' .join (vlst [4 :])
Original file line number Diff line number Diff line change @@ -122,8 +122,11 @@ def get_outputs(self):
122
122
if len (vlst ) > 3 :
123
123
# The 4th one may not be, so trap it
124
124
try :
125
- # Zero pad the post version #, so it sorts lexicographically
126
- vlst [3 ] = 'post%03d' % int (vlst [3 ])
125
+ # Zero pad the dev version #, so it sorts lexicographically
126
+ vlst [3 ] = 'dev%03d' % int (vlst [3 ])
127
+ # increment the third version number, so
128
+ # the '.dev##' versioning convention works
129
+ vlst [2 ] = str (int (vlst [2 ]) + 1 )
127
130
except ValueError :
128
131
pass
129
132
ver = '.' .join (vlst [:4 ]) + '+' + '.' .join (vlst [4 :])
You can’t perform that action at this time.
0 commit comments