Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ matrix:
- os: linux
python: '3.4'
env: TOXENV=docs
# check that conda build/install works
- os: linux
python: '3.4'
env: TOXENV=condarecipe
# linux, various python and notebook versions
- os: linux
python: '3.4'
Expand Down Expand Up @@ -81,6 +85,16 @@ before_install:
- 'if [[ ${OSX_PYTHON} ]]; then if [[ $(which python3.3) ]]; then ls -l $(which python3.3); else echo "missing"; fi; fi'
- 'if [[ ${OSX_PYTHON} ]]; then if [[ $(which python3.4) ]]; then ls -l $(which python3.4); else echo "missing"; fi; fi'
- 'if [[ ${OSX_PYTHON} ]]; then if [[ $(which python3.5) ]]; then ls -l $(which python3.5); else echo "missing"; fi; fi'
# install conda for conda recipe env
- 'if [[ ${TOXENV} == "condarecipe" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then bash miniconda.sh -b -p $HOME/miniconda; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then export PATH="$HOME/miniconda/bin:$PATH"; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then hash -r; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda config --set always_yes yes --set changeps1 no; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda update -q conda; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda info -a; fi # Useful for debugging any issues with conda'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda install conda-build; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then git fetch --unshallow; fi'
install:
- pip install tox
- virtualenv --version
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ graft tests

# directory excludes
prune src/jupyter_contrib_nbextensions/nbextensions/spellchecker/typo/dictionaries
prune conda.recipe

# Patterns to exclude from any directory
global-exclude *~
Expand Down
64 changes: 64 additions & 0 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# This conda recipe is for use with the git repo (hence the local url).
# For a simple conda install (non bleeding-edge), see the package page on the
# conda-forge channel at
# https://anaconda.org/conda-forge/jupyter_contrib_nbextensions

package:
name: jupyter_contrib_nbextensions
version: {{ GIT_DESCRIBE_TAG }}

source:
git_url: ../

build:
number: {{ GIT_DESCRIBE_NUMBER }}
script: python setup.py install --single-version-externally-managed --record=record.txt

requirements:
build:
- python
- setuptools

run:
- python
- ipython_genutils
- jupyter_contrib_core >=0.3
- jupyter_core
- jupyter_latex_envs >=1.3.4
- jupyter_nbextensions_configurator
- nbconvert
- notebook >=4.0
- psutil >=2.2.1
- pyyaml
- setuptools
- tornado
- traitlets

test:
imports:
- jupyter_contrib_nbextensions
- jupyter_contrib_nbextensions.application
- jupyter_contrib_nbextensions.install
- jupyter_contrib_nbextensions.migrate
- jupyter_contrib_nbextensions.nbconvert_support
- jupyter_contrib_nbextensions.nbconvert_support.embedhtml
- jupyter_contrib_nbextensions.nbconvert_support.latex_envs
- jupyter_contrib_nbextensions.nbconvert_support.pp_highlighter
- jupyter_contrib_nbextensions.nbconvert_support.pre_codefolding
- jupyter_contrib_nbextensions.nbconvert_support.pre_collapsible_headings
- jupyter_contrib_nbextensions.nbconvert_support.pre_pymarkdown
- jupyter_contrib_nbextensions.nbconvert_support.pre_svg2pdf
- jupyter_contrib_nbextensions.nbconvert_support.strip_output_prompt
- jupyter_contrib_nbextensions.nbconvert_support.toc2

commands:
- jupyter contrib nbextension --help
- jupyter contrib nbextension install --help
- jupyter contrib nbextension uninstall --help
- jupyter contrib nbextension migrate --help

about:
summary: 'A collection of various different notebook extensions for Jupyter'
home: https://github.com/ipython-contrib/jupyter_contrib_nbextensions
license_file: COPYING.rst
license: BSD 3-clause
6 changes: 6 additions & 0 deletions conda.recipe/post-link.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
:: We redirect stderr & stdout to conda's .messages.txt; for details, see
:: http://conda.pydata.org/docs/building/build-scripts.html
(
"%PREFIX%\Scripts\jupyter-contrib-nbextension.exe" install --sys-prefix
) >>"%PREFIX%\.messages.txt" 2>&1
6 changes: 6 additions & 0 deletions conda.recipe/post-link.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# We redirect stderr & stdout to conda's .messages.txt; for details, see
# http://conda.pydata.org/docs/building/build-scripts.html
{
"${PREFIX}/bin/jupyter-contrib-nbextension" install --sys-prefix
} >>"${PREFIX}/.messages.txt" 2>&1
6 changes: 6 additions & 0 deletions conda.recipe/pre-unlink.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
:: We redirect stderr & stdout to conda's .messages.txt; for details, see
:: http://conda.pydata.org/docs/building/build-scripts.html
(
"%PREFIX%\Scripts\jupyter-contrib-nbextension.exe" uninstall --sys-prefix
) >>"%PREFIX%\.messages.txt" 2>&1
6 changes: 6 additions & 0 deletions conda.recipe/pre-unlink.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
# We redirect stderr & stdout to conda's .messages.txt; for details, see
# http://conda.pydata.org/docs/building/build-scripts.html
{
"${PREFIX}/bin/jupyter-contrib-nbextension" uninstall --sys-prefix
} >>"${PREFIX}/.messages.txt" 2>&1
12 changes: 12 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,15 @@ skip_install = true
whitelist_externals = bash
deps = twine
commands = bash -c \"twine upload dist/*\"

[testenv:condarecipe]
skip_install = true
deps =
; install of conda itself is handled in travis for CI tests
whitelist_externals =
conda
echo
commands =
echo 'add conda-forge channel'
conda build --channel conda-forge conda.recipe
conda install --channel conda-forge --use-local jupyter_contrib_nbextensions