Hello community,

here is the log from the commit of package python-pyviz-comms for 
openSUSE:Factory checked in at 2020-02-03 11:13:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyviz-comms (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyviz-comms.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyviz-comms"

Mon Feb  3 11:13:10 2020 rev:4 rq:768809 version:0.7.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyviz-comms/python-pyviz-comms.changes    
2019-05-07 23:16:19.528574271 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pyviz-comms.new.26092/python-pyviz-comms.changes
 2020-02-03 11:13:15.237842981 +0100
@@ -1,0 +2,6 @@
+Thu Jan 30 15:25:12 UTC 2020 - Todd R <[email protected]>
+
+- Update to 0.7.3
+  * Add ability to register on_error and on_stdout handlers on Comms.
+
+-------------------------------------------------------------------

Old:
----
  pyviz_comms-0.7.2.tar.gz

New:
----
  pyviz_comms-0.7.3.tar.gz

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

Other differences:
------------------
++++++ python-pyviz-comms.spec ++++++
--- /var/tmp/diff_new_pack.1CAggN/_old  2020-02-03 11:13:16.201843468 +0100
+++ /var/tmp/diff_new_pack.1CAggN/_new  2020-02-03 11:13:16.205843470 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyviz-comms
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -13,16 +13,17 @@
 # published by the Open Source Initiative.
 
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pyviz-comms
-Version:        0.7.2
+Version:        0.7.3
 Release:        0
-License:        BSD-3-Clause
 Summary:        Tool to launch jobs, organize the output, and dissect the 
results
-Url:            https://github.com/pyviz/pyviz_comms
+License:        BSD-3-Clause
 Group:          Development/Languages/Python
+URL:            https://github.com/pyviz/pyviz_comms
 Source0:        
https://files.pythonhosted.org/packages/source/p/pyviz-comms/pyviz_comms-%{version}.tar.gz
 Source100:      python-pyviz-comms-rpmlintrc
 BuildRequires:  %{python_module setuptools}

++++++ pyviz_comms-0.7.2.tar.gz -> pyviz_comms-0.7.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyviz_comms-0.7.2/PKG-INFO 
new/pyviz_comms-0.7.3/PKG-INFO
--- old/pyviz_comms-0.7.2/PKG-INFO      2019-03-23 22:08:22.000000000 +0100
+++ new/pyviz_comms-0.7.3/PKG-INFO      2020-01-22 02:42:51.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pyviz_comms
-Version: 0.7.2
+Version: 0.7.3
 Summary: Bidirectional communication for the PyViz ecosystem.
 Home-page: http://pyviz.org
 Author: PyViz developers
@@ -38,13 +38,14 @@
         track that of JupyterLab, so users seeking to find extension releases 
that are compatible with their JupyterLab
         installation may refer to the below table.
         
-        ###### Compatible JupyterLab and jupyterlab_bokeh versions
+        ###### Compatible JupyterLab and jupyterlab_pyviz versions
         
         | JupyterLab    | jupyterlab_pyviz |
         | ------------- | ---------------- |
         | 0.33.x        | 0.6.0            |
         | 0.34.x        | 0.6.1-0.6.2      |
-        | 0.35.x        | 0.6.3-0.7.1      |
+        | 0.35.x        | 0.6.3-0.7.2      |
+        | 1.0.x         | 0.8.0            |
         
         ## Developing the Jupyterlab extension
         
@@ -82,6 +83,6 @@
 Classifier: Topic :: Scientific/Engineering
 Classifier: Topic :: Software Development :: Libraries
 Description-Content-Type: text/markdown
-Provides-Extra: build
 Provides-Extra: tests
+Provides-Extra: build
 Provides-Extra: all
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyviz_comms-0.7.2/README.md 
new/pyviz_comms-0.7.3/README.md
--- old/pyviz_comms-0.7.2/README.md     2019-03-23 22:06:11.000000000 +0100
+++ new/pyviz_comms-0.7.3/README.md     2020-01-22 02:41:51.000000000 +0100
@@ -28,13 +28,14 @@
 track that of JupyterLab, so users seeking to find extension releases that are 
compatible with their JupyterLab
 installation may refer to the below table.
 
-###### Compatible JupyterLab and jupyterlab_bokeh versions
+###### Compatible JupyterLab and jupyterlab_pyviz versions
 
 | JupyterLab    | jupyterlab_pyviz |
 | ------------- | ---------------- |
 | 0.33.x        | 0.6.0            |
 | 0.34.x        | 0.6.1-0.6.2      |
-| 0.35.x        | 0.6.3-0.7.1      |
+| 0.35.x        | 0.6.3-0.7.2      |
+| 1.0.x         | 0.8.0            |
 
 ## Developing the Jupyterlab extension
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyviz_comms-0.7.2/pyproject.toml 
new/pyviz_comms-0.7.3/pyproject.toml
--- old/pyviz_comms-0.7.2/pyproject.toml        1970-01-01 01:00:00.000000000 
+0100
+++ new/pyviz_comms-0.7.3/pyproject.toml        2020-01-22 02:41:51.000000000 
+0100
@@ -0,0 +1,6 @@
+[build-system]
+requires = [
+    "param >=1.7.0",
+    "pyct >=0.4.4",
+    "setuptools >=30.3.0"
+]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyviz_comms-0.7.2/pyviz_comms/.version 
new/pyviz_comms-0.7.3/pyviz_comms/.version
--- old/pyviz_comms-0.7.2/pyviz_comms/.version  2019-03-23 22:08:22.000000000 
+0100
+++ new/pyviz_comms-0.7.3/pyviz_comms/.version  2020-01-22 02:42:51.000000000 
+0100
@@ -1 +1 @@
-{"git_describe": "v0.7.2-0-g9f7a469", "version_string": "0.7.2"}
\ No newline at end of file
+{"git_describe": "v0.7.3-0-g4aaed63", "version_string": "0.7.3"}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyviz_comms-0.7.2/pyviz_comms/__init__.py 
new/pyviz_comms-0.7.3/pyviz_comms/__init__.py
--- old/pyviz_comms-0.7.2/pyviz_comms/__init__.py       2019-03-23 
22:06:11.000000000 +0100
+++ new/pyviz_comms-0.7.3/pyviz_comms/__init__.py       2020-01-22 
02:41:51.000000000 +0100
@@ -68,20 +68,49 @@
 }
 """
 
+ABORT_JS = """
+if (!window.PyViz) {{
+  return;
+}}
+var events = [];
+var receiver = window.PyViz.receivers['{plot_id}'];
+if (receiver &&
+        receiver._partial &&
+        receiver._partial.content &&
+        receiver._partial.content.events) {{
+    events = receiver._partial.content.events;
+}}
+
+var value = cb_obj['{change}'];
+
+{transform}
+
+for (var event of events) {{
+  if ((event.kind === 'ModelChanged') && (event.attr === '{change}') &&
+      (cb_obj.id === event.model.id) &&
+      (JSON.stringify(value) === JSON.stringify(event.new))) {{
+    events.pop(events.indexOf(event))
+    return;
+  }}
+}}
+"""
 
 # Following JS block becomes body of the message handler callback
 bokeh_msg_handler = """
 var plot_id = "{plot_id}";
