forked from MacPython/cython-wheels
-
Notifications
You must be signed in to change notification settings - Fork 1
/
check_upload.sh
30 lines (30 loc) · 930 Bytes
/
check_upload.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Script to download / check and upload scikit_image wheels for release
RACKSPACE_URL=http://a365fff413fe338398b6-1c8a9b3114517dc5fe17b7c3f8c63a43.r19.cf2.rackcdn.com
if [ "`which twine`" == "" ]; then
echo "twine not on path; need to pip install twine?"
exit 1
fi
cd Cython
CYTHON_VERSION=`git describe --tags`
if [ "${CYTHON_VERSION:0:1}" != 'v' ]; then
echo "Cython version $CYTHON_VERSION does not start with 'v'"
exit 1
fi
WHEEL_HEAD="Cython-${Cython_VERSION:1}"
WHEEL_TAIL="macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.whl"
mkdir -p wheels
cd wheels
rm -rf *.whl
for py_tag in cp27-none cp33-cp33m cp34-cp34m
do
wheel_name="$WHEEL_HEAD-$py_tag-$WHEEL_TAIL"
wheel_url="${RACKSPACE_URL}/${wheel_name}"
curl -O $wheel_url
if [ "$?" != "0" ]; then
echo "Failed downloading $wheel_url; check travis build?"
exit $?
fi
done
cd ..
twine upload wheels/*.whl