File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,13 @@ def tag_and_generate_changelog(new_version_num):
6565
6666
6767def upload_sdist (new_version_num ):
68- call_bash_script ('twine upload "dist/Appium-Python-Client-{}.tar.gz"' .format (new_version_num ))
68+ push_file = 'dist/Appium-Python-Client-{}.tar.gz' .format (new_version_num )
69+ try :
70+ call_bash_script ('twine upload "{}"' .format (push_file ))
71+ except Exception as e :
72+ print ('Failed to upload {} to pypi. '
73+ 'Please fix the original error and push it again later. Original error: {}' .format (
74+ push_file , e ))
6975
7076
7177def push_changes_to_master (new_version_num ):
@@ -81,7 +87,7 @@ def ensure_publication(new_version_num):
8187 for line in sys .stdin :
8288 if line .rstrip ().lower () == 'y' :
8389 return
84- exit ('Canceled release pricess .' )
90+ exit ('Canceled release process .' )
8591
8692
8793def build_sdist ():
You can’t perform that action at this time.
0 commit comments