Hello community,

here is the log from the commit of package python-jupyter_widgetsnbextension 
for openSUSE:Factory checked in at 2017-10-03 23:17:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter_widgetsnbextension (Old)
 and      /work/SRC/openSUSE:Factory/.python-jupyter_widgetsnbextension.new 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jupyter_widgetsnbextension"

Tue Oct  3 23:17:12 2017 rev:2 rq:527625 version:3.0.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jupyter_widgetsnbextension/python-jupyter_widgetsnbextension.changes
      2017-05-17 17:14:21.614863705 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jupyter_widgetsnbextension.new/python-jupyter_widgetsnbextension.changes
 2017-10-03 23:17:13.262958783 +0200
@@ -1,0 +2,11 @@
+Wed Sep 20 22:03:42 UTC 2017 - [email protected]
+
+- Fix license download urls
+
+-------------------------------------------------------------------
+Tue Sep 19 21:17:09 UTC 2017 - [email protected]
+
+- Update to version 3.0.3
+  * No changelog
+
+-------------------------------------------------------------------

Old:
----
  widgetsnbextension-2.0.0.tar.gz

New:
----
  widgetsnbextension-3.0.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-jupyter_widgetsnbextension.spec ++++++
--- /var/tmp/diff_new_pack.fCb2D4/_old  2017-10-03 23:17:14.102840583 +0200
+++ /var/tmp/diff_new_pack.fCb2D4/_new  2017-10-03 23:17:14.110839457 +0200
@@ -17,27 +17,33 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define         oldpython python
 Name:           python-jupyter_widgetsnbextension
-Version:        2.0.0
+Version:        3.0.3
 Release:        0
-# Matching ipwywidgets version, for the license files
-%define ipywidver 6.0.0
 Summary:        IPython HTML widgets for Jupyter
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 Url:            http://ipython.org
 Source:         
https://files.pythonhosted.org/packages/source/w/widgetsnbextension/widgetsnbextension-%{version}.tar.gz
 # This package is created from inside the ipywidgets github project at the 
same time, so use its license.
-Source10:       
https://raw.githubusercontent.com/jupyter-widgets/ipywidgets/%{ipywidver}/COPYING.md
-Source11:       
https://raw.githubusercontent.com/jupyter-widgets/ipywidgets/%{ipywidver}/LICENSE
+Source10:       
https://raw.githubusercontent.com/jupyter-widgets/ipywidgets/%%40jupyter-widgets/notebook-manager%%40%{version}/COPYING.md
+Source11:       
https://raw.githubusercontent.com/jupyter-widgets/ipywidgets/%%40jupyter-widgets/notebook-manager%%40%{version}/LICENSE
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module jupyter_notebook >= 4.4.1}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+%ifpython2
 Requires:       python-jupyter_notebook >= 4.4.1
-Requires:       %{name}-nbextension = %{version}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Requires:       python3-jupyter_widgetsnbextension
+%endif
+%ifpython3
+Provides:       %{oldpython}-jupyter_widgetsnbextension-nbextension = 
%{version}
+Obsoletes:      %{oldpython}-jupyter_widgetsnbextension-nbextension < 
%{version}
+Requires(post):   python3-jupyter_notebook >= 4.4.1
+Requires(preun):  python3-jupyter_notebook >= 4.4.1
+%endif
 BuildArch:      noarch
 %python_subpackages
 
@@ -48,15 +54,6 @@
 would also install `ipywidgets`. Refer to that package's
 documentation for usage instructions.
 
-%package -n %{name}-nbextension
-Summary:        Notebook extension for %{name}
-Provides:       %{python_module jupyter_widgetsnbextension-nbextension = 
%{version}}
-
-%description -n %{name}-nbextension
-This package provides the python version-independent nbextension files
-for %{name}. It is useless on its own, the proper python version-
-specific package will require this.
-
 %prep
 %setup -q -n widgetsnbextension-%{version}
 cp %{SOURCE10} .
@@ -69,15 +66,21 @@
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%post -n python3-jupyter_widgetsnbextension
+jupyter nbextension enable --system --py widgetsnbextension
+exit 0
+
+%preun -n python3-jupyter_widgetsnbextension
+if [ $1 == 0 ]   && [ -d %{python3_sitelib}/widgetsnbextension/ ] ; then
+    jupyter nbextension disable --system --py widgetsnbextension
+fi
+exit 0
+
 %files %{python_files}
 %defattr(-,root,root,-)
 %doc COPYING.md LICENSE
 %{python_sitelib}/widgetsnbextension-%{version}-py*.egg-info
 %{python_sitelib}/widgetsnbextension/
-
-%files -n %{name}-nbextension
-%defattr(-,root,root,-)
-%doc COPYING.md LICENSE
-%{_datadir}/jupyter/nbextensions/jupyter-js-widgets/
+%python3_only %{_datadir}/jupyter/nbextensions/jupyter-js-widgets/
 
 %changelog

++++++ widgetsnbextension-2.0.0.tar.gz -> widgetsnbextension-3.0.3.tar.gz ++++++
++++ 124992 lines of diff (skipped)


Reply via email to