Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-python/nbval: A py.test plugin to validate Jupyter notebook #6247

Closed
wants to merge 1 commit into from

Conversation

marbre
Copy link
Contributor

@marbre marbre commented Nov 20, 2017

The plugin adds functionality to py.test to recognise and collect Jupyter notebooks.
The intended purpose of the tests is to determine whether execution of the stored
inputs match the stored outputs of the .ipynb file. Whilst also ensuring that the
notebooks are running without errors.

The tests were designed to ensure that Jupyter notebooks (especially those for reference
and documentation), are executing consistently.

Each cell is taken as a test, a cell that doesn't reproduce the expected output will fail.

Bug: https://bugs.gentoo.org/638208
Package-Manager: Portage-2.3.13, Repoman-2.3.3

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull Request assignment

Areas affected: ebuilds
Packages affected: dev-python/nbval

dev-python/nbval: @gentoo/proxy-maint (new package)

Bugs linked: 638208

@gentoo-repo-qa-bot gentoo-repo-qa-bot added new package The PR is adding a new package. self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else) assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Nov 20, 2017
dev-python/sympy[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
sys-devel/make
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to add make to dependencies

"

python_test() {
make test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

never use naked make, always emake

The plugin adds functionality to py.test to recognise and collect Jupyter notebooks.
The intended purpose of the tests is to determine whether execution of the stored
inputs match the stored outputs of the .ipynb file. Whilst also ensuring that the
notebooks are running without errors.

The tests were designed to ensure that Jupyter notebooks (especially those for reference
and documentation), are executing consistently.

Each cell is taken as a test, a cell that doesn't reproduce the expected output will fail.

Bug: https://bugs.gentoo.org/638208
Package-Manager: Portage-2.3.13, Repoman-2.3.3
@marbre
Copy link
Contributor Author

marbre commented Nov 27, 2017

@SoapGentoo Thanks for the annotations. All done.

Copy link
Member

@monsieurp monsieurp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same deal here wrt proxy-maint not added to the metadata.xml file. Will fix that.

NeddySeagoon pushed a commit to NeddySeagoon/gentoo-arm64 that referenced this pull request Dec 3, 2017
nbval is a py.test plugin to validate Jupyter notebook.

The plugin adds functionality to py.test to recognise and collect Jupyter
notebooks.  The intended purpose of the tests is to determine whether execution
of the stored inputs match the stored outputs of the .ipynb file. Whilst also
ensuring that the notebooks are running without errors.

The tests were designed to ensure that Jupyter notebooks (especially those for
reference and documentation), are executing consistently.

Each cell is taken as a test, a cell that doesn't reproduce the expected output
will fail.

Closes: https://bugs.gentoo.org/638208
Closes: gentoo#6247
Package-Manager: Portage-2.3.13, Repoman-2.3.3
@marbre marbre deleted the nbval branch July 1, 2019 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. new package The PR is adding a new package. self-maintained The PR changes only packages that are maintained by the submitter (i.e. no need to ask anybody else)
Projects
None yet
4 participants