Skip to content

Commit

Permalink
CI: update release utility scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ariddell committed Jul 13, 2016
1 parent 3fa007b commit add488f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
34 changes: 34 additions & 0 deletions build_dist.sh
@@ -0,0 +1,34 @@
#!/bin/bash
# bash strict mode
set -euo pipefail
IFS=$'\n\t'

err() {
echo "$@" >&2
}

LAST=$(git tag --sort version:refname | grep -v rc | tail -1)

echo "Building distribution for: $LAST"
git checkout $LAST

# superficial check that whats_new.rst has been updated
if ! grep -q "$LAST" doc/source/whats_new.rst ; then
err "release notes not updated, exiting"
exit -1
fi

make cython

read -p "Ok to continue (y/n)? " answer
case ${answer:0:1} in
y|Y )
echo "Building distribution"
python setup.py clean
python setup.py build_ext --inplace
python setup.py sdist --formats=zip,gztar
;;
* )
echo "Not building distribution"
;;
esac
Expand Up @@ -21,6 +21,7 @@ do
wheel_url="${RACKSPACE_URL}/${wheel_name}"
curl -O $wheel_url
done
# upload to pypi
# suggest upload to pypi
cd ..
twine upload --sign wheels/*.whl
echo "wheels now need to be uploaded to PyPI using a command such as:"
echo "twine upload --sign wheels/*.whl"

0 comments on commit add488f

Please sign in to comment.