From 0c77644861bcf36f77f5316bd78b58046dee3cb0 Mon Sep 17 00:00:00 2001 From: jobevers Date: Wed, 22 Feb 2017 15:11:52 -0600 Subject: [PATCH] more curl debugging --- release_on_tag.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/release_on_tag.py b/release_on_tag.py index 11b87104c..0796cba0f 100644 --- a/release_on_tag.py +++ b/release_on_tag.py @@ -84,6 +84,7 @@ def upload_asset(release, asset_to_upload, token): basename = os.path.basename(asset_to_upload) if is_asset_already_uploaded(release, basename): return + print 'Release upload url:', release.upload_url upload_uri = uritemplate.expand( release.upload_url, {'name': basename}) # using requests.post fails miserably with SSL EPIPE errors. I spent @@ -95,6 +96,9 @@ def upload_asset(release, asset_to_upload, token): '--header', 'Content-Type:application/octet-stream', '--data-binary', '@{}'.format(asset_to_upload), upload_uri ] + print 'Calling curl:' + print cmd + print p = subprocess.Popen(cmd, stderr=subprocess.PIPE, stdout=subprocess.PIPE) stdout, stderr = p.communicate() print 'curl return code:', p.returncode