Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-nbconvert for openSUSE:Factory checked in at 2022-01-03 10:49:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nbconvert (Old) and /work/SRC/openSUSE:Factory/.python-nbconvert.new.1896 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nbconvert" Mon Jan 3 10:49:25 2022 rev:9 rq:943335 version:6.0.7 Changes: -------- --- /work/SRC/openSUSE:Factory/python-nbconvert/python-nbconvert.changes 2021-10-30 23:14:53.483111218 +0200 +++ /work/SRC/openSUSE:Factory/.python-nbconvert.new.1896/python-nbconvert.changes 2022-01-03 10:49:56.703592523 +0100 @@ -1,0 +2,71 @@ +Fri Dec 31 16:28:25 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Revert to 6.0.7 + * We can't have a newer version without traitlets 5. But we + can't have traitlets 5 as long as python36 is active +- Vendorize mistune 0.8.4 + * Add nbconvert-vendorize-mistune.patch + * gh#jupyter/nbconvert#1685 +- Alternativize flavored entry-point. For 6.3: do it with dejavu + +------------------------------------------------------------------- +Thu Dec 30 18:01:32 UTC 2021 - Matej Cepl <mc...@suse.com> + +- Upgrade to the version 6.3.0: + - Bugfixes: + - Update state filter + - Add slide numbering + - Fix HTML templates mentioned in help docs + - Add the ability to fully customize widget_renderer_url + - Enable users to customize MathJax URLs + - Add CLI configuration for disable-chromium-sandbox + - Enables webpdf to be rendered with templates + - Adds dejavu + - Significant Changes?? + - Dropped Python 3.6 and added Python 3.9 + - Convert execute preprocessor wrapper to resemble papermill + - Comprehensive notes?? + - Feature: support static widgets in Reveal.js slides PR + #1553: + - Feature: add speaker notes to Reveal.js template + - Add correct output mimetype to WebPDF exporter + - Set mimetype for webpdf correctly + - Fix docstring issue and a broken link + - Add CLI example for removing cell tag syntax + - Include output of stdin stream in lab template + - Don???t use a shell to call inkscape + - JupyterLab export as HTML with widgets fails to load + widgets + - Move note inside Reveal.js HTML slideshow + - fix issue 1507: broken command line option + ???CSSHTMLHeaderPreprocessor.style= + - Fix order of template paths + - Changed documentation of external_exporters + - Fix template precedence when using a custom template + - add pip to docs envt + - Fix CI By Adding PIP to conda envt for docs build + - Explicitly install pip in docs environment.yml + - small update to docs hide cell + - Allow child templates to override mathjax + - Allow get_export_names to skip configuration check + - Update docs: Tex Live package on Ubuntu + - Test jupyter_client + - Update jupyterlab css + - Webpdf: Use a temporary file instead of an URL + - Applied patch for marking network changes + - Change webpdf display name + - Allow disabling pyppeteer sandbox + - Make pagination configurable in webpdf + - Fix Reveal.js version in documentation + - Fix dangling reference to get_template_paths() + - Solved svg2pdf conversion error if Inkscape is installed + into the default path on a windows machine + - Update version dependency of traitlets + - Update execute.py + - Fix code output indentation when running nbconvert + ???no-input + - #1428 add docstring + - Update nbconvert_library.ipynb + - Supports isolated iframe when converting to HTML + +------------------------------------------------------------------- New: ---- mistune-0.8.4.tar.gz nbconvert-vendorize-mistune.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nbconvert.spec ++++++ --- /var/tmp/diff_new_pack.gMqDzl/_old 2022-01-03 10:49:57.363592776 +0100 +++ /var/tmp/diff_new_pack.gMqDzl/_new 2022-01-03 10:49:57.367592777 +0100 @@ -38,6 +38,10 @@ 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 +# License Source3: BSD-3-Clause +Source3: https://files.pythonhosted.org/packages/source/m/mistune/mistune-0.8.4.tar.gz +# PATCH-FIX-OPENSUSE nbconvert-vendorize-mistune.patch -- gh#jupyter/nbconvert#1685 +Patch1: nbconvert-vendorize-mistune.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -57,6 +61,13 @@ Requires: python-pandocfilters >= 1.4.1 Requires: python-testpath Requires: python-traitlets >= 4.2 +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else +Requires(post): update-alternatives +Requires(postun):update-alternatives +%endif Recommends: pandoc Recommends: python-tornado >= 4.0 Suggests: %{name}-latex @@ -137,9 +148,12 @@ Documentation and help files for Jupyter's notebook converter. %prep -%autosetup -p1 -n nbconvert-%{version} +%autosetup -p1 -n nbconvert-%{version} -b3 cp %{SOURCE1} . +mkdir nbconvert/vendor +touch nbconvert/vendor/__init__.py +cp ../mistune-0.8.4/mistune.py nbconvert/vendor/ unzip %{SOURCE2} -d docs mv docs/nbconvert-* docs/html rm docs/html/.buildinfo @@ -156,6 +170,8 @@ %if ! %{with test} %python_install +%python_clone -a %{buildroot}%{_bindir}/jupyter-nbconvert + mkdir -p %{buildroot}%{_docdir}/jupyter-nbconvert cp %{SOURCE1} %{buildroot}%{_docdir}/jupyter-nbconvert/ @@ -171,21 +187,31 @@ export LANG=en_US.UTF-8 %{python_expand # installed package in :test flavor $python -B -m ipykernel.kernelspec --user -pytest-%{$python_bin_suffix} -v -k 'not test_webpdf' --pyargs nbconvert +# not test_webpdf: no pyppeteer, not even offline +pytest-%{$python_bin_suffix} -v -m 'not network' -k "not test_webpdf" --pyargs nbconvert } popd %endif -%if ! %{with test} +%if !%{with test} +%pre +%python_libalternatives_reset_alternative jupyter-nbconvert + +%post +%python_install_alternative jupyter-nbconvert + +%postun +%python_uninstall_alternative jupyter-nbconvert + %files %{python_files} %license LICENSE %doc README.md %{python_sitelib}/nbconvert-%{version}-py*.egg-info %{python_sitelib}/nbconvert/ +%python_alternative %{_bindir}/jupyter-nbconvert %files -n jupyter-nbconvert %license LICENSE -%{_bindir}/jupyter-nbconvert %dir %{_datadir}/jupyter/ %dir %{_datadir}/jupyter/nbconvert %{_datadir}/jupyter/nbconvert/templates ++++++ nbconvert-vendorize-mistune.patch ++++++ Index: nbconvert-6.0.7/nbconvert/filters/markdown_mistune.py =================================================================== --- nbconvert-6.0.7.orig/nbconvert/filters/markdown_mistune.py +++ nbconvert-6.0.7/nbconvert/filters/markdown_mistune.py @@ -18,7 +18,7 @@ except ImportError: # Python 2 from cgi import escape as html_escape -import mistune +from nbconvert.vendor import mistune from pygments import highlight from pygments.lexers import get_lexer_by_name Index: nbconvert-6.0.7/setup.py =================================================================== --- nbconvert-6.0.7.orig/setup.py +++ nbconvert-6.0.7/setup.py @@ -212,7 +212,6 @@ setup_args = dict( ) setup_args['install_requires'] = [ - 'mistune>=0.8.1,<2', 'jinja2>=2.4', 'pygments>=2.4.1', 'jupyterlab_pygments',