aboutsummaryrefslogtreecommitdiffstats
path: root/tasks.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-02-20 09:07:53 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-02-20 09:07:53 -0800
commit6ab3f46b6f615dda1cef5cf7d0531a1cc9ba2903 (patch)
tree1404950d3a769459dd1cd3ab5b02bc308c3ba3e5 /tasks.py
parent79ca2275877a3091c7b5b339fe2b2de2dbc6adc7 (diff)
downloadcryptography-6ab3f46b6f615dda1cef5cf7d0531a1cc9ba2903.tar.gz
cryptography-6ab3f46b6f615dda1cef5cf7d0531a1cc9ba2903.tar.bz2
cryptography-6ab3f46b6f615dda1cef5cf7d0531a1cc9ba2903.zip
Upload windows wheels
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index 3de6d3c1..1021360a 100644
--- a/tasks.py
+++ b/tasks.py
@@ -49,6 +49,9 @@ def download_artifacts():
response.raise_for_status()
assert not response.json()["building"]
assert response.json()["result"] == "SUCCESS"
+
+ paths = []
+
for run in response.json()["runs"]:
response = requests.get(
run["url"] + "api/json/",
@@ -68,6 +71,8 @@ def download_artifacts():
)
with open(out_path, "wb") as f:
f.write(response.content)
+ paths.append(out_path)
+ return paths
@invoke.task
@@ -91,4 +96,5 @@ def release(version):
)
response.raise_for_status()
wait_for_build_completed()
- download_artifacts()
+ paths = download_artifacts()
+ invoke.run("twine upload {0}".format(" ".join(paths)))