Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-voila for openSUSE:Factory checked in at 2022-01-08 23:23:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-voila (Old) and /work/SRC/openSUSE:Factory/.python-voila.new.1892 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-voila" Sat Jan 8 23:23:52 2022 rev:9 rq:944832 version:0.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-voila/python-voila.changes 2020-04-07 10:31:42.766529176 +0200 +++ /work/SRC/openSUSE:Factory/.python-voila.new.1892/python-voila.changes 2022-01-08 23:24:33.606277726 +0100 @@ -1,0 +2,9 @@ +Fri Jan 7 21:37:33 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Update to 0.3.0: + * See CHANGELOG.md for full changelog since 0.1.20 + * Compatibility with updated jupyterlab and notebook +- Test in multibuild +- Use correct jinja2 test templates + +------------------------------------------------------------------- Old: ---- voila-0.1.21.tar.gz New: ---- _multibuild python-voila-rpmlintrc voila-0.3.0-gh.tar.gz voila-0.3.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-voila.spec ++++++ --- /var/tmp/diff_new_pack.qDDr0X/_old 2022-01-08 23:24:34.522278474 +0100 +++ /var/tmp/diff_new_pack.qDDr0X/_new 2022-01-08 23:24:34.526278477 +0100 @@ -1,7 +1,7 @@ # -# spec file for package python-voila +# spec file # -# Copyright (c) 2020 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 @@ -16,33 +16,61 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif + +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + +%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 -Name: python-voila -Version: 0.1.21 +Name: python-voila%{psuffix} +Version: 0.3.0 Release: 0 Summary: Plugin for serving read-only live Jupyter notebooks License: BSD-3-Clause -URL: https://github.com/QuantStack/voila +URL: https://github.com/voila-dashboards/voila Source: https://files.pythonhosted.org/packages/source/v/voila/voila-%{version}.tar.gz -BuildRequires: %{python_module Pygments >= 2.4.1} -BuildRequires: %{python_module async_generator} -BuildRequires: %{python_module jupyter-server >= 0.1.0} -BuildRequires: %{python_module jupyterlab-pygments >= 0.1.0} -BuildRequires: %{python_module nbconvert >= 5.5} -BuildRequires: %{python_module pytest-tornasync} -BuildRequires: %{python_module pytest} +Source1: https://github.com/voila-dashboards/voila/archive/refs/tags/v%{version}.tar.gz#/voila-%{version}-gh.tar.gz +Source99: python-voila-rpmlintrc +BuildRequires: %{python_module jupyter-packaging >= 0.10} BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: jupyter-jupyterlab-filesystem BuildRequires: jupyter-notebook-filesystem BuildRequires: python-rpm-macros Requires: jupyter-voila = %{version} -Requires: python-Pygments >= 2.4.1 -Requires: python-async_generator -Requires: python-jupyter-server >= 0.1.0 -Requires: python-jupyterlab-pygments >= 0.1.0 -Requires: python-nbconvert >= 5.5 -Requires: python-notebook +Requires: python-jupyter-client >= 6.1.3 +Requires: python-jupyter-server >= 0.3.0 +Requires: python-nbclient >= 0.4.0 +Requires: python-nbconvert >= 6.0.0 +Requires: python-websockets >= 9.0 +%if %{with libalternatives} +Requires: alts +BuildRequires: alts +%else +Requires(post): update-alternatives +Requires(postun):update-alternatives +%endif +%if %{with test} +BuildRequires: %{python_module ipywidgets} +BuildRequires: %{python_module matplotlib-web} +BuildRequires: %{python_module matplotlib} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pandas} +BuildRequires: %{python_module pytest-tornasync} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module voila = %{version}} +%endif BuildArch: noarch %python_subpackages @@ -63,9 +91,6 @@ %package -n jupyter-voila Summary: Plugin for serving read-only live Jupyter notebooksmacros -Requires: jupyter-jupyter-server >= 0.0.3 -Requires: jupyter-nbconvert >= 5.4 -Requires: jupyter-notebook Requires: python3-voila = %{version} %description -n jupyter-voila @@ -85,32 +110,54 @@ %prep %setup -q -n voila-%{version} +tar xf %{SOURCE1} --strip-components=1 voila-%{version}/tests +sed -i s/mistune.Renderer/nbconvert.vendor.mistune.Renderer/ voila/exporter.py %build %python_build +%if !%{with test} %install %python_install +%python_clone -a %{buildroot}%{_bindir}/voila %jupyter_move_config %python_expand %fdupes %{buildroot}%{$python_sitelib} +%fdupes %{buildroot}%{_jupyter_prefix} +%endif +%if %{with test} %check -# Does not ship tests -#%%pytest +export JUPYTER_PATH=%{_jupyter_prefix}:$PWD/tests/test_template/share/jupyter:$PWD/tests/skip_template/share/jupyter/ +export VOILA_TEST_DEBUG=1 +%pytest tests +%endif + +%if !%{with test} +%pre +%python_libalternatives_reset_alternative voila + +%post +%python_install_alternative voila + +%postun +%python_uninstall_alternative voila %files %{python_files} %license LICENSE -%{python_sitelib}/voila-%{version}-py*.egg-info +%{python_sitelib}/voila-%{version}*-info %{python_sitelib}/voila/ +%python_alternative %{_bindir}/voila %files -n jupyter-voila %license LICENSE %doc README.md -%{_bindir}/voila -%config %{_jupyter_servextension_confdir}/voila.json -%config %{_jupyter_server_confdir}/voila.json -%config %{_jupyter_nb_notebook_confdir}/voila.json +%{?_jupyter_config} %{_jupyter_servextension_confdir}/voila.json +%{?_jupyter_config} %{_jupyter_server_confdir}/voila.json +%{?_jupyter_config} %{_jupyter_nb_notebook_confdir}/voila.json %{_jupyter_nbextension_dir}/voila/ +%dir %{_jupyter_labextensions_dir3}/@voila-dashboards/ +%{_jupyter_labextensions_dir3}/@voila-dashboards/jupyterlab-preview %{_jupyter_prefix}/voila/ +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild> (No newline at EOF) ++++++ python-voila-rpmlintrc ++++++ # required by JS, not a backup file addFilter("filelist-forbidden .*json.orig") addFilter("backup-file-in-package .*json.orig") (No newline at EOF) ++++++ voila-0.1.21.tar.gz -> voila-0.3.0.tar.gz ++++++ ++++ 15938 lines of diff (skipped)