Hello community,

here is the log from the commit of package python-qtconsole for 
openSUSE:Factory checked in at 2020-03-17 13:08:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-qtconsole (Old)
 and      /work/SRC/openSUSE:Factory/.python-qtconsole.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-qtconsole"

Tue Mar 17 13:08:01 2020 rev:6 rq:784707 version:4.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-qtconsole/python-qtconsole.changes        
2020-03-04 09:47:26.454180799 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-qtconsole.new.3160/python-qtconsole.changes  
    2020-03-17 13:08:02.457702016 +0100
@@ -1,0 +2,7 @@
+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.1.tar.gz

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

Other differences:
------------------
++++++ python-qtconsole.spec ++++++
--- /var/tmp/diff_new_pack.FXnXwK/_old  2020-03-17 13:08:02.953702396 +0100
+++ /var/tmp/diff_new_pack.FXnXwK/_new  2020-03-17 13:08:02.957702400 +0100
@@ -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.1
 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.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.7.0/PKG-INFO new/qtconsole-4.7.1/PKG-INFO
--- old/qtconsole-4.7.0/PKG-INFO        2020-02-29 20:23:10.000000000 +0100
+++ new/qtconsole-4.7.1/PKG-INFO        2020-03-03 02:25:47.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: qtconsole
-Version: 4.7.0
+Version: 4.7.1
 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.1/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.1/docs/source/changelog.rst       2020-03-03 
02:23:21.000000000 +0100
@@ -8,6 +8,16 @@
 4.7
 ~~~
 
+.. _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.1/qtconsole/_version.py
--- old/qtconsole-4.7.0/qtconsole/_version.py   2020-02-29 20:22:31.000000000 
+0100
+++ new/qtconsole-4.7.1/qtconsole/_version.py   2020-03-03 02:24:56.000000000 
+0100
@@ -1,2 +1,2 @@
-version_info = (4, 7, 0)
+version_info = (4, 7, 1)
 __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.1/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.1/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.1/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.1/qtconsole/console_widget.py     2020-03-03 
02:19:12.000000000 +0100
@@ -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/rich_jupyter_widget.py 
new/qtconsole-4.7.1/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.1/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.1/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.1/qtconsole.egg-info/PKG-INFO     2020-03-03 
02:25:45.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: qtconsole
-Version: 4.7.0
+Version: 4.7.1
 Summary: Jupyter Qt console
 Home-page: http://jupyter.org
 Author: Jupyter Development Team


Reply via email to