Skip to content

Commit

Permalink
Added conda.recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Aug 24, 2016
1 parent 0a6a9bd commit 51ccd6e
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
63 changes: 63 additions & 0 deletions conda.recipe/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
## Release Procedure

- Ensure all tests pass.

- Update version number in `conda.recipe/meta.yaml`, `geoviews/__init__.py`,
and `setup.py`. Commit.

- Tag commit and push to github

```bash
git tag -a x.x.x -m 'Version x.x.x'
git push upstream master --tags
```

- Build conda packages

The exact procedure is platform/setup specific, so I'll define a few variables
here, to fill in with your specifics:

```bash
# Location of your conda install. For me it's `~/miniconda/`
CONDA_DIR=~/miniconda/

# Platform code. For me it's `osx-64`
PLATFORM=osx-64

# Version number of datashader being released (e.g. 1.1.0)
VERSION=1.1.0
```

This assumes `conda`, `conda-build`, and `anaconda-client` are installed (if
not, install `conda`, then use `conda` to install the others). From inside the
toplevel directory:

```bash
conda build conda.recipe/ --python 2.7 --python 3.4 --python 3.5
```

Next, `cd` into the folder where the builds end up.

```bash
cd $CONDA_DIR/conda-bld/$PLATFORM
```

Use `conda convert` to convert over the missing platforms (skipping the one for
the platform you're currently on):

```bash
conda convert --platform osx-64 geoviews-$VERSION*.tar.bz2 -o ../
conda convert --platform linux-32 geoviews-$VERSION*.tar.bz2 -o ../
conda convert --platform linux-64 geoviews-$VERSION*.tar.bz2 -o ../
conda convert --platform win-32 geoviews-$VERSION*.tar.bz2 -o ../
conda convert --platform win-64 geoviews-$VERSION*.tar.bz2 -o ../
```

Use `anaconda upload` to upload the build to the `ioam` channel. This requires
you to be setup on `anaconda.org`, and have the proper credentials to push to
the bokeh channel.

```bash
anaconda login
anaconda upload $CONDA_DIR/conda-bld/*/geoviews-$VERSION*.tar.bz2 -u ioam
```
9 changes: 9 additions & 0 deletions conda.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

SRC_DIR=$RECIPE_DIR/..
pushd $SRC_DIR

$PYTHON setup.py --quiet install --single-version-externally-managed --record=record.txt
cp -r $SRC_DIR/doc/ $PREFIX/share/geoviews-examples/

popd
File renamed without changes.

0 comments on commit 51ccd6e

Please sign in to comment.