forked from pool/python-nbconvert
Accepting request 944834 from devel:languages:python:jupyter
- Don't build on Python 3.6 (SLE/Leap backports safeguard) (forwarded request 944833 from bnavigator) OBS-URL: https://build.opensuse.org/request/show/944834 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbconvert?expand=0&rev=10
This commit is contained in:
commit
f2701f05d1
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cbbc13a86dfbd4d1b5dee106539de0795b4db156c894c2c5dc382062bbc29002
|
||||
size 896833
|
3
nbconvert-6.4.0.tar.gz
Normal file
3
nbconvert-6.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5412ec774c6db4fccecb8c4ba07ec5d37d6dcf5762593cb3d6ecbbeb562ebbe5
|
||||
size 901586
|
@ -1,7 +1,7 @@
|
||||
Index: nbconvert-6.0.7/nbconvert/filters/markdown_mistune.py
|
||||
Index: nbconvert-6.3.0/nbconvert/filters/markdown_mistune.py
|
||||
===================================================================
|
||||
--- nbconvert-6.0.7.orig/nbconvert/filters/markdown_mistune.py
|
||||
+++ nbconvert-6.0.7/nbconvert/filters/markdown_mistune.py
|
||||
--- nbconvert-6.3.0.orig/nbconvert/filters/markdown_mistune.py
|
||||
+++ nbconvert-6.3.0/nbconvert/filters/markdown_mistune.py
|
||||
@@ -18,7 +18,7 @@ except ImportError:
|
||||
# Python 2
|
||||
from cgi import escape as html_escape
|
||||
@ -11,10 +11,10 @@ Index: nbconvert-6.0.7/nbconvert/filters/markdown_mistune.py
|
||||
|
||||
from pygments import highlight
|
||||
from pygments.lexers import get_lexer_by_name
|
||||
Index: nbconvert-6.0.7/setup.py
|
||||
Index: nbconvert-6.3.0/setup.py
|
||||
===================================================================
|
||||
--- nbconvert-6.0.7.orig/setup.py
|
||||
+++ nbconvert-6.0.7/setup.py
|
||||
--- nbconvert-6.3.0.orig/setup.py
|
||||
+++ nbconvert-6.3.0/setup.py
|
||||
@@ -212,7 +212,6 @@ setup_args = dict(
|
||||
)
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:720196ba36473e3fa6bcbb79b1463640730e0e007acb07aba73cfd9adacae0de
|
||||
size 548761
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fbc32a1803eabb59acee50b81e705fe11c285ff42b7a99e7d4c68b3bc0bd1507
|
||||
size 8652426
|
@ -1,3 +1,39 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 7 22:23:39 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Don't build on Python 3.6 (SLE/Leap backports safeguard)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 6 11:23:57 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 6.4.0
|
||||
* Optionally speed up validation by @gwincr11 in #1672
|
||||
* Adding missing div compared to JupyterLab DOM structure by
|
||||
@SylvainCorlay in #1678
|
||||
* Allow passing extra args to code highlighter by @yuvipanda in
|
||||
#1683
|
||||
* Prevent page breaks in outputs when printing by @SylvainCorlay
|
||||
in #1679
|
||||
* Add collapsers to template by @SylvainCorlay in #1689
|
||||
* Fix recent pandoc latex tables by adding calc and array (#1536,
|
||||
#1566) by @cgevans in #1686
|
||||
* Add an invalid notebook error by @gwincr11 in #1675
|
||||
* Fix typos in execute.py by @TylerAnderson22 in #1692
|
||||
* Modernize latex greek math handling (partially fixes #1673) by
|
||||
@cgevans in #1687
|
||||
* Fix use of deprecated API and update test matrix by @blink1073
|
||||
in #1696
|
||||
* Update nbconvert_library.ipynb by @letterphile in #1695
|
||||
* Changelog for 6.4 by @blink1073 in #1697
|
||||
- Remove the doc package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 31 16:57:55 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Now update to 6.3.0
|
||||
* traitlets 5 is ready
|
||||
* for changelog see below
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 31 16:28:25 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
@ -69,6 +105,66 @@ Thu Dec 30 18:01:32 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
- Update nbconvert_library.ipynb
|
||||
- Supports isolated iframe when converting to HTML
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 30 18:01:32 UTC 2021 - Matej Cepl <mcepl@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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 30 17:35:42 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-nbconvert
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -25,42 +25,43 @@
|
||||
%bcond_with test
|
||||
%endif
|
||||
|
||||
# Note: only update to > 6.0 when there is no python36 Jupyter stack anymore
|
||||
%if 0%{?suse_version} > 1500
|
||||
%bcond_without libalternatives
|
||||
%else
|
||||
%bcond_with libalternatives
|
||||
%endif
|
||||
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define doc_ver 6.0.7
|
||||
Name: python-nbconvert%{psuffix}
|
||||
Version: 6.0.7
|
||||
Version: 6.4.0
|
||||
Release: 0
|
||||
Summary: Conversion of Jupyter Notebooks
|
||||
License: BSD-3-Clause
|
||||
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
|
||||
# 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 base >= 3.7}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
Requires: jupyter-nbconvert = %{version}
|
||||
Requires: python-Jinja2
|
||||
Requires: python-Pygments
|
||||
Requires: python-Jinja2 >= 2.4
|
||||
Requires: python-Pygments >= 2.4.1
|
||||
Requires: python-bleach
|
||||
Requires: python-defusedxml
|
||||
Requires: python-entrypoints >= 0.2.2
|
||||
Requires: python-jupyter-client >= 5.3.1
|
||||
Requires: python-jupyter-core
|
||||
Requires: python-jupyterlab-pygments
|
||||
Requires: python-mistune >= 0.7.4
|
||||
Requires: python-nbclient >= 0.5
|
||||
Requires: python-nbformat >= 4.4
|
||||
Requires: python-pandocfilters >= 1.4.1
|
||||
Requires: python-testpath
|
||||
Requires: python-traitlets >= 4.2
|
||||
Requires: python-traitlets >= 5.0
|
||||
%if %{with libalternatives}
|
||||
Requires: alts
|
||||
BuildRequires: alts
|
||||
@ -75,27 +76,10 @@ Provides: python-jupyter_nbconvert = %{version}
|
||||
Obsoletes: python-jupyter_nbconvert < %{version}
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
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 >= 5.3.1}
|
||||
BuildRequires: %{python_module jupyter-core}
|
||||
BuildRequires: %{python_module jupyterlab-pygments}
|
||||
BuildRequires: %{python_module mistune >= 0.7.4}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module nbclient >= 0.5}
|
||||
BuildRequires: %{python_module nbconvert}
|
||||
BuildRequires: %{python_module nbformat >= 4.4}
|
||||
BuildRequires: %{python_module pandocfilters >= 1.4.1}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module testpath}
|
||||
BuildRequires: %{python_module tornado >= 4.0}
|
||||
BuildRequires: %{python_module traitlets >= 4.2}
|
||||
BuildRequires: %{python_module ipywidgets >= 7}
|
||||
BuildRequires: %{python_module nbconvert = %{version}}
|
||||
BuildRequires: %{python_module pytest-dependency}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
@ -108,7 +92,6 @@ This package provides the python interface.
|
||||
%package -n jupyter-nbconvert
|
||||
Summary: Conversion of Jupyter Notebooks
|
||||
Requires: jupyter-ipykernel
|
||||
Requires: jupyter-jupyter-client >= 4.2
|
||||
Requires: jupyter-jupyter-core
|
||||
Requires: jupyter-nbformat >= 4.4
|
||||
Requires: python3-nbconvert = %{version}
|
||||
@ -138,25 +121,12 @@ via Jinja templates.
|
||||
|
||||
This package pulls in the LaTeX dependencies for nbconvert.
|
||||
|
||||
%package -n jupyter-nbconvert-doc
|
||||
Summary: Documentation for Jupyter's notebook converter
|
||||
Provides: %{python_module jupyter_nbconvert-doc = %{version}}
|
||||
Provides: %{python_module nbconvert-doc = %{version}}
|
||||
Obsoletes: %{python_module jupyter_nbconvert-doc < %{version}}
|
||||
|
||||
%description -n jupyter-nbconvert-doc
|
||||
Documentation and help files for Jupyter's notebook converter.
|
||||
|
||||
%prep
|
||||
%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
|
||||
sed -i -e '/^#!\//, 1d' nbconvert/nbconvertapp.py
|
||||
sed -i -e '/^#!\//, 1d' nbconvert/filters/filter_links.py
|
||||
|
||||
@ -171,11 +141,7 @@ sed -i -e "/nbclient/ s/,<.*'/'/" setup.py
|
||||
%python_install
|
||||
|
||||
%python_clone -a %{buildroot}%{_bindir}/jupyter-nbconvert
|
||||
|
||||
mkdir -p %{buildroot}%{_docdir}/jupyter-nbconvert
|
||||
|
||||
cp %{SOURCE1} %{buildroot}%{_docdir}/jupyter-nbconvert/
|
||||
cp -r docs/html %{buildroot}%{_docdir}/jupyter-nbconvert/
|
||||
%python_clone -a %{buildroot}%{_bindir}/jupyter-dejavu
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%fdupes %{buildroot}%{_docdir}/jupyter-nbconvert/
|
||||
@ -198,7 +164,7 @@ popd
|
||||
%python_libalternatives_reset_alternative jupyter-nbconvert
|
||||
|
||||
%post
|
||||
%python_install_alternative jupyter-nbconvert
|
||||
%python_install_alternative jupyter-nbconvert jupyter-dejavu
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative jupyter-nbconvert
|
||||
@ -206,9 +172,10 @@ popd
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{python_sitelib}/nbconvert-%{version}-py*.egg-info
|
||||
%{python_sitelib}/nbconvert-%{version}*-info
|
||||
%{python_sitelib}/nbconvert/
|
||||
%python_alternative %{_bindir}/jupyter-nbconvert
|
||||
%python_alternative %{_bindir}/jupyter-dejavu
|
||||
|
||||
%files -n jupyter-nbconvert
|
||||
%license LICENSE
|
||||
@ -218,12 +185,6 @@ popd
|
||||
|
||||
%files -n jupyter-nbconvert-latex
|
||||
%license LICENSE
|
||||
|
||||
%files -n jupyter-nbconvert-doc
|
||||
%license LICENSE
|
||||
%dir %{_docdir}/jupyter-nbconvert/
|
||||
%{_docdir}/jupyter-nbconvert/nbconvert.pdf
|
||||
%{_docdir}/jupyter-nbconvert/html
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user