From e4c4647b4b3790be642be28ab9f93bcbc1f3198feebe01d7b408e0356ea161e7 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 9 Aug 2019 19:57:27 +0000 Subject: [PATCH 1/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbconvert?expand=0&rev=8 --- nbconvert-5.6.0.tar.gz | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 nbconvert-5.6.0.tar.gz diff --git a/nbconvert-5.6.0.tar.gz b/nbconvert-5.6.0.tar.gz new file mode 100644 index 0000000..56c8067 --- /dev/null +++ b/nbconvert-5.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:427a468ec26e7d68a529b95f578d5cbf018cb4c1f889e897681c2b6d11897695 +size 701743 From 144cb07a7578902099389b5df753beaec8c1e15dd375d024be81f58e637c8fe3 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 9 Aug 2019 19:57:33 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbconvert?expand=0&rev=9 --- nbconvert-5.6.0.tar.gz | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 nbconvert-5.6.0.tar.gz diff --git a/nbconvert-5.6.0.tar.gz b/nbconvert-5.6.0.tar.gz deleted file mode 100644 index 56c8067..0000000 --- a/nbconvert-5.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:427a468ec26e7d68a529b95f578d5cbf018cb4c1f889e897681c2b6d11897695 -size 701743 From 50ad45f9c32ad7e04d6270650d50878882ccc4256c6a83c12a896884888010c7 Mon Sep 17 00:00:00 2001 From: Todd R Date: Sun, 11 Aug 2019 22:04:39 +0000 Subject: [PATCH 3/3] Accepting request 722421 from home:TheBlackCat:branches:devel:languages:python:jupyter Update to 5.6.0 OBS-URL: https://build.opensuse.org/request/show/722421 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-nbconvert?expand=0&rev=10 --- nbconvert-5.5.0.tar.gz | 3 --- nbconvert-5.6.0.tar.gz | 3 +++ nbconvert.pdf | 4 ++-- nbconvert.zip | 4 ++-- python-nbconvert.changes | 34 ++++++++++++++++++++++++++++++++ python-nbconvert.spec | 42 +++++++++++++++++----------------------- 6 files changed, 59 insertions(+), 31 deletions(-) delete mode 100644 nbconvert-5.5.0.tar.gz create mode 100644 nbconvert-5.6.0.tar.gz diff --git a/nbconvert-5.5.0.tar.gz b/nbconvert-5.5.0.tar.gz deleted file mode 100644 index 1493ddf..0000000 --- a/nbconvert-5.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:138381baa41d83584459b5cfecfc38c800ccf1f37d9ddd0bd440783346a4c39c -size 583216 diff --git a/nbconvert-5.6.0.tar.gz b/nbconvert-5.6.0.tar.gz new file mode 100644 index 0000000..56c8067 --- /dev/null +++ b/nbconvert-5.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:427a468ec26e7d68a529b95f578d5cbf018cb4c1f889e897681c2b6d11897695 +size 701743 diff --git a/nbconvert.pdf b/nbconvert.pdf index 23c67aa..8d399ae 100644 --- a/nbconvert.pdf +++ b/nbconvert.pdf @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c05d17f1ba05085eda33de4cdc78932dd8cb74a21e0fb0b69cd0ecc929d256d7 -size 364215 +oid sha256:b6ddff73f2548392c1f51c7964f2486edf2ccf7dc498b8ae797d62aea83ddbd9 +size 520642 diff --git a/nbconvert.zip b/nbconvert.zip index fee424b..820bb50 100644 --- a/nbconvert.zip +++ b/nbconvert.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f00355c7f57c637573f72fe4fbe6334b3fd58f43e121e21dfd571835b5bf8cfd -size 8804143 +oid sha256:7257834349cdbca47e513eb244aece2b8292c848daa4f070d586e1e1f0bf4557 +size 9047408 diff --git a/python-nbconvert.changes b/python-nbconvert.changes index 647d580..f8e1bed 100644 --- a/python-nbconvert.changes +++ b/python-nbconvert.changes @@ -1,3 +1,37 @@ +------------------------------------------------------------------- +Sun Aug 11 03:24:23 UTC 2019 - Todd R + +- Update to 5.6.0 + + New Features + * Make a default global location for custom user templates + * Parallel execution improvements + * Added ``store_history`` option to ``preprocess_cell`` and ``run_cell`` + * Simplify the function signature for preprocess() + * Set flag to not always stop kernel execution on errors + * ``setup_preprocessor`` passes kwargs to ``start_new_kernel`` + + Fixing Problems + * Very fast stream outputs no longer drop some messages + * LaTeX errors now properly raise exceptions + * Improve template whitespacing + * Fixes for character in LaTeX exports and filters + * Mistune pinned in preparation for 2.0 release + * Require mock only on Python 2 + * Fix selection of mimetype when converting to HTML + * Correct a few typos + * Update ``export_from_notebook`` names + * Dedenting html in ExtractOutputPreprocessor + * Fix backwards incompatibility with markdown2html + * Fixed html image tagging + * Remove unnecessary css + + Testing, Docs, and Builds + * Pip-install nbconvert on readthedocs.org + * Fix various doc build issues + * Add issue templates + * Added instructions for bumping the version forward when releasing + * Fix Testing on Windows + * Refactored ``test_run_notebooks`` + * Fixed documentation typos + ------------------------------------------------------------------- Wed May 15 15:56:00 UTC 2019 - Todd R diff --git a/python-nbconvert.spec b/python-nbconvert.spec index 11fe42a..39fdb5c 100644 --- a/python-nbconvert.spec +++ b/python-nbconvert.spec @@ -17,9 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define doc_ver 5.4 +%define doc_ver 5.6.0 Name: python-nbconvert -Version: 5.5.0 +Version: 5.6.0 Release: 0 Summary: Conversion of Jupyter Notebooks License: BSD-3-Clause @@ -28,15 +28,20 @@ URL: https://github.com/jupyter/nbconvert Source0: https://files.pythonhosted.org/packages/source/n/nbconvert/nbconvert-%{version}.tar.gz Source1: https://media.readthedocs.org/pdf/nbconvert/%{doc_ver}/nbconvert.pdf Source2: https://media.readthedocs.org/htmlzip/nbconvert/%{doc_ver}/nbconvert.zip -# Test requirements +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +# SECTION test requirements BuildRequires: %{python_module Jinja2} +BuildRequires: %{python_module Pebble} BuildRequires: %{python_module Pygments} BuildRequires: %{python_module bleach} BuildRequires: %{python_module defusedxml} BuildRequires: %{python_module entrypoints >= 0.2.2} BuildRequires: %{python_module ipykernel} BuildRequires: %{python_module ipywidgets} -BuildRequires: %{python_module jupyter_client >= 4.2} +BuildRequires: %{python_module jupyter_client >= 5.3.1} BuildRequires: %{python_module jupyter_core} BuildRequires: %{python_module mistune >= 0.7.4} BuildRequires: %{python_module mock} @@ -44,28 +49,24 @@ BuildRequires: %{python_module nbformat >= 4.4} BuildRequires: %{python_module nose} BuildRequires: %{python_module pandocfilters >= 1.4.1} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testpath} BuildRequires: %{python_module tornado >= 4.0} BuildRequires: %{python_module traitlets >= 4.2} -BuildRequires: fdupes -BuildRequires: python-rpm-macros -BuildRequires: unzip +# /SECTION Requires: jupyter-nbconvert = %{version} -# Python 2 test requirements Requires: python-Jinja2 Requires: python-Pygments Requires: python-bleach Requires: python-defusedxml Requires: python-entrypoints >= 0.2.2 Requires: python-jupyter_core +Requires: python-jupyter_client >= 5.3.1 Requires: python-mistune >= 0.7.4 Requires: python-nbformat >= 4.4 Requires: python-pandocfilters >= 1.4.1 Requires: python-testpath Requires: python-traitlets >= 4.2 Recommends: pandoc -Recommends: python-jupyter_client >= 4.2 Recommends: python-tornado >= 4.0 Suggests: %{name}-latex Provides: python-jupyter_nbconvert = %{version} @@ -129,40 +130,33 @@ cp %{SOURCE1} . unzip %{SOURCE2} -d docs mv docs/nbconvert-* docs/html rm docs/html/.buildinfo +sed -i -e '/^#!\//, 1d' nbconvert/nbconvertapp.py +sed -i -e '/^#!\//, 1d' nbconvert/filters/filter_links.py %build %python_build %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} - -%{python_expand chmod a+x %{buildroot}%{$python_sitelib}/nbconvert/nbconvertapp.py -chmod a+x %{buildroot}%{$python_sitelib}/nbconvert/filters/filter_links.py -sed -i "s|^#!%{_bindir}/env python$|#!%{__$python}|" %{buildroot}%{$python_sitelib}/nbconvert/nbconvertapp.py -sed -i "s|^#!%{_bindir}/env python3$|#!%{__$python}|" %{buildroot}%{$python_sitelib}/nbconvert/filters/filter_links.py -$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/nbconvert/ -$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/nbconvert/ -$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/nbconvert/filters/ -$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/nbconvert/filters/ -%fdupes %{buildroot}%{$python_sitelib} -} mkdir -p %{buildroot}%{_docdir}/jupyter-nbconvert cp %{SOURCE1} %{buildroot}%{_docdir}/jupyter-nbconvert/ cp -r docs/html %{buildroot}%{_docdir}/jupyter-nbconvert/ +%python_expand %fdupes %{buildroot}%{$python_sitelib} %fdupes %{buildroot}%{_docdir}/jupyter-nbconvert/ %check pushd docs export LANG=en_US.UTF-8 +export PYTHONDONTWRITEBYTECODE=1 # test_run_notebooks disabled until IPython 7 incompatibility in tests fixed. # See https://github.com/jupyter/nbconvert/issues/898 +# parallel notebooks don't work reliably on python 2.x %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -$python -m ipykernel.kernelspec --user -%pytest --pyargs -k 'not (test_svg_handling or test_run_notebooks)' nbconvert +$python -B -m ipykernel.kernelspec --user +%pytest --pyargs -k 'not (test_svg_handling or test_run_notebooks or test_parallel_notebooks or test_many_parallel_notebooks)' nbconvert } popd