Skip to content

Commit

Permalink
Merge pull request #2750 from kain88-de/nbval
Browse files Browse the repository at this point in the history
add Nbval package
  • Loading branch information
jakirkham authored Apr 8, 2017
2 parents 95e80a7 + 39a3c7b commit 0c5f9f4
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
44 changes: 44 additions & 0 deletions recipes/nbval/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
A py.test plugin for validating IPython notebooks

License applies to all source code, and binaries generated from the
source code, found at
https://github.com/computationalmodelling/pytest_validate_nb

------------------------------------------------------------
Copyright (C) 2014 Oliver W. Laslett <O.Laslett@soton.ac.uk>
David Cortes-Ortuno
Maximilian Albert
Ondrej Hovorka
Hans Fangohr
(University of Southampton, UK)


All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

Neither the names of the contributors nor the associated institutions
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

44 changes: 44 additions & 0 deletions recipes/nbval/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{% set name = "nbval" %}
{% set version = "0.5" %}
{% set sha256 = "bd245c0fb3ade4aff63948d31de5cb5f92129c7387e597d1229f687e5350eba7" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
fn: {{ name }}-{{ version }}.tar.gz
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0
script: python setup.py install --single-version-externally-managed --record record.txt

requirements:
build:
- python
- setuptools
run:
- python
- pytest
- six
- nbformat
- ipykernel
- jupyter_client

test:
imports:
- nbval

about:
home: https://github.com/computationalmodelling/nbval
license: BSD-3-Clause
license_family: BSD
license_file: '{{ environ["RECIPE_DIR"] }}/LICENSE'
summary: 'A py.test plugin to validate Jupyter notebooks'

extra:
recipe-maintainers:
- kain88-de
- takluyver

0 comments on commit 0c5f9f4

Please sign in to comment.