forked from pool/python-nbconvert
Accepting request 722422 from devel:languages:python:jupyter
OBS-URL: https://build.opensuse.org/request/show/722422 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-nbconvert?expand=0&rev=2
This commit is contained in:
commit
6187725cfc
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:138381baa41d83584459b5cfecfc38c800ccf1f37d9ddd0bd440783346a4c39c
|
||||
size 583216
|
3
nbconvert-5.6.0.tar.gz
Normal file
3
nbconvert-5.6.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:427a468ec26e7d68a529b95f578d5cbf018cb4c1f889e897681c2b6d11897695
|
||||
size 701743
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c05d17f1ba05085eda33de4cdc78932dd8cb74a21e0fb0b69cd0ecc929d256d7
|
||||
size 364215
|
||||
oid sha256:b6ddff73f2548392c1f51c7964f2486edf2ccf7dc498b8ae797d62aea83ddbd9
|
||||
size 520642
|
||||
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f00355c7f57c637573f72fe4fbe6334b3fd58f43e121e21dfd571835b5bf8cfd
|
||||
size 8804143
|
||||
oid sha256:7257834349cdbca47e513eb244aece2b8292c848daa4f070d586e1e1f0bf4557
|
||||
size 9047408
|
||||
|
@ -1,3 +1,37 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 11 03:24:23 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
- 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 <toddrme2178@gmail.com>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user