Hello community,

here is the log from the commit of package python-qtconsole for 
openSUSE:Leap:15.2 checked in at 2020-04-14 14:20:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-qtconsole (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-qtconsole.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-qtconsole"

Tue Apr 14 14:20:37 2020 rev:2 rq:793608 version:4.7.2

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-qtconsole/python-qtconsole.changes      
2020-03-19 11:03:54.155897745 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-qtconsole.new.3248/python-qtconsole.changes
    2020-04-14 14:20:54.749271416 +0200
@@ -1,0 +2,14 @@
+Sat Mar 28 16:34:48 UTC 2020 - Arun Persaud <[email protected]>
+
+- update to version 4.7.2:
+  * Set updated prompt as previous prompt object in JupyterWidget.
+  * Fix some Qt incorrect imports.
+
+-------------------------------------------------------------------
+Thu Mar 12 19:40:04 UTC 2020 - Arun Persaud <[email protected]>
+
+- update to version 4.7.1:
+  * Remove common prefix from path completions.
+  * Use QtWidgets instead of QtGui to create QMenu instances.
+
+-------------------------------------------------------------------

Old:
----
  qtconsole-4.7.0.tar.gz

New:
----
  qtconsole-4.7.2.tar.gz

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

Other differences:
------------------
++++++ python-qtconsole.spec ++++++
--- /var/tmp/diff_new_pack.3mKD7d/_old  2020-04-14 14:20:55.097271675 +0200
+++ /var/tmp/diff_new_pack.3mKD7d/_new  2020-04-14 14:20:55.097271675 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         skip_python2 1
 Name:           python-qtconsole
-Version:        4.7.0
+Version:        4.7.2
 Release:        0
 Summary:        Jupyter Qt console
 License:        BSD-3-Clause
@@ -36,8 +36,9 @@
 BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
 BuildRequires:  update-desktop-files
-Requires:       python-QtPy
+Requires:       jupyter-qtconsole = %{version}
 Requires:       python-Pygments
+Requires:       python-QtPy
 Requires:       python-ipykernel >= 4.1
 Requires:       python-ipython_genutils
 Requires:       python-jupyter-client >= 4.1
@@ -46,7 +47,6 @@
 Requires:       python-traitlets
 Provides:       python-jupyter_qtconsole = %{version}
 Obsoletes:      python-jupyter_qtconsole < %{version}
-Requires:       jupyter-qtconsole = %{version}
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module Pygments}
@@ -57,13 +57,12 @@
 BuildRequires:  %{python_module jupyter-client >= 4.1}
 BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module pexpect}
-BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module pytest-qt}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module qt5}
 BuildRequires:  %{python_module sip}
 BuildRequires:  %{python_module traitlets}
 # /SECTION
-
 %python_subpackages
 
 %description
@@ -74,17 +73,18 @@
 
 %package     -n jupyter-qtconsole
 Summary:        Jupyter Qt console
-Requires:       python3-qtconsole = %{version}
-Requires:       python3-jupyter-core
+Group:          Development/Languages/Python
 Requires:       jupyter-ipykernel >= 4.1
 Requires:       jupyter-jupyter-client >= 4.1
 Requires:       jupyter-jupyter-core
+Requires:       python3-jupyter-core
+Requires:       python3-qtconsole = %{version}
 Conflicts:      python3-jupyter_qtconsole < 4.4.4
 Provides:       jupyter-qtconsole-doc = %{version}
 Obsoletes:      jupyter-qtconsole-doc < %{version}
-Provides:       python-qtconsole-doc = %{version}
-Provides:       %{python_module qtconsole-doc = %{version}}
 Provides:       %{python_module jupyter_qtconsole-doc = %{version}}
+Provides:       %{python_module qtconsole-doc = %{version}}
+Provides:       python-qtconsole-doc = %{version}
 Obsoletes:      %{python_module jupyter_qtconsole-doc < %{version}}
 
 %description -n jupyter-qtconsole

++++++ qtconsole-4.7.0.tar.gz -> qtconsole-4.7.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.7.0/PKG-INFO new/qtconsole-4.7.2/PKG-INFO
--- old/qtconsole-4.7.0/PKG-INFO        2020-02-29 20:23:10.000000000 +0100
+++ new/qtconsole-4.7.2/PKG-INFO        2020-03-25 17:37:20.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: qtconsole
-Version: 4.7.0
+Version: 4.7.2
 Summary: Jupyter Qt console
 Home-page: http://jupyter.org
 Author: Jupyter Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.7.0/docs/source/changelog.rst 
