File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # bash strict mode
3+ set -euo pipefail
4+ IFS=$' \n\t '
5+
6+ err () {
7+ echo " $@ " >&2
8+ }
9+
10+ LAST=$( git tag --sort version:refname | grep -v rc | tail -1)
11+
12+ echo " Building distribution for: $LAST "
13+ git checkout $LAST
14+
15+ # superficial check that whats_new.rst has been updated
16+ if ! grep -q " $LAST " doc/source/whats_new.rst ; then
17+ err " release notes not updated, exiting"
18+ exit -1
19+ fi
20+
21+ make cython
22+
23+ read -p " Ok to continue (y/n)? " answer
24+ case ${answer: 0: 1} in
25+ y|Y )
26+ echo " Building distribution"
27+ python setup.py clean
28+ python setup.py build_ext --inplace
29+ python setup.py sdist --formats=zip,gztar
30+ ;;
31+ * )
32+ echo " Not building distribution"
33+ ;;
34+ esac
Original file line number Diff line number Diff line change 2121 wheel_url=" ${RACKSPACE_URL} /${wheel_name} "
2222 curl -O $wheel_url
2323done
24- # upload to pypi
24+ # suggest upload to pypi
2525cd ..
26- twine upload --sign wheels/* .whl
26+ echo " wheels now need to be uploaded to PyPI using a command such as:"
27+ echo " twine upload --sign wheels/*.whl"
You can’t perform that action at this time.
0 commit comments