break out tag portion from the publish script
MODIFY
Makefile
Makefile
@@ -22,6 +22,9 @@ clean:
fresh: clean all
+tag:
+ ./tag.sh
+
publish:
./publish.sh

MODIFY
README.md
README.md
@@ -54,8 +54,11 @@ We assume you have [twine][twine] installed and that you've created your own
fork of [fastavro-feedstock][feedstock].
* Make sure the tests pass
+* Run `make tag`
* Copy the windows build artifacts for the new version from
https://ci.appveyor.com/project/scottbelden/fastavro to the `dist` folder
+* Copy the linux build artifacts for the new version from
+ https://github.com/tebeka/fastavro/releases/tag/ to the `dist` folder
* Run `make publish`
* Note the sha signature emitted at the above
* Switch to feedstock directory and edit `recipe/meta.yaml`

MODIFY
publish.sh
publish.sh
@@ -8,6 +8,14 @@ ver=$(python setup.py --version)
set -e
set -x
+# Make sure we have made the tag
+if git rev-parse $ver >/dev/null 2>&1; then
+ true # Tag found
+else
+ echo "$ver git tag not found. Make sure you run 'make tag' first"
+ exit 1
+fi
+
make fresh
FASTAVRO_USE_CYTHON=1 python setup.py sdist
@@ -30,6 +38,10 @@ 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
@@ -42,9 +54,6 @@ fi
twine upload dist/fastavro-${ver}.tar.gz
twine upload dist/fastavro-${ver}*.whl
-git tag -f $(python setup.py --version)
-git push
-git push --tags
# print sha so we can use it in conda-forge recipe
sha256sum dist/fastavro-${ver}.tar.gz
rm -fr build dist/* fastavro.egg-info/

ADD
tag.sh
+#!/bin/bash
+
+# Fail on 1'st error
+set -e
+set -x
+
+# Make a new git tag (this builds the manylinux wheels)
+git tag -f $(python setup.py --version)
+git push
+git push --tags

break out tag portion from the publish script