File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ def call_bash_script(cmd):
4242 else :
4343 os .system (cmd )
4444
45+
4546def upload_sdist (new_version_num ):
4647 wheel_file = 'dist/appium_python_client-{}-py3-none-any.whl' .format (new_version_num )
4748 push_file = 'dist/appium_python_client-{}.tar.gz' .format (new_version_num )
@@ -54,16 +55,22 @@ def upload_sdist(new_version_num):
5455 )
5556 )
5657
58+
5759def ensure_publication (new_version_num ):
5860 if os .environ .get ('DRY_RUN' ) is not None :
5961 print ('Run with {} mode.' .format (MESSAGE_RED .format ('[DRY_RUN]' )))
6062
61- print ('Are you sure to publish a new built modules in dist directory as {}?[y/n]' .format (MESSAGE_YELLOW .format (new_version_num )))
63+ print (
64+ 'Are you sure to publish a new built modules in dist directory as {}?[y/n]' .format (
65+ MESSAGE_YELLOW .format (new_version_num )
66+ )
67+ )
6268 for line in sys .stdin :
6369 if line .rstrip ().lower () == 'y' :
6470 return
6571 sys .exit ('Canceled release process.' )
6672
73+
6774def main ():
6875 print_current_version ()
6976 new_version = get_new_version ()
You can’t perform that action at this time.
0 commit comments