auto download all the osx and linux wheels
MODIFY
publish.sh
publish.sh
#!/bin/bash
# Push to pypi, tag and push to bitbucket
-pyver=$(python -c 'import sys; print("%s%s" % sys.version_info[:2])')
ver=$(python setup.py --version)
# Fail on 1'st error
@@ -16,6 +15,23 @@ else
exit 1
fi
+OSes="macosx_10_12
+manylinux1"
+
+PyVers="27
+34
+35
+36
+37"
+
+rm -rf dist/
+
+for os in $OSes; do
+ for pyver in $PyVers; do
+ wget -q --directory-prefix=dist/ https://github.com/fastavro/fastavro/releases/download/${ver}/fastavro-${ver}-cp${pyver}-cp${pyver}m-${os}_x86_64.whl
+ done
+done
+
make fresh
FASTAVRO_USE_CYTHON=1 python setup.py sdist
@@ -37,28 +53,6 @@ if [ ! -f dist/fastavro-${ver}-cp37-cp37m-win_amd64.whl ]; then
exit 1
fi
-linux_wheels_url="https://github.com/fastavro/fastavro/releases/tag/${ver}"
-if [ ! -f dist/fastavro-${ver}-cp27-cp27m-manylinux1_x86_64.whl ]; then
- echo "Make sure to download the Python 2.7 wheel from $linux_wheels_url"
- exit 1
-fi
-if [ ! -f dist/fastavro-${ver}-cp34-cp34m-manylinux1_x86_64.whl ]; then
- echo "Make sure to download the Python 3.4 wheel from $linux_wheels_url"
- exit 1
-fi
-if [ ! -f dist/fastavro-${ver}-cp35-cp35m-manylinux1_x86_64.whl ]; then
- echo "Make sure to download the Python 3.5 wheel from $linux_wheels_url"
- exit 1
-fi
-if [ ! -f dist/fastavro-${ver}-cp36-cp36m-manylinux1_x86_64.whl ]; then
- echo "Make sure to download the Python 3.6 wheel from $linux_wheels_url"
- exit 1
-fi
-if [ ! -f dist/fastavro-${ver}-cp37-cp37m-manylinux1_x86_64.whl ]; then
- echo "Make sure to download the Python 3.7 wheel from $linux_wheels_url"
- exit 1
-fi
-
twine upload dist/fastavro-${ver}.tar.gz
twine upload dist/fastavro-${ver}*.whl

auto download all the osx and linux wheels