diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-10-24 18:48:39 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-10-24 19:50:58 +0200 |
commit | 9e0f7465bf0fc25b512de83dc17a107ce0a4376c (patch) | |
tree | 16c0d7080a903f407f03c18805eeece99b9f3818 /dev-python/nbval | |
parent | dev-python/pytzdata: Enable py3.12 (diff) | |
download | gentoo-9e0f7465bf0fc25b512de83dc17a107ce0a4376c.tar.gz gentoo-9e0f7465bf0fc25b512de83dc17a107ce0a4376c.tar.bz2 gentoo-9e0f7465bf0fc25b512de83dc17a107ce0a4376c.zip |
dev-python/nbval: Enable py3.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/nbval')
-rw-r--r-- | dev-python/nbval/nbval-0.10.0-r1.ebuild | 34 |
1 files changed, 24 insertions, 10 deletions
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 } |