From de1462da97ca837ad89b9942c3fdfd8071f1093c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dahlgren?= Date: Wed, 14 Dec 2016 14:54:51 +0100 Subject: [PATCH] Update post-release script --- CHANGES.rst | 4 ++++ README.rst | 4 ++-- scripts/post_release.sh | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 6894a35..8ed41d2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,7 @@ +v0.3.3 +====== +- Improved setup.py + v0.3.2 ====== - git-archive generated zip now pip-installable diff --git a/README.rst b/README.rst index 6f90dd2..683f914 100644 --- a/README.rst +++ b/README.rst @@ -40,8 +40,8 @@ The user may also manually generate the corresponding weights. (see Documentation ------------- Autogenerated API documentation for latest stable release is found here: -``_ -(and development docs for the current master branch are found here: +``_ +(and the development version for the current master branch is found here: ``_). Examples diff --git a/scripts/post_release.sh b/scripts/post_release.sh index 784b199..8d6a470 100755 --- a/scripts/post_release.sh +++ b/scripts/post_release.sh @@ -13,18 +13,18 @@ if [[ ! -f "$SDIST_FILE" ]]; then >&2 echo "Nonexistent file $SDIST_FILE" exit 1 fi -MD5=$(md5sum "$SDIST_FILE" | cut -f1 -d' ') +SHA256=$(openssl sha256 "$SDIST_FILE" | cut -f2 -d' ') if [[ -d "dist/conda-recipe-$VERSION" ]]; then rm -r "dist/conda-recipe-$VERSION" fi cp -r conda-recipe/ dist/conda-recipe-$VERSION sed -i -E \ - -e "s/version:(.+)/version: $VERSION/" \ - -e "s/path:(.+)/fn: $PKG-$VERSION.tar.gz\n url: https:\/\/github.com\/$GITHUBUSER\/$PKG\/releases\/download\/v$VERSION\/$PKG-$VERSION.tar.gz\n md5: $MD5/" \ + -e "s/\{\% set version(.+)/\{\% set version = \"$VERSION\" \%\}\n\{\% set sha256 = \"$SHA256\" \%\}/" \ + -e "s/git_url:(.+)/fn: \{\{ name \}\}-\{\{ version \}\}.tar.gz\n url: https:\/\/pypi.io\/packages\/source\/\{\{ name\[0\] \}\}\/\{\{ name \}\}\/\{\{ name \}\}-\{\{ version \}\}.tar.gz\n sha256: \{\{ sha256 \}\}/" \ -e "/cython/d" \ dist/conda-recipe-$VERSION/meta.yaml -env ${PKG_UPPER}_RELEASE_VERSION=v$VERSION python setup.py upload_sphinx +./scripts/update-gh-pages.sh v$VERSION # Specific for this project: scp -r dist/conda-recipe-$VERSION/ $PKG@$SERVER:~/public_html/conda-recipes/