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 | 489a9075b3437b77ec92952bbe77fb5153a770b6 (patch) | |
| tree | bdc975032f464498940a2e5fb6cc99c2acff01d1 | |
| parent | 97f64a468d1eff90b1384059555860fe59bc5219 (diff) | |
| download | python-coveragepy-489a9075b3437b77ec92952bbe77fb5153a770b6.tar.gz | |
Make download_appveyor.py more general-purpose.
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | ci/download_appveyor.py | 5 |
2 files changed, 6 insertions, 2 deletions
@@ -69,6 +69,9 @@ kit_local: # don't go crazy trying to figure out why our new code isn't installing. find ~/Library/Caches/pip/wheels -name 'coverage-*' -delete +download_appveyor: + python ci/download_appveyor.py nedbat/coveragepy + pypi: python setup.py register diff --git a/ci/download_appveyor.py b/ci/download_appveyor.py index 72488d4..9eba5d1 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]) |
