From f248dbe28062682cdc05535e8af1f2605672d47c Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Thu, 19 Apr 2018 14:54:17 -0700 Subject: [PATCH] Avoid accidental prod push Signed-off-by: Joffrey F --- script/release/release.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/release/release.py b/script/release/release.py index 92a8c1c0c..3c154012f 100755 --- a/script/release/release.py +++ b/script/release/release.py @@ -213,6 +213,8 @@ def finalize(args): if not gh_release: raise ScriptError('No Github release draft for this version') + repository.checkout_branch(br_name) + pypandoc.convert_file( os.path.join(REPO_ROOT, 'README.md'), 'rst', outputfile=os.path.join(REPO_ROOT, 'README.rst') ) @@ -222,8 +224,9 @@ def finalize(args): if not merge_status.merged: raise ScriptError('Unable to merge PR #{}: {}'.format(pr_data.number, merge_status.message)) print('Uploading to PyPi') - run_setup(os.path.join(REPO_ROOT, 'setup.py'), script_args=['upload']) - img_manager.push_images(args.release) + # TODO: this will do real stuff. Uncomment when done testing + # run_setup(os.path.join(REPO_ROOT, 'setup.py'), script_args=['upload']) + # img_manager.push_images(args.release) repository.publish_release(gh_release) except ScriptError as e: print(e)