From a7c8e4bff6d4c5361dae19fa659b44165722b614 Mon Sep 17 00:00:00 2001 From: Alastair Houghton Date: Wed, 2 May 2018 09:59:08 +0100 Subject: Added a tool to fetch Windows wheels from Appveyor --- fetch-win32-wheels | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 fetch-win32-wheels diff --git a/fetch-win32-wheels b/fetch-win32-wheels new file mode 100755 index 0000000..5807235 --- /dev/null +++ b/fetch-win32-wheels @@ -0,0 +1,43 @@ +#!/bin/bash +# +# Fetch the Win32 wheels from Appveyor +# +if [ $# -lt 1 ]; then + echo "usage: fetch-win32-wheels [tag]" + exit 1; +fi + +if [ $# -ge 2 ]; then + maybetag="tag=$2&" +else + maybetag= +fi + +niversion=$1 +artifact_url="https://ci.appveyor.com/api/projects/al45tair/netifaces/artifacts" +win32_versions="27 34 35 36" +amd64_versions="36" + +for version in $win32_versions; do + wheel=netifaces-$niversion-cp$version-cp${version}m-win32.whl + url="$artifact_url/dist/$wheel?${maybetag}job=Environment:%20PYTHON=C:\\Python$version" + echo -n "$wheel..." + if curl -s -L -o wheelhouse/$wheel $url; then + echo "ok" + else + echo "failed" + exit 1 + fi +done + +for version in $amd64_versions; do + wheel=netifaces-$niversion-cp$version-cp${version}m-win_amd64.whl + url="$artifact_url/dist/$wheel?${maybetag}job=Environment:%20PYTHON=C:\\Python$version-x64" + echo -n "$wheel..." + if curl -s -L -o wheelhouse/$wheel $url; then + echo "ok" + else + echo "failed" + exit 1 + fi +done -- cgit v1.2.1