new/qtconsole-4.7.2/docs/source/changelog.rst
--- old/qtconsole-4.7.0/docs/source/changelog.rst       2020-02-29 
20:20:04.000000000 +0100
+++ new/qtconsole-4.7.2/docs/source/changelog.rst       2020-03-25 
17:24:12.000000000 +0100
@@ -8,6 +8,26 @@
 4.7
 ~~~
 
+.. _4.7.2:
+
+4.7.2
+-----
+
+`4.7.2 on GitHub <https://github.com/jupyter/qtconsole/milestones/4.7.2>`__
+
+* Set updated prompt as previous prompt object in JupyterWidget.
+* Fix some Qt incorrect imports.
+
+.. _4.7.1:
+
+4.7.1
+-----
+
+`4.7.1 on GitHub <https://github.com/jupyter/qtconsole/milestones/4.7.1>`__
+
+* Remove common prefix from path completions.
+* Use QtWidgets instead of QtGui to create QMenu instances.
+
 4.7.0
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.7.0/qtconsole/_version.py 
new/qtconsole-4.7.2/qtconsole/_version.py
--- old/qtconsole-4.7.0/qtconsole/_version.py   2020-02-29 20:22:31.000000000 
+0100
+++ new/qtconsole-4.7.2/qtconsole/_version.py   2020-03-25 17:27:40.000000000 
+0100
@@ -1,2 +1,2 @@
-version_info = (4, 7, 0)
+version_info = (4, 7, 2)
 __version__ = '.'.join(map(str, version_info))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.7.0/qtconsole/completion_widget.py 
new/qtconsole-4.7.2/qtconsole/completion_widget.py
--- old/qtconsole-4.7.0/qtconsole/completion_widget.py  2020-01-25 
17:50:31.000000000 +0100
+++ new/qtconsole-4.7.2/qtconsole/completion_widget.py  2020-03-03 
02:19:12.000000000 +0100
@@ -106,16 +106,30 @@
         text_edit = self._text_edit
         point = self._get_top_left_position(cursor)
         self.clear()
+        path_items = []
         for item in items:
+            # Check if the item could refer to a file or dir. The replacing
+            # of '"' is needed for items on Windows
+            if (os.path.isfile(os.path.abspath(item.replace("\"", ""))) or
+                    os.path.isdir(os.path.abspath(item.replace("\"", "")))):
+                path_items.append(item.replace("\"", ""))
+            else:
+                list_item = QtWidgets.QListWidgetItem()
+                list_item.setData(QtCore.Qt.UserRole, item)
+                list_item.setText(item.split('.')[-1])
+                self.addItem(list_item)
+
+        common_prefix = os.path.dirname(os.path.commonprefix(path_items))
+        for path_item in path_items:
             list_item = QtWidgets.QListWidgetItem()
-            list_item.setData(QtCore.Qt.UserRole, item)
-            # Check if the item could refer to a file. The replacing of '"'
-            # is needed for items on Windows
-            if os.path.isfile(os.path.abspath(item.replace("\"", ""))):
-                list_item.setText(item)
+            list_item.setData(QtCore.Qt.UserRole, path_item)
+            if common_prefix:
+                text = path_item.split(common_prefix)[-1]
             else:
-                list_item.setText(item.replace("\"", "").split('.')[-1])
+                text = item
+            list_item.setText(text)
             self.addItem(list_item)
