still flailing - use a random name

This commit is contained in:
jobevers 2017-02-23 08:32:28 -06:00
parent 6fb83f8da4
commit 2e8c8b95c8

View file

@ -94,7 +94,10 @@ def _upload_asset(release, asset_to_upload, token):
if is_asset_already_uploaded(release, basename):
return
print 'Release upload url:', release.upload_url
upload_uri = uritemplate.expand(release.upload_url, {'name': platform.system()})
upload_uri = uritemplate.expand(
release.upload_url,
{'name': ''.join([random.choice('abcde') for _ in range(5)])}
)
print upload_uri
print repr(upload_uri)
print asset_to_upload