From e8932755452c72a02ecae0b3f37395d1f607bbef Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 24 Mar 2023 06:46:57 +0000 Subject: gentoo auto-resync : 24:03:2023 - 06:46:57 --- dev-python/nbconvert/Manifest | 2 +- dev-python/nbconvert/nbconvert-7.2.10-r1.ebuild | 93 +++++++++++++++++++++ dev-python/nbconvert/nbconvert-7.2.10.ebuild | 102 ------------------------ 3 files changed, 94 insertions(+), 103 deletions(-) create mode 100644 dev-python/nbconvert/nbconvert-7.2.10-r1.ebuild delete mode 100644 dev-python/nbconvert/nbconvert-7.2.10.ebuild (limited to 'dev-python/nbconvert') diff --git a/dev-python/nbconvert/Manifest b/dev-python/nbconvert/Manifest index aed73026e79a..6d228aea4476 100644 --- a/dev-python/nbconvert/Manifest +++ b/dev-python/nbconvert/Manifest @@ -1,5 +1,5 @@ DIST nbconvert-7.2.10.tar.gz 870708 BLAKE2B 837b5cf70f530b8fd3d566809d8d4faefdb3c4581b46e317d218a08bb06b80fdf59dcbd6c337b7fd62a9fdff676ea1cec941a7f6641c54ebee066a1bec19ffcd SHA512 078d6f1375f595f30db9eeebab55842353d549a294290a185c3817fc0bb2459c392120f089890409eec7cfe0fec7909752d20e4c55123249a4685d34655e0c05 DIST nbconvert-7.2.9.tar.gz 870386 BLAKE2B aea62f29d3e696c70d77ab73cc89347a4e0c8e077e98c45331608f7117fb3c98165bf3da89e4f3bf23b9d62c618289d98c9103c5b2998ca81f65cbfda65ca536 SHA512 0053e0e88f279d2fe430e516bcc19f98191e9ce414546ab1ff214f37c8f1cdfc4fc101faa4b5f1d5955fdc65c87aad367f5a5f12ce5991c68c015c5083f2f30c -EBUILD nbconvert-7.2.10.ebuild 3270 BLAKE2B aef609984fb9d752aa36ad5e0b65683a2821434f6252b77d8f3e479fdae6b70c131b912553b7044a099e31691666404cf9a6db63f24ba6562f1412f73a5d871c SHA512 645950dc1c2c834d7ac40a1d37754c41cbe0b985c51e2e2589643be32beab0a558acec85245c2200ac02f02fd8ee89ce2d9e4bede6e399700c3166bfb2c92d67 +EBUILD nbconvert-7.2.10-r1.ebuild 3028 BLAKE2B 9b4ba7ace939c44cb7d7bbaeb9b73691f61abff7ee409f720c7786e15910759f342b5166e572b45e2826b0aee6d3650447ea6bd945c56f851621483b63b019f5 SHA512 cd1092dea3ac3860cedf03222b543106570cd3320f70ee446b6d8e1cb8a501e8d7769385381217e48f38c2682cc1886bb5b11fde3579db2dbde08b0eb8603ef2 EBUILD nbconvert-7.2.9.ebuild 2772 BLAKE2B 9b7225971cad9b1d88969dd826d4e0712bdd2a7f8e84ad766f375668c03b72832c5cbfa31199a6bcc60ac0d61baf2ddd71dcf4baeda08c7ee9b70b91b0671da6 SHA512 9198cc3fcf2b48e4888d62b656de9b1915600694d18ff092ba01ec553e39184ed126af9641819286e45e36cc60e726eca1a64b5d79ec7bd0554ac72a56b557c5 MISC metadata.xml 527 BLAKE2B a915103b3eaf57236f4257c98354a1e3733771369ac825fa8bbc4f79f0d1a23272dc86e744513620fbee37792e813a15dbb955e633a7c57597c3c38657ed05d3 SHA512 b60a311ce52915dbc12addd4a882670ac96ff8b3be2aa651eaac3d0963d6e73a72eaafd53f90fb685599504857e6bcd0568071962d7696c2605462b77260ad6a diff --git a/dev-python/nbconvert/nbconvert-7.2.10-r1.ebuild b/dev-python/nbconvert/nbconvert-7.2.10-r1.ebuild new file mode 100644 index 000000000000..081c72731e11 --- /dev/null +++ b/dev-python/nbconvert/nbconvert-7.2.10-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 multiprocessing pypi virtualx + +DESCRIPTION="Converting Jupyter Notebooks" +HOMEPAGE=" + https://nbconvert.readthedocs.io/ + https://github.com/jupyter/nbconvert/ + https://pypi.org/project/nbconvert/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~riscv" + +RDEPEND=" + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/bleach[${PYTHON_USEDEP}] + dev-python/defusedxml[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/importlib_metadata-3.6[${PYTHON_USEDEP}] + ' 3.9) + >=dev-python/jinja-3.0[${PYTHON_USEDEP}] + >=dev-python/jupyter_core-4.7[${PYTHON_USEDEP}] + dev-python/jupyterlab_pygments[${PYTHON_USEDEP}] + >=dev-python/markupsafe-2.0[${PYTHON_USEDEP}] + >=dev-python/mistune-2.0.2[${PYTHON_USEDEP}] + >=dev-python/nbclient-0.5.0[${PYTHON_USEDEP}] + >=dev-python/nbformat-5.1[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/pandocfilters-1.4.1[${PYTHON_USEDEP}] + >=dev-python/pygments-2.4.1[${PYTHON_USEDEP}] + dev-python/tinycss2[${PYTHON_USEDEP}] + >=dev-python/traitlets-5.1.1[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/ipykernel[${PYTHON_USEDEP}] + >=dev-python/ipywidgets-7[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + mkdir -p share/templates/classic/static || die + # tries to refetch stuff even if it's already present + sed -e 's:css = .*:raise PermissionError("You shall not fetch!"):' \ + -i hatch_build.py || die + distutils-r1_src_prepare +} + +src_test() { + virtx distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=( + # Missing pyppeteer for now + # TODO: Doesn't skip? + nbconvert/exporters/tests/test_webpdf.py + # Needs pyppeteer too + 'nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium' + # TODO + nbconvert/exporters/tests/test_qtpng.py::TestQtPNGExporter::test_export + nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name + nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_post_processor + # latex failing, might be too new pandoc + nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_filename_spaces + nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_pdf + # too new pandoc but we don't have old anymore + nbconvert/utils/tests/test_pandoc.py::TestPandoc::test_minimal_version + nbconvert/utils/tests/test_pandoc.py::TestPandoc::test_pandoc_available + ) + + # virtx implies nonfatal, make it explicit to avoid confusion + nonfatal epytest -n "$(makeopts_jobs)" --pyargs nbconvert || die +} + +pkg_postinst() { + if ! has_version app-text/pandoc && ! has_version app-text/pandoc-bin; then + einfo "Pandoc is required for converting to formats other than Python," + einfo "HTML, and Markdown. If you need this functionality, install" + einfo "app-text/pandoc or app-text/pandoc-bin." + fi +} diff --git a/dev-python/nbconvert/nbconvert-7.2.10.ebuild b/dev-python/nbconvert/nbconvert-7.2.10.ebuild deleted file mode 100644 index c0bab77f21e6..000000000000 --- a/dev-python/nbconvert/nbconvert-7.2.10.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=hatchling -PYTHON_COMPAT=( python3_{9..11} ) - -inherit distutils-r1 multiprocessing pypi virtualx - -DESCRIPTION="Converting Jupyter Notebooks" -HOMEPAGE=" - https://nbconvert.readthedocs.io/ - https://github.com/jupyter/nbconvert/ - https://pypi.org/project/nbconvert/ -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~riscv" - -RDEPEND=" - dev-python/beautifulsoup4[${PYTHON_USEDEP}] - dev-python/bleach[${PYTHON_USEDEP}] - dev-python/defusedxml[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/importlib_metadata-3.6[${PYTHON_USEDEP}] - ' 3.9) - >=dev-python/jinja-3.0[${PYTHON_USEDEP}] - >=dev-python/jupyter_core-4.7[${PYTHON_USEDEP}] - dev-python/jupyterlab_pygments[${PYTHON_USEDEP}] - >=dev-python/markupsafe-2.0[${PYTHON_USEDEP}] - >=dev-python/mistune-2.0.2[${PYTHON_USEDEP}] - >=dev-python/nbclient-0.5.0[${PYTHON_USEDEP}] - >=dev-python/nbformat-5.1[${PYTHON_USEDEP}] - dev-python/packaging[${PYTHON_USEDEP}] - >=dev-python/pandocfilters-1.4.1[${PYTHON_USEDEP}] - >=dev-python/pygments-2.4.1[${PYTHON_USEDEP}] - dev-python/tinycss2[${PYTHON_USEDEP}] - >=dev-python/traitlets-5.1.1[${PYTHON_USEDEP}] -" -BDEPEND=" - dev-python/nbclassic[${PYTHON_USEDEP}] - test? ( - dev-python/ipykernel[${PYTHON_USEDEP}] - >=dev-python/ipywidgets-7[${PYTHON_USEDEP}] - dev-python/pytest-xdist[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest - -src_prepare() { - mkdir -p share/templates/classic/static || die - # tries to refetch stuff even if it's already present - sed -e 's:css = .*:raise PermissionError("You shall not fetch!"):' \ - -i hatch_build.py || die - distutils-r1_src_prepare -} - -python_configure() { - local src=$( - "${EPYTHON}" -c "import nbclassic as m; print(*m.__path__)" || die - ) - cp "${src}/static/style/style.min.css" \ - share/templates/classic/static/style.css || die -} - -src_test() { - virtx distutils-r1_src_test -} - -python_test() { - local EPYTEST_DESELECT=( - # Missing pyppeteer for now - # TODO: Doesn't skip? - nbconvert/exporters/tests/test_webpdf.py - # Needs pyppeteer too - 'nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium' - # TODO - nbconvert/exporters/tests/test_qtpng.py::TestQtPNGExporter::test_export - nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_convert_full_qualified_name - nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_post_processor - # latex failing, might be too new pandoc - nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_filename_spaces - nbconvert/tests/test_nbconvertapp.py::TestNbConvertApp::test_pdf - # too new pandoc but we don't have old anymore - nbconvert/utils/tests/test_pandoc.py::TestPandoc::test_minimal_version - nbconvert/utils/tests/test_pandoc.py::TestPandoc::test_pandoc_available - ) - - # virtx implies nonfatal, make it explicit to avoid confusion - nonfatal epytest -n "$(makeopts_jobs)" --pyargs nbconvert || die -} - -pkg_postinst() { - if ! has_version app-text/pandoc && ! has_version app-text/pandoc-bin; then - einfo "Pandoc is required for converting to formats other than Python," - einfo "HTML, and Markdown. If you need this functionality, install" - einfo "app-text/pandoc or app-text/pandoc-bin." - fi -} -- cgit v1.2.3