-if (plot_id in window.PyViz.plot_index) {{
+
+if ((plot_id in window.PyViz.plot_index) && (window.PyViz.plot_index[plot_id] 
!= null)) {{
   var plot = window.PyViz.plot_index[plot_id];
-}} else {{
+}} else if ((Bokeh !== undefined) && (plot_id in Bokeh.index)) {{
   var plot = Bokeh.index[plot_id];
 }}
 
+if (plot == null) {{
+  return
+}}
+
 if (plot_id in window.PyViz.receivers) {{
   var receiver = window.PyViz.receivers[plot_id];
-}} else if (Bokeh.protocol === undefined) {{
-  return;
 }} else {{
   var receiver = new Bokeh.protocol.Receiver();
   window.PyViz.receivers[plot_id] = receiver;
@@ -180,7 +209,11 @@
 }}
 
 // Add current event to queue and process queue if not blocked
-event_name = cb_obj.event_name
+var event_name = cb_obj.event_name;
+if (event_name === undefined) {{
+  // we are a widget not an event... fake a key.
+  event_name = Object.keys(data).join(',');
+}}
 data['comm_id'] = "{comm_id}";
 timeout = comm_status.time + {timeout};
 if ((comm_status.blocked && (Date.now() < timeout))) {{
@@ -244,11 +277,13 @@
 
     js_template = ''
 
-    def __init__(self, id=None, on_msg=None):
+    def __init__(self, id=None, on_msg=None, on_error=None, on_stdout=None):
         """
         Initializes a Comms object
         """
         self._on_msg = on_msg
+        self._on_error = on_error
+        self._on_stdout = on_stdout
         self._comm = None
         super(Comm, self).__init__(id = id if id else uuid.uuid4().hex)
 
@@ -301,7 +336,16 @@
                 # it and then send it to the frontend
                 with StandardOutput() as stdout:
                     self._on_msg(msg)
+                if stdout:
+                    try:
+                        self._on_stdout(stdout)
+                    except:
+                        pass
         except Exception as e:
+            try:
+                self._on_error(e)
+            except:
+                pass
             error = '\n'
             frames = traceback.extract_tb(sys.exc_info()[2])
             for frame in frames[-10:]:
@@ -406,12 +450,12 @@
     </script>
     """
 
-    def __init__(self, id=None, on_msg=None):
+    def __init__(self, id=None, on_msg=None, on_error=None, on_stdout=None):
         """
         Initializes a Comms object
         """
         from IPython import get_ipython
-        super(JupyterCommJS, self).__init__(id, on_msg)
+        super(JupyterCommJS, self).__init__(id, on_msg, on_error, on_stdout)
         self.manager = get_ipython().kernel.comm_manager
         self.manager.register_target(self.id, self._handle_open)
 
@@ -468,14 +512,14 @@
     client_comm = Comm
 
     @classmethod
-    def get_server_comm(cls, on_msg=None, id=None):
-        comm = cls.server_comm(id, on_msg)
+    def get_server_comm(cls, on_msg=None, id=None, on_error=None, 
on_stdout=None):
+        comm = cls.server_comm(id, on_msg, on_error, on_stdout)
         cls._comms[comm.id] = comm
         return comm
 
     @classmethod
-    def get_client_comm(cls, on_msg=None, id=None):
-        comm = cls.client_comm(id, on_msg)
+    def get_client_comm(cls, on_msg=None, id=None, on_error=None, 
on_stdout=None):
+        comm = cls.client_comm(id, on_msg, on_error, on_stdout)
         cls._comms[comm.id] = comm
         return comm
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyviz_comms-0.7.2/pyviz_comms.egg-info/PKG-INFO 
new/pyviz_comms-0.7.3/pyviz_comms.egg-info/PKG-INFO
--- old/pyviz_comms-0.7.2/pyviz_comms.egg-info/PKG-INFO 2019-03-23 
22:08:22.000000000 +0100
+++ new/pyviz_comms-0.7.3/pyviz_comms.egg-info/PKG-INFO 2020-01-22 
02:42:51.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pyviz-comms
-Version: 0.7.2
+Version: 0.7.3
 Summary: Bidirectional communication for the PyViz ecosystem.
 Home-page: http://pyviz.org
 Author: PyViz developers
@@ -38,13 +38,14 @@
         track that of JupyterLab, so users seeking to find extension releases 
that are compatible with their JupyterLab
         installation may refer to the below table.
         
-        ###### Compatible JupyterLab and jupyterlab_bokeh versions
+        ###### Compatible JupyterLab and jupyterlab_pyviz versions
         
         | JupyterLab    | jupyterlab_pyviz |
         | ------------- | ---------------- |
         | 0.33.x        | 0.6.0            |
         | 0.34.x        | 0.6.1-0.6.2      |
-        | 0.35.x        | 0.6.3-0.7.1      |
+        | 0.35.x        | 0.6.3-0.7.2      |
+        | 1.0.x         | 0.8.0            |
         
         ## Developing the Jupyterlab extension
         
@@ -82,6 +83,6 @@
 Classifier: Topic :: Scientific/Engineering
 Classifier: Topic :: Software Development :: Libraries
 Description-Content-Type: text/markdown
-Provides-Extra: build
 Provides-Extra: tests
+Provides-Extra: build
 Provides-Extra: all
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyviz_comms-0.7.2/pyviz_comms.egg-info/SOURCES.txt 
new/pyviz_comms-0.7.3/pyviz_comms.egg-info/SOURCES.txt
--- old/pyviz_comms-0.7.2/pyviz_comms.egg-info/SOURCES.txt      2019-03-23 
22:08:22.000000000 +0100
+++ new/pyviz_comms-0.7.3/pyviz_comms.egg-info/SOURCES.txt      2020-01-22 
02:42:51.000000000 +0100
@@ -1,6 +1,7 @@
 LICENSE.txt
 MANIFEST.in
 README.md
+pyproject.toml
 setup.py
 pyviz_comms/.version
 pyviz_comms/__init__.py


Reply via email to