Skip to content

Commit

Permalink
About to release v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Aug 2, 2018
1 parent 4c24096 commit a63daea
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#!/bin/bash -xeu
# Usage:
#
# $ ./scripts/release.sh v1.2.3 ~/anaconda2/bin myserver.example.com GITHUB_USER GITHUB_REPO
# $ ./scripts/release.sh v1.2.3 GITHUB_USER GITHUB_REPO
#

if [[ $1 != v* ]]; then
echo "Argument does not start with 'v'"
exit 1
fi
VERSION=${1#v}
CONDA_PATH=$2
SERVER=$3
find . -type f -iname "*.pyc" -exec rm {} +
find . -type f -iname "*.o" -exec rm {} +
find . -type f -iname "*.so" -exec rm {} +
Expand All @@ -23,13 +21,7 @@ PKG=$(find . -maxdepth 2 -name __init__.py -print0 | xargs -0 -n1 dirname | xarg
PKG_UPPER=$(echo $PKG | tr '[:lower:]' '[:upper:]')
MPLBACKEND=Agg ./scripts/run_tests.sh
env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION python setup.py sdist
env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION ./scripts/generate_docs.sh $4 $5 v$VERSION
for CONDA_PY in 2.7 3.4 3.5; do
for CONDA_NPY in 1.11; do
continue # we build the conda recipe on another host for now..
PATH=$CONDA_PATH:$PATH ./scripts/build_conda_recipe.sh v$VERSION --python $CONDA_PY --numpy $CONDA_NPY
done
done
env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION ./scripts/generate_docs.sh $2 ${3:-$PKG} v$VERSION

# All went well, add a tag and push it.
git tag -a v$VERSION -m v$VERSION
Expand All @@ -45,5 +37,5 @@ echo " file from the ./dist/ directory). Here is a link:"
echo " https://github.com/$4/$5/releases/new "
echo " Then run:"
echo ""
echo " $ ./scripts/post_release.sh $1 $SERVER $4"
echo " $ ./scripts/post_release.sh $1 <myserver.example.com> $4"
echo ""

0 comments on commit a63daea

Please sign in to comment.