diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-09-05 11:46:20 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-09-05 11:46:20 -0400 |
commit | 2caca850f64b9721623e92294c879c5daa9a380c (patch) | |
tree | 2b2c88306f3867677b37483fce9b1e1377fa32f2 /ci | |
parent | cc1f1bc0920f65e126da6b1764d2fe8af6b36502 (diff) | |
download | python-coveragepy-git-2caca850f64b9721623e92294c879c5daa9a380c.tar.gz |
Make download_appveyor.py more general-purpose.
Diffstat (limited to 'ci')
-rw-r--r-- | ci/download_appveyor.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ci/download_appveyor.py b/ci/download_appveyor.py index 72488d4e..9eba5d11 100644 --- a/ci/download_appveyor.py +++ b/ci/download_appveyor.py @@ -2,6 +2,7 @@ import os import os.path +import sys import zipfile import requests @@ -46,7 +47,7 @@ def download_latest_artifacts(account_project): for artifact in artifacts: is_zip = artifact['type'] == "Zip" filename = artifact['fileName'] - print " {0}".format(filename) + print " {0}, {1} bytes".format(filename, artifact['size']) url = make_url( "/buildjobs/{jobid}/artifacts/{filename}", @@ -88,4 +89,4 @@ def unpack_zipfile(filename): if __name__ == "__main__": - download_latest_artifacts("nedbat/coveragepy") + download_latest_artifacts(sys.argv[1]) |