Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nbval/
Date: Thu, 30 Nov 2017 14:47:10
Message-Id: 1512053177.86fc237b0882e338f40a319c088f424904a73962.monsieurp@gentoo
1 commit: 86fc237b0882e338f40a319c088f424904a73962
2 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
3 AuthorDate: Mon Nov 20 10:24:36 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 30 14:46:17 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86fc237b
7
8 dev-python/nbval: new package.
9
10 nbval is a py.test plugin to validate Jupyter notebook.
11
12 The plugin adds functionality to py.test to recognise and collect Jupyter
13 notebooks. The intended purpose of the tests is to determine whether execution
14 of the stored inputs match the stored outputs of the .ipynb file. Whilst also
15 ensuring that the notebooks are running without errors.
16
17 The tests were designed to ensure that Jupyter notebooks (especially those for
18 reference and documentation), are executing consistently.
19
20 Each cell is taken as a test, a cell that doesn't reproduce the expected output
21 will fail.
22
23 Closes: https://bugs.gentoo.org/638208
24 Closes: https://github.com/gentoo/gentoo/pull/6247
25 Package-Manager: Portage-2.3.13, Repoman-2.3.3
26
27 dev-python/nbval/Manifest | 1 +
28 dev-python/nbval/metadata.xml | 31 +++++++++++++++++++++++++++++++
29 dev-python/nbval/nbval-0.7.ebuild | 36 ++++++++++++++++++++++++++++++++++++
30 3 files changed, 68 insertions(+)
31
32 diff --git a/dev-python/nbval/Manifest b/dev-python/nbval/Manifest
33 new file mode 100644
34 index 00000000000..820ef0c275c
35 --- /dev/null
36 +++ b/dev-python/nbval/Manifest
37 @@ -0,0 +1 @@
38 +DIST nbval-0.7.tar.gz 51805 SHA256 1f009c45ce38abda6b3c1b755cf080f7cd25526721fe3f0060fce89f2a9fb861 SHA512 f146910d7fbd6a1f18b3d9ae006a1b252cc2e038f8a316463530b564e007b4b4e0b2daefbed7ae9ec7e14280f6f004b437c9570fd4d1e959c53165dcdf3cac5e WHIRLPOOL f3b74fd8668315946510b263eba99ec252d3c512fcfb9d60cdecc1b9c32a72445b4243073f3d0eeabbcecd5be8f12d21e639beccb7fe6fd9b383b12890d2d5fd
39
40 diff --git a/dev-python/nbval/metadata.xml b/dev-python/nbval/metadata.xml
41 new file mode 100644
42 index 00000000000..19121442841
43 --- /dev/null
44 +++ b/dev-python/nbval/metadata.xml
45 @@ -0,0 +1,31 @@
46 +<?xml version="1.0" encoding="UTF-8"?>
47 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
48 +<pkgmetadata>
49 + <maintainer type="person">
50 + <email>marbre@××××××××××××××.de</email>
51 + <name>Marius Brehler</name>
52 + </maintainer>
53 + <maintainer type="project">
54 + <email>sci@g.o</email>
55 + <name>Gentoo Science Project</name>
56 + </maintainer>
57 + <maintainer type="project">
58 + <email>proxy-maint@g.o</email>
59 + <name>Gentoo Proxy Maintainers Project</name>
60 + </maintainer>
61 + <longdescription>
62 + The plugin adds functionality to py.test to recognise and collect Jupyter notebooks.
63 + The intended purpose of the tests is to determine whether execution of the stored
64 + inputs match the stored outputs of the .ipynb file. Whilst also ensuring that the
65 + notebooks are running without errors.
66 +
67 + The tests were designed to ensure that Jupyter notebooks (especially those for reference
68 + and documentation), are executing consistently.
69 +
70 + Each cell is taken as a test, a cell that doesn't reproduce the expected output will fail.
71 + </longdescription>
72 + <upstream>
73 + <remote-id type="pypi">nbval</remote-id>
74 + <remote-id type="github">computationalmodelling/nbval</remote-id>
75 + </upstream>
76 +</pkgmetadata>
77
78 diff --git a/dev-python/nbval/nbval-0.7.ebuild b/dev-python/nbval/nbval-0.7.ebuild
79 new file mode 100644
80 index 00000000000..fbb65c03f93
81 --- /dev/null
82 +++ b/dev-python/nbval/nbval-0.7.ebuild
83 @@ -0,0 +1,36 @@
84 +# Copyright 1999-2017 Gentoo Foundation
85 +# Distributed under the terms of the GNU General Public License v2
86 +
87 +EAPI=6
88 +
89 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
90 +
91 +inherit distutils-r1
92 +
93 +DESCRIPTION="A py.test plugin to validate Jupyter notebooks"
94 +HOMEPAGE="https://github.com/computationalmodelling/nbval"
95 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
96 +
97 +LICENSE="BSD"
98 +SLOT="0"
99 +KEYWORDS="~amd64 ~x86"
100 +IUSE="test"
101 +
102 +RDEPEND="
103 + >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
104 + dev-python/six[${PYTHON_USEDEP}]
105 + dev-python/jupyter_client[${PYTHON_USEDEP}]
106 + dev-python/nbformat[${PYTHON_USEDEP}]
107 + dev-python/ipykernel[${PYTHON_USEDEP}]
108 + "
109 +DEPEND="${RDEPEND}
110 + test? (
111 + dev-python/sympy[${PYTHON_USEDEP}]
112 + dev-python/matplotlib[${PYTHON_USEDEP}]
113 + dev-python/pytest-cov[${PYTHON_USEDEP}]
114 + )
115 + "
116 +
117 +python_test() {
118 + emake test
119 +}