Skip to content

Commit

Permalink
Prepare for v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Oct 14, 2016
1 parent 7a95755 commit 219faa3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion conda-recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
LLAPACK=openblas CPLUS_INCLUDE_PATH=${PREFIX}/include ${PYTHON} setup.py build
${PYTHON} setup.py install
${PYTHON} setup.py install --single-version-externally-managed --record record.txt
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package:
version: {{ version }}

source:
path: ../
git_url: ../

build:
number: 0
Expand Down
6 changes: 3 additions & 3 deletions scripts/post_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ 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\" \%\}/" \
-e "s/git_url:(.+)/fn: $PKG-$VERSION.tar.gz\n url: https:\/\/pypi.io\/packages\/source\/${PKG:0:1}\/${PKG}\/${PKG}-$VERSION.tar.gz\n sha256: $SHA256/" \
-e "/cython/d" \
dist/conda-recipe-$VERSION/meta.yaml

Expand Down
6 changes: 3 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ twine upload dist/${PKG}-$VERSION.tar.gz

set +x
echo ""
echo " Make a github release of the tag \"v$VERSION\" and name "
echo " it \"${PKG}-${VERSION}\", manually attach the new .tar.gz"
echo " file from the ./dist/ directory. Then run:"
echo " You may now create a new github release with the tag \"v$VERSION\" and name "
echo " it \"${PKG}-${VERSION}\", (don't foreget to manually attach the new .tar.gz"
echo " file from the ./dist/ directory). Then run:"
echo ""
echo " $ ./scripts/post_release.sh $1 MYSERVER MYGITHUBUSERNAME"
echo ""

0 comments on commit 219faa3

Please sign in to comment.