diff --git a/.gitignore b/.gitignore index 9ddcc22..d11949f 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ /nbconvert-6.5.3.tar.gz /nbconvert-7.2.5.tar.gz /style.min.css +/nbconvert-7.9.0.tar.gz +/nbconvert-7.9.1.tar.gz diff --git a/python-nbconvert.spec b/python-nbconvert.spec index ed90fe4..7cfd5c2 100644 --- a/python-nbconvert.spec +++ b/python-nbconvert.spec @@ -8,17 +8,13 @@ %bcond_without check Name: python-%{pypi_name} -Version: 7.2.5 +Version: 7.9.1 Release: %autorelease Summary: Converting Jupyter Notebooks License: BSD and MIT URL: http://jupyter.org Source0: %pypi_source -# See -# https://github.com/jupyter/nbconvert/blob/main/hatch_build.py -# https://github.com/jupyter/nbconvert/issues/1896 -Source1: https://cdn.jupyter.org/notebook/5.4.0/style/style.min.css BuildArch: noarch @@ -64,9 +60,6 @@ sed -i '/"pytest-dependency",/d' pyproject.toml sed -i '/pyppeteer/d' pyproject.toml sed -i 's/"sphinx==.*"/"sphinx"/' pyproject.toml -mkdir -p share/templates/classic/static/ -cp -v %{SOURCE1} share/templates/classic/static/style.css - %generate_buildrequires %pyproject_buildrequires %{?with_check:-x test} %{?with_doc:-x docs} @@ -90,19 +83,15 @@ chmod 755 %{buildroot}%{python3_sitelib}/%{pypi_name}/nbconvertapp.py %if %{with check} %check -# Some tests need pyppeteer, some fail on unclosed context zmq.asyncio.Context() -# and some run in subprocess and therefore don't have "nbconvert.tests" in PYTHONPATH -%{__python3} -m pytest -W ignore::DeprecationWarning -k "\ - not test_export and \ - not test_webpdf_without_chromium and \ - not test_webpdf_with_chromium and \ - not test_no_input and \ - not test_basic_execution and \ - not test_mixed_markdown_execution and \ - not test_populate_language_info and \ - not test_preprocess_cell and \ +# Some tests are using templates provided by the previous +# version of nbconvert. +%pytest -W ignore::DeprecationWarning -k "\ not test_convert_full_qualified_name and \ - not test_post_processor" + not test_post_processor and \ + not test_language_code_error and \ + not test_language_code_not_set and \ + not test_mermaid_output and \ + not test_set_language_code" %endif %files -n python3-%{pypi_name} -f %{pyproject_files} diff --git a/sources b/sources index 6485990..064ddf7 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -SHA512 (nbconvert-7.2.5.tar.gz) = dc754c073d699a8a89db87f316f0bbcef93a271233a7616b4d150565283bfee33d25128a7ea5e94774a17272cd427f083869dfafa6f2ced00d8b5601f29f0295 -SHA512 (style.min.css) = 1205a8927b78e2b8bcddebdd5a050ce6834135efe0e0d3a8003e849499fffe144e8e523048501d85f4300ffa91af346f9cb8eb6ea6ca3e07fd7d6a1a3c368cf0 +SHA512 (nbconvert-7.9.1.tar.gz) = d50cec9fdb89d1b6e31fe24aa9146207aea86438b96d8f7a5d9ee4d18f41f0c53ae1855e0701d2ddceb00b5e97bf849c63790a674ac2346546ab7285ee3c9a6e