Skip to content

Commit

Permalink
Update post-release script
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Dec 14, 2016
1 parent a1cd8a6 commit de1462d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v0.3.3
======
- Improved setup.py

v0.3.2
======
- git-archive generated zip now pip-installable
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
`<https://pythonhosted.org/finitediff>`_
(and development docs for the current master branch are found here:
`<https://bjodah.github.io/finitediff/latest>`_
(and the development version for the current master branch is found here:
`<http://hera.physchem.kth.se/~finitediff/branches/master/html>`_).

Examples
Expand Down
8 changes: 4 additions & 4 deletions scripts/post_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit de1462d

Please sign in to comment.