+
         height = self.sizeHint().height()
         screen_rect = QtWidgets.QApplication.desktop().availableGeometry(self)
         if (screen_rect.size().height() + screen_rect.y() -
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.7.0/qtconsole/console_widget.py 
new/qtconsole-4.7.2/qtconsole/console_widget.py
--- old/qtconsole-4.7.0/qtconsole/console_widget.py     2020-02-09 
17:06:19.000000000 +0100
+++ new/qtconsole-4.7.2/qtconsole/console_widget.py     2020-03-25 
17:22:00.000000000 +0100
@@ -13,7 +13,7 @@
 from unicodedata import category
 import webbrowser
 
-from qtpy import QtCore, QtGui, QtWidgets
+from qtpy import QtCore, QtGui, QtPrintSupport, QtWidgets
 
 from traitlets.config.configurable import LoggingConfigurable
 from qtconsole.rich_text import HtmlExporter
@@ -238,7 +238,7 @@
         layout.setContentsMargins(0, 0, 0, 0)
         self._control = self._create_control()
         if self.paging in ('hsplit', 'vsplit'):
-            self._splitter = QtGui.QSplitter()
+            self._splitter = QtWidgets.QSplitter()
             if self.paging == 'hsplit':
                 self._splitter.setOrientation(QtCore.Qt.Horizontal)
             else:
@@ -804,8 +804,8 @@
         """ Print the contents of the ConsoleWidget to the specified QPrinter.
         """
         if (not printer):
-            printer = QtGui.QPrinter()
-            if(QtGui.QPrintDialog(printer).exec_() != QtGui.QDialog.Accepted):
+            printer = QtPrintSupport.QPrinter()
+            if(QtPrintSupport.QPrintDialog(printer).exec_() != 
QtPrintSupport.QPrintDialog.Accepted):
                 return
         self._control.print_(printer)
 
@@ -1069,7 +1069,7 @@
     def _context_menu_make(self, pos):
         """ Creates a context menu for the given QPoint (in widget 
coordinates).
         """
-        menu = QtGui.QMenu(self)
+        menu = QtWidgets.QMenu(self)
 
         self.cut_action = menu.addAction('Cut', self.cut)
         self.cut_action.setEnabled(self.can_cut())
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.7.0/qtconsole/jupyter_widget.py 
new/qtconsole-4.7.2/qtconsole/jupyter_widget.py
--- old/qtconsole-4.7.0/qtconsole/jupyter_widget.py     2020-01-25 
17:50:31.000000000 +0100
+++ new/qtconsole-4.7.2/qtconsole/jupyter_widget.py     2020-03-25 
17:22:00.000000000 +0100
@@ -406,6 +406,10 @@
             # Update the prompt cursor
             self._prompt_cursor.setPosition(cursor.position() - 1)
 
+            # Store the updated prompt.
+            block = self._control.document().lastBlock()
+            length = len(self._prompt)
+            self._previous_prompt_obj = self._PromptBlock(block, length, 
new_prompt_number)
 
     def _show_interpreter_prompt_for_reply(self, msg):
         """ Reimplemented for IPython-style prompts.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.7.0/qtconsole/rich_jupyter_widget.py 
new/qtconsole-4.7.2/qtconsole/rich_jupyter_widget.py
--- old/qtconsole-4.7.0/qtconsole/rich_jupyter_widget.py        2020-01-25 
17:50:31.000000000 +0100
+++ new/qtconsole-4.7.2/qtconsole/rich_jupyter_widget.py        2020-03-03 
02:19:12.000000000 +0100
@@ -6,7 +6,7 @@
 import re
 from warnings import warn
 
-from qtpy import QtCore, QtGui
+from qtpy import QtCore, QtGui, QtWidgets
 
 from ipython_genutils.path import ensure_dir_exists
 from traitlets import Bool
@@ -88,7 +88,7 @@
         format = self._control.cursorForPosition(pos).charFormat()
         name = format.stringProperty(QtGui.QTextFormat.ImageName)
         if name:
-            menu = QtGui.QMenu(self)
+            menu = QtWidgets.QMenu(self)
 
             menu.addAction('Copy Image', lambda: self._copy_image(name))
             menu.addAction('Save Image As...', lambda: self._save_image(name))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.7.0/qtconsole.egg-info/PKG-INFO 
new/qtconsole-4.7.2/qtconsole.egg-info/PKG-INFO
--- old/qtconsole-4.7.0/qtconsole.egg-info/PKG-INFO     2020-02-29 
20:23:09.000000000 +0100
+++ new/qtconsole-4.7.2/qtconsole.egg-info/PKG-INFO     2020-03-25 
17:37:20.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: qtconsole
-Version: 4.7.0
+Version: 4.7.2
 Summary: Jupyter Qt console
 Home-page: http://jupyter.org
 Author: Jupyter Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.7.0/qtconsole.egg-info/requires.txt 
new/qtconsole-4.7.2/qtconsole.egg-info/requires.txt
--- old/qtconsole-4.7.0/qtconsole.egg-info/requires.txt 2020-02-29 
20:23:09.000000000 +0100
+++ new/qtconsole-4.7.2/qtconsole.egg-info/requires.txt 2020-03-25 
17:37:20.000000000 +0100
@@ -5,6 +5,7 @@
 pygments
 ipykernel>=4.1
 qtpy
+pyzmq>=17.1
 
 [doc]
 Sphinx>=1.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.7.0/setup.py new/qtconsole-4.7.2/setup.py
--- old/qtconsole-4.7.0/setup.py        2020-01-25 17:50:31.000000000 +0100
+++ new/qtconsole-4.7.2/setup.py        2020-03-25 17:22:00.000000000 +0100
@@ -77,6 +77,7 @@
         'pygments',
         'ipykernel>=4.1', # not a real dependency, but require the reference 
kernel
         'qtpy',
+        'pyzmq>=17.1'
     ],
     extras_require = {
         'test': ['pytest'],


Reply via email to