File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,17 @@ def finalize_options(self):
4949 pass
5050
5151 def run (self ):
52- from subprocess import check_output
53- tag = check_output (['git' , 'describe' , 'HEAD' ]).strip ()
52+ from subprocess import check_output , CalledProcessError
53+ try :
54+ tag = check_output (['git' , 'describe' , 'HEAD' ]).strip ().decode ('utf8' )
55+ except CalledProcessError :
56+ tag = ''
5457 version = read_version ()
5558 if tag != version :
5659 print ('Missing %s tag on release' % version )
5760 raise SystemExit (1 )
5861
59- current_branch = check_output (['git' , 'rev-parse' , '--abbrev-ref' , 'HEAD' ]).strip ()
62+ current_branch = check_output (['git' , 'rev-parse' , '--abbrev-ref' , 'HEAD' ]).strip (). decode ( 'utf8' )
6063 if current_branch != 'master' :
6164 print ('Only release from master' )
6265 raise SystemExit (1 )
You can’t perform that action at this time.
0 commit comments