summaryrefslogtreecommitdiff
path: root/dev-python/nbval
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-24 20:44:11 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-24 20:44:11 +0100
commit342922f04a58a969ff23806acc427c7ff79119ce (patch)
tree7c491f1183b65ff952aefc31909ea49a54196be0 /dev-python/nbval
parent27f59f8e16510831cc751de1406f71afbf464653 (diff)
gentoo auto-resync : 24:10:2023 - 20:44:11
Diffstat (limited to 'dev-python/nbval')
-rw-r--r--dev-python/nbval/Manifest2
-rw-r--r--dev-python/nbval/nbval-0.10.0-r1.ebuild34
2 files changed, 25 insertions, 11 deletions
diff --git a/dev-python/nbval/Manifest b/dev-python/nbval/Manifest
index c6c7bc15373d..7daa007f9b03 100644
--- a/dev-python/nbval/Manifest
+++ b/dev-python/nbval/Manifest
@@ -1,3 +1,3 @@
DIST nbval-0.10.0.tar.gz 62727 BLAKE2B 5b8d2815ec38481da1c0b3b5b62f809a231c4d136499b73ef13dba6a5214c87a5d4f77db1d81488e1bf13bd3ff365414e75760763a56a3cc28e752dd316ac009 SHA512 3e0e495db40aa4969e03ed1359f0c509b7470a54b3d8b6a85731601af5da0407bd44b3f069178f1a6b3aca7bf243747aaeaca4cb2332912e917e360f705eae61
-EBUILD nbval-0.10.0-r1.ebuild 1018 BLAKE2B 6cd3b68a88c48688f26693da18729f35534fd3b97ec026545fe18c3c498881e403f0ad03fd4b8a49547906abb6d8ee28609b0ca9061e21f76455c267f142e825 SHA512 b4a5d8de6797d203f237bef8a777072b51353ada0441c746e824ad790b8b8ac2004201605a0c2b05bc03b2fb4d754cbcc514f1546ea4f176b42bd1f6e9b77ad2
+EBUILD nbval-0.10.0-r1.ebuild 1486 BLAKE2B ce0cacc8406f76cc70403aa82fb06c2a10d1d074026cee65d7ccdc4ff73f0c9bdbf3149179c392801c6fed0cadeb3de46097409c0273164348c0c37b94f38ba7 SHA512 31f6987d4ea582bdc6c020503f2fd82a201cfdbf7a9a208bbcc11714c3e1f6e70df66f49bf00e974f652a2883eb42d868d69ef6d70a7176170b459a5502c230f
MISC metadata.xml 984 BLAKE2B 1f5a69806d70ed9aa5c0cf2a7f3466afc76e8b5078923142d10aa8ac5a68ab41dc54cd2345cef061236b7b68fc13fc76ff7a072b9fec8697eae259272a32aefc SHA512 13284c08e700976e1da78dbfe0038c2cca1d1e3f286726c4096ad53ded3b6ebbaabd51e105f70781be57293a46d8e2de3116e406cee4ac35d2dc80f1a165a7f8
diff --git a/dev-python/nbval/nbval-0.10.0-r1.ebuild b/dev-python/nbval/nbval-0.10.0-r1.ebuild
index 73bb7b7f8fe9..229392ee58ff 100644
--- a/dev-python/nbval/nbval-0.10.0-r1.ebuild
+++ b/dev-python/nbval/nbval-0.10.0-r1.ebuild
@@ -3,12 +3,16 @@
EAPI=8
-PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
inherit distutils-r1 pypi
DESCRIPTION="A pytest plugin to validate Jupyter notebooks"
-HOMEPAGE="https://github.com/computationalmodelling/nbval"
+HOMEPAGE="
+ https://github.com/computationalmodelling/nbval/
+ https://pypi.org/project/nbval/
+"
LICENSE="BSD"
SLOT="0"
@@ -23,20 +27,15 @@ RDEPEND="
BDEPEND="
test? (
dev-python/nbdime[${PYTHON_USEDEP}]
- dev-python/sympy[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/sympy[${PYTHON_USEDEP}]
+ ' python3_{10..11})
)
doc? (
virtual/pandoc
)
"
-EPYTEST_IGNORE=(
- # Mocker not packaged
- tests/test_nbdime_reporter.py
-
- tests/test_coverage.py
-)
-
distutils_enable_tests pytest
distutils_enable_sphinx docs/source \
dev-python/sphinx-rtd-theme \
@@ -45,5 +44,20 @@ distutils_enable_sphinx docs/source \
dev-python/matplotlib
python_test() {
+ local EPYTEST_IGNORE=(
+ # Mocker not packaged
+ tests/test_nbdime_reporter.py
+
+ tests/test_coverage.py
+ )
+ local EPYTEST_DESELECT=()
+
+ if ! has_version "dev-python/sympy[${PYTHON_USEDEP}]"; then
+ EPYTEST_DESELECT+=(
+ "tests/test_unit_tests_in_notebooks.py::test_print[${S}/tests/ipynb-test-samples/test-latex-pass-failsbutignoreoutput.ipynb]"
+ "tests/test_unit_tests_in_notebooks.py::test_print[${S}/tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb]"
+ )
+ fi
+
PYTHONPATH=. epytest # 895258
}