Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
Bumped version to 2.0.2 and added conda.recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed May 11, 2017
1 parent 170cbf0 commit 45b1680
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 5 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`, `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
```
8 changes: 8 additions & 0 deletions conda.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion meta.yaml → conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: paramnb
version: 2.0.1
version: 2.0.2

source:
path: .
Expand Down
4 changes: 2 additions & 2 deletions paramnb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 45b1680

Please sign in to comment.