diff --git a/conda.recipe/README.md b/conda.recipe/README.md new file mode 100644 index 0000000..b221fd4 --- /dev/null +++ b/conda.recipe/README.md @@ -0,0 +1,63 @@ +## Release Procedure + +- Ensure all tests pass. + +- Update version number in `conda.recipe/meta.yaml`, `paramnb/__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 paramnb being released (e.g. 2.0.2) +VERSION=2.0.2 +``` + +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 paramnb-$VERSION*.tar.bz2 -o ../ +conda convert --platform linux-32 paramnb-$VERSION*.tar.bz2 -o ../ +conda convert --platform linux-64 paramnb-$VERSION*.tar.bz2 -o ../ +conda convert --platform win-32 paramnb-$VERSION*.tar.bz2 -o ../ +conda convert --platform win-64 paramnb-$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/*/paramnb-$VERSION*.tar.bz2 -u ioam +``` diff --git a/conda.recipe/build.sh b/conda.recipe/build.sh new file mode 100644 index 0000000..60233a0 --- /dev/null +++ b/conda.recipe/build.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +SRC_DIR=$RECIPE_DIR/.. +pushd $SRC_DIR + +$PYTHON setup.py --quiet install --single-version-externally-managed --record=record.txt + +popd diff --git a/meta.yaml b/conda.recipe/meta.yaml similarity index 96% rename from meta.yaml rename to conda.recipe/meta.yaml index 3513406..64d75ed 100644 --- a/meta.yaml +++ b/conda.recipe/meta.yaml @@ -1,6 +1,6 @@ package: name: paramnb - version: 2.0.1 + version: 2.0.2 source: path: . diff --git a/paramnb/__init__.py b/paramnb/__init__.py index 703d19d..b0842b1 100644 --- a/paramnb/__init__.py +++ b/paramnb/__init__.py @@ -28,10 +28,10 @@ from .view import _View try: - __version__ = param.Version(release=(2,0,1), fpath=__file__, + __version__ = param.Version(release=(2,0,2), fpath=__file__, commit="$Format:%h$", reponame='paramnb') except: - __version__ = '2.0.1-unknown' + __version__ = '2.0.2-unknown' def run_next_cells(n): diff --git a/setup.py b/setup.py index 2ec4a47..f7bb7b3 100644 --- a/setup.py +++ b/setup.py @@ -8,11 +8,11 @@ from distutils.core import setup setup_args = {} -install_requires = ['param>=1.5.0', 'ipywidgets>=5.2.2'] +install_requires = ['param>=1.5.1', 'ipywidgets>=5.2.2'] setup_args.update(dict( name='paramnb', - version="2.0.1", + version="2.0.2", install_requires = install_requires, url = 'https://github.com/ioam/paramnb', description='Generate ipywidgets from Parameterized objects in the notebook',