Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-qtconsole for
openSUSE:Factory checked in at 2021-11-27 00:51:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-qtconsole (Old)
and /work/SRC/openSUSE:Factory/.python-qtconsole.new.1895 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-qtconsole"
Sat Nov 27 00:51:47 2021 rev:21 rq:934144 version:5.2.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-qtconsole/python-qtconsole.changes
2021-11-15 15:28:25.701857575 +0100
+++
/work/SRC/openSUSE:Factory/.python-qtconsole.new.1895/python-qtconsole.changes
2021-11-27 00:52:42.546515200 +0100
@@ -1,0 +2,8 @@
+Fri Nov 26 18:34:22 UTC 2021 - Ben Greiner <[email protected]>
+
+- Update to version 5.2.1
+ * Fix error when deleting CallTipWidget.
+ * Another fix for the 'Erase in Line' ANSI code.
+- Enable libalternatives as with the rest of the jupyter commands
+
+-------------------------------------------------------------------
Old:
----
qtconsole-5.2.0.tar.gz
New:
----
qtconsole-5.2.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-qtconsole.spec ++++++
--- /var/tmp/diff_new_pack.n5EGdf/_old 2021-11-27 00:52:42.966513750 +0100
+++ /var/tmp/diff_new_pack.n5EGdf/_new 2021-11-27 00:52:42.966513750 +0100
@@ -16,10 +16,16 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%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-qtconsole
-Version: 5.2.0
+Version: 5.2.1
Release: 0
Summary: Jupyter Qt console
License: BSD-3-Clause
@@ -46,8 +52,13 @@
Requires: python-traitlets
# QtPy does note require or depend on one of the frameworks itself
Requires: (python-qt5 or python-pyside2)
+%if %{with libalternatives}
+Requires: alts
+BuildRequires: alts
+%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
+%endif
Provides: python-jupyter_qtconsole = %{version}
Obsoletes: python-jupyter_qtconsole < %{version}
BuildArch: noarch
@@ -122,6 +133,9 @@
# now with test_input too. But does not seem to happen on the build server,
only locally.
%pytest -ra -k "not (test_00 and (test_scroll or test_debug or test_input))"
+%pre
+%python_libalternatives_reset_alternative jupyter-qtconsole
+
%post
%python_install_alternative jupyter-qtconsole
++++++ qtconsole-5.2.0.tar.gz -> qtconsole-5.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/qtconsole-5.2.0/PKG-INFO new/qtconsole-5.2.1/PKG-INFO
--- old/qtconsole-5.2.0/PKG-INFO 2021-11-08 18:18:56.063938900 +0100
+++ new/qtconsole-5.2.1/PKG-INFO 2021-11-23 17:29:45.887874000 +0100
@@ -1,88 +1,12 @@
Metadata-Version: 2.1
Name: qtconsole
-Version: 5.2.0
+Version: 5.2.1
Summary: Jupyter Qt console
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: [email protected]
Maintainer: Spyder Development Team
License: BSD
-Description: # Jupyter QtConsole
-
- 
- 
- 
- [](https://coveralls.io/github/jupyter/qtconsole?branch=master)
- [](https://qtconsole.readthedocs.io/en/stable/)
- [](https://groups.google.com/forum/#!forum/jupyter)
-
- A rich Qt-based console for working with Jupyter kernels,
- supporting rich media output, session export, and more.
-
- The Qtconsole is a very lightweight application that largely feels
like a terminal, but
- provides a number of enhancements only possible in a GUI, such as
inline
- figures, proper multiline editing with syntax highlighting, graphical
calltips,
- and more.
-
-

-
- ## Install Qtconsole
- The Qtconsole requires Python bindings for Qt, such as
[PyQt5](http://www.riverbankcomputing.com/software/pyqt/intro),
- [PyQt4](https://www.riverbankcomputing.com/software/pyqt/download),
- or [PySide](http://pyside.github.io/docs/pyside).
-
- Although [pip](https://pypi.python.org/pypi/pip) and
- [conda](http://conda.pydata.org/docs) may be used to install the
Qtconsole, conda
- is simpler to use since it automatically installs PyQt5. Alternatively,
- the Qtconsole installation with pip needs additional steps since pip
doesn't install
- the Qt requirement.
-
- ### Install using conda
- To install:
-
- conda install qtconsole
-
- **Note:** If the Qtconsole is installed using conda, it will
**automatically**
- install the Qt requirement as well.
-
- ### Install using pip
- To install:
-
- pip install qtconsole
-
- **Note:** Make sure that Qt is installed. Unfortunately, Qt is not
- installed when using pip. The next section gives instructions on doing
it.
-
- ### Installing Qt (if needed)
- You can install PyQt5 with pip using the following command:
-
- pip install pyqt5
-
- or with a system package manager on Linux. For Windows, PyQt binary
packages may be
- used.
-
- **Note:** Additional information about using a system package manager
may be
- found in the [qtconsole
documentation](https://qtconsole.readthedocs.io).
-
- More installation instructions for PyQt can be found in the [PyQt5
documentation](http://pyqt.sourceforge.net/Docs/PyQt5/installation.html) and
[PyQt4 documentation](http://pyqt.sourceforge.net/Docs/PyQt4/installation.html)
-
- Source packages for Windows/Linux/MacOS can be found here:
[PyQt5](https://www.riverbankcomputing.com/software/pyqt/download5) and
[PyQt4](https://riverbankcomputing.com/software/pyqt/download).
-
-
- ## Usage
- To run the Qtconsole:
-
- jupyter qtconsole
-
- ## Resources
- - [Project Jupyter website](https://jupyter.org)
- - Documentation for the Qtconsole
- * [latest version](https://qtconsole.readthedocs.io/en/latest/)
[[PDF](https://media.readthedocs.org/pdf/qtconsole/latest/qtconsole.pdf)]
- * [stable version](https://qtconsole.readthedocs.io/en/stable/)
[[PDF](https://media.readthedocs.org/pdf/qtconsole/stable/qtconsole.pdf)]
- - [Documentation for Project
Jupyter](https://jupyter.readthedocs.io/en/latest/index.html)
[[PDF](https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf)]
- - [Issues](https://github.com/jupyter/qtconsole/issues)
- - [Technical support - Jupyter Google
Group](https://groups.google.com/forum/#!forum/jupyter)
-
Keywords: Interactive,Interpreter,Shell
Platform: Linux
Platform: Mac OS X
@@ -99,5 +23,84 @@
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >= 3.6
Description-Content-Type: text/markdown
-Provides-Extra: doc
Provides-Extra: test
+Provides-Extra: doc
+License-File: LICENSE
+
+# Jupyter QtConsole
+
+
+
+
+[](https://coveralls.io/github/jupyter/qtconsole?branch=master)
+[](https://qtconsole.readthedocs.io/en/stable/)
+[](https://groups.google.com/forum/#!forum/jupyter)
+
+A rich Qt-based console for working with Jupyter kernels,
+supporting rich media output, session export, and more.
+
+The Qtconsole is a very lightweight application that largely feels like a
terminal, but
+provides a number of enhancements only possible in a GUI, such as inline
+figures, proper multiline editing with syntax highlighting, graphical calltips,
+and more.
+
+
+
+## Install Qtconsole
+The Qtconsole requires Python bindings for Qt, such as
[PyQt5](http://www.riverbankcomputing.com/software/pyqt/intro),
+[PyQt4](https://www.riverbankcomputing.com/software/pyqt/download),
+or [PySide](http://pyside.github.io/docs/pyside).
+
+Although [pip](https://pypi.python.org/pypi/pip) and
+[conda](http://conda.pydata.org/docs) may be used to install the Qtconsole,
conda
+is simpler to use since it automatically installs PyQt5. Alternatively,
+the Qtconsole installation with pip needs additional steps since pip doesn't
install
+the Qt requirement.
+
+### Install using conda
+To install:
+
+ conda install qtconsole
+
+**Note:** If the Qtconsole is installed using conda, it will **automatically**
+install the Qt requirement as well.
+
+### Install using pip
+To install:
+
+ pip install qtconsole
+
+**Note:** Make sure that Qt is installed. Unfortunately, Qt is not
+installed when using pip. The next section gives instructions on doing it.
+
+### Installing Qt (if needed)
+You can install PyQt5 with pip using the following command:
+
+ pip install pyqt5
+
+or with a system package manager on Linux. For Windows, PyQt binary packages
may be
+used.
+
+**Note:** Additional information about using a system package manager may be
+found in the [qtconsole documentation](https://qtconsole.readthedocs.io).
+
+More installation instructions for PyQt can be found in the [PyQt5
documentation](http://pyqt.sourceforge.net/Docs/PyQt5/installation.html) and
[PyQt4 documentation](http://pyqt.sourceforge.net/Docs/PyQt4/installation.html)
+
+Source packages for Windows/Linux/MacOS can be found here:
[PyQt5](https://www.riverbankcomputing.com/software/pyqt/download5) and
[PyQt4](https://riverbankcomputing.com/software/pyqt/download).
+
+
+## Usage
+To run the Qtconsole:
+
+ jupyter qtconsole
+
+## Resources
+- [Project Jupyter website](https://jupyter.org)
+- Documentation for the Qtconsole
+ * [latest version](https://qtconsole.readthedocs.io/en/latest/)
[[PDF](https://media.readthedocs.org/pdf/qtconsole/latest/qtconsole.pdf)]
+ * [stable version](https://qtconsole.readthedocs.io/en/stable/)
[[PDF](https://media.readthedocs.org/pdf/qtconsole/stable/qtconsole.pdf)]
+- [Documentation for Project
Jupyter](https://jupyter.readthedocs.io/en/latest/index.html)
[[PDF](https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf)]
+- [Issues](https://github.com/jupyter/qtconsole/issues)
+- [Technical support - Jupyter Google
Group](https://groups.google.com/forum/#!forum/jupyter)
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/qtconsole-5.2.0/docs/source/changelog.rst
new/qtconsole-5.2.1/docs/source/changelog.rst
--- old/qtconsole-5.2.0/docs/source/changelog.rst 2021-11-08
18:16:48.000000000 +0100
+++ new/qtconsole-5.2.1/docs/source/changelog.rst 2021-11-23
17:25:50.000000000 +0100
@@ -8,6 +8,14 @@
5.2
~~~
+5.2.1
+-----
+
+`5.2.1 on GitHub <https://github.com/jupyter/qtconsole/milestones/5.2.1>`__
+
+* Fix error when deleting CallTipWidget.
+* Another fix for the 'Erase in Line' ANSI code.
+
5.2.0
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/qtconsole-5.2.0/qtconsole/_version.py
new/qtconsole-5.2.1/qtconsole/_version.py
--- old/qtconsole-5.2.0/qtconsole/_version.py 2021-11-08 18:18:10.000000000
+0100
+++ new/qtconsole-5.2.1/qtconsole/_version.py 2021-11-23 17:29:03.000000000
+0100
@@ -1,2 +1,2 @@
-version_info = (5, 2, 0)
+version_info = (5, 2, 1)
__version__ = '.'.join(map(str, version_info))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/qtconsole-5.2.0/qtconsole/call_tip_widget.py
new/qtconsole-5.2.1/qtconsole/call_tip_widget.py
--- old/qtconsole-5.2.0/qtconsole/call_tip_widget.py 2021-11-07
20:52:39.000000000 +0100
+++ new/qtconsole-5.2.1/qtconsole/call_tip_widget.py 2021-11-23
17:22:26.000000000 +0100
@@ -20,7 +20,8 @@
"""
assert isinstance(text_edit, (QtWidgets.QTextEdit,
QtWidgets.QPlainTextEdit))
super().__init__(None, QtCore.Qt.ToolTip)
- text_edit.destroyed.connect(lambda: self.deleteLater())
+
+ text_edit.destroyed.connect(self.deleteLater)
self._hide_timer = QtCore.QBasicTimer()
self._text_edit = text_edit
@@ -124,6 +125,16 @@
self._cursor_position_changed)
self._text_edit.installEventFilter(self)
+ def deleteLater(self):
+ """ Avoids an error when the widget has already been deleted.
+
+ Fixes jupyter/qtconsole#507.
+ """
+ try:
+ return super().deleteLater()
+ except RuntimeError:
+ pass
+
#--------------------------------------------------------------------------
# 'CallTipWidget' interface
#--------------------------------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/qtconsole-5.2.0/qtconsole/console_widget.py
new/qtconsole-5.2.1/qtconsole/console_widget.py
--- old/qtconsole-5.2.0/qtconsole/console_widget.py 2021-11-07
20:52:39.000000000 +0100
+++ new/qtconsole-5.2.1/qtconsole/console_widget.py 2021-11-23
17:22:26.000000000 +0100
@@ -2183,9 +2183,11 @@
format = self._ansi_processor.get_format()
if not (hasattr(cursor,'_insert_mode') and
cursor._insert_mode):
pos = cursor.position()
- remain=self._get_line_end_pos()-pos
+ cursor2 = QtGui.QTextCursor(cursor) #
self._get_line_end_pos() is the previous line, don't use it
+ cursor2.movePosition(cursor2.EndOfLine)
+ remain = cursor2.position() - pos # number of
characters until end of line
n=len(substring)
- swallow=min(n,remain)
+ swallow = min(n, remain) # number of
character to swallow
cursor.setPosition(pos+swallow,cursor.KeepAnchor)
cursor.insertText(substring,format)
else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/qtconsole-5.2.0/qtconsole.egg-info/PKG-INFO
new/qtconsole-5.2.1/qtconsole.egg-info/PKG-INFO
--- old/qtconsole-5.2.0/qtconsole.egg-info/PKG-INFO 2021-11-08
18:18:55.000000000 +0100
+++ new/qtconsole-5.2.1/qtconsole.egg-info/PKG-INFO 2021-11-23
17:29:45.000000000 +0100
@@ -1,88 +1,12 @@
Metadata-Version: 2.1
Name: qtconsole
-Version: 5.2.0
+Version: 5.2.1
Summary: Jupyter Qt console
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: [email protected]
Maintainer: Spyder Development Team
License: BSD
-Description: # Jupyter QtConsole
-
- 
- 
- 
- [](https://coveralls.io/github/jupyter/qtconsole?branch=master)
- [](https://qtconsole.readthedocs.io/en/stable/)
- [](https://groups.google.com/forum/#!forum/jupyter)
-
- A rich Qt-based console for working with Jupyter kernels,
- supporting rich media output, session export, and more.
-
- The Qtconsole is a very lightweight application that largely feels
like a terminal, but
- provides a number of enhancements only possible in a GUI, such as
inline
- figures, proper multiline editing with syntax highlighting, graphical
calltips,
- and more.
-
-

-
- ## Install Qtconsole
- The Qtconsole requires Python bindings for Qt, such as
[PyQt5](http://www.riverbankcomputing.com/software/pyqt/intro),
- [PyQt4](https://www.riverbankcomputing.com/software/pyqt/download),
- or [PySide](http://pyside.github.io/docs/pyside).
-
- Although [pip](https://pypi.python.org/pypi/pip) and
- [conda](http://conda.pydata.org/docs) may be used to install the
Qtconsole, conda
- is simpler to use since it automatically installs PyQt5. Alternatively,
- the Qtconsole installation with pip needs additional steps since pip
doesn't install
- the Qt requirement.
-
- ### Install using conda
- To install:
-
- conda install qtconsole
-
- **Note:** If the Qtconsole is installed using conda, it will
**automatically**
- install the Qt requirement as well.
-
- ### Install using pip
- To install:
-
- pip install qtconsole
-
- **Note:** Make sure that Qt is installed. Unfortunately, Qt is not
- installed when using pip. The next section gives instructions on doing
it.
-
- ### Installing Qt (if needed)
- You can install PyQt5 with pip using the following command:
-
- pip install pyqt5
-
- or with a system package manager on Linux. For Windows, PyQt binary
packages may be
- used.
-
- **Note:** Additional information about using a system package manager
may be
- found in the [qtconsole
documentation](https://qtconsole.readthedocs.io).
-
- More installation instructions for PyQt can be found in the [PyQt5
documentation](http://pyqt.sourceforge.net/Docs/PyQt5/installation.html) and
[PyQt4 documentation](http://pyqt.sourceforge.net/Docs/PyQt4/installation.html)
-
- Source packages for Windows/Linux/MacOS can be found here:
[PyQt5](https://www.riverbankcomputing.com/software/pyqt/download5) and
[PyQt4](https://riverbankcomputing.com/software/pyqt/download).
-
-
- ## Usage
- To run the Qtconsole:
-
- jupyter qtconsole
-
- ## Resources
- - [Project Jupyter website](https://jupyter.org)
- - Documentation for the Qtconsole
- * [latest version](https://qtconsole.readthedocs.io/en/latest/)
[[PDF](https://media.readthedocs.org/pdf/qtconsole/latest/qtconsole.pdf)]
- * [stable version](https://qtconsole.readthedocs.io/en/stable/)
[[PDF](https://media.readthedocs.org/pdf/qtconsole/stable/qtconsole.pdf)]
- - [Documentation for Project
Jupyter](https://jupyter.readthedocs.io/en/latest/index.html)
[[PDF](https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf)]
- - [Issues](https://github.com/jupyter/qtconsole/issues)
- - [Technical support - Jupyter Google
Group](https://groups.google.com/forum/#!forum/jupyter)
-
Keywords: Interactive,Interpreter,Shell
Platform: Linux
Platform: Mac OS X
@@ -99,5 +23,84 @@
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >= 3.6
Description-Content-Type: text/markdown
-Provides-Extra: doc
Provides-Extra: test
+Provides-Extra: doc
+License-File: LICENSE
+
+# Jupyter QtConsole
+
+
+
+
+[](https://coveralls.io/github/jupyter/qtconsole?branch=master)
+[](https://qtconsole.readthedocs.io/en/stable/)
+[](https://groups.google.com/forum/#!forum/jupyter)
+
+A rich Qt-based console for working with Jupyter kernels,
+supporting rich media output, session export, and more.
+
+The Qtconsole is a very lightweight application that largely feels like a
terminal, but
+provides a number of enhancements only possible in a GUI, such as inline
+figures, proper multiline editing with syntax highlighting, graphical calltips,
+and more.
+
+
+
+## Install Qtconsole
+The Qtconsole requires Python bindings for Qt, such as
[PyQt5](http://www.riverbankcomputing.com/software/pyqt/intro),
+[PyQt4](https://www.riverbankcomputing.com/software/pyqt/download),
+or [PySide](http://pyside.github.io/docs/pyside).
+
+Although [pip](https://pypi.python.org/pypi/pip) and
+[conda](http://conda.pydata.org/docs) may be used to install the Qtconsole,
conda
+is simpler to use since it automatically installs PyQt5. Alternatively,
+the Qtconsole installation with pip needs additional steps since pip doesn't
install
+the Qt requirement.
+
+### Install using conda
+To install:
+
+ conda install qtconsole
+
+**Note:** If the Qtconsole is installed using conda, it will **automatically**
+install the Qt requirement as well.
+
+### Install using pip
+To install:
+
+ pip install qtconsole
+
+**Note:** Make sure that Qt is installed. Unfortunately, Qt is not
+installed when using pip. The next section gives instructions on doing it.
+
+### Installing Qt (if needed)
+You can install PyQt5 with pip using the following command:
+
+ pip install pyqt5
+
+or with a system package manager on Linux. For Windows, PyQt binary packages
may be
+used.
+
+**Note:** Additional information about using a system package manager may be
+found in the [qtconsole documentation](https://qtconsole.readthedocs.io).
+
+More installation instructions for PyQt can be found in the [PyQt5
documentation](http://pyqt.sourceforge.net/Docs/PyQt5/installation.html) and
[PyQt4 documentation](http://pyqt.sourceforge.net/Docs/PyQt4/installation.html)
+
+Source packages for Windows/Linux/MacOS can be found here:
[PyQt5](https://www.riverbankcomputing.com/software/pyqt/download5) and
[PyQt4](https://riverbankcomputing.com/software/pyqt/download).
+
+
+## Usage
+To run the Qtconsole:
+
+ jupyter qtconsole
+
+## Resources
+- [Project Jupyter website](https://jupyter.org)
+- Documentation for the Qtconsole
+ * [latest version](https://qtconsole.readthedocs.io/en/latest/)
[[PDF](https://media.readthedocs.org/pdf/qtconsole/latest/qtconsole.pdf)]
+ * [stable version](https://qtconsole.readthedocs.io/en/stable/)
[[PDF](https://media.readthedocs.org/pdf/qtconsole/stable/qtconsole.pdf)]
+- [Documentation for Project
Jupyter](https://jupyter.readthedocs.io/en/latest/index.html)
[[PDF](https://media.readthedocs.org/pdf/jupyter/latest/jupyter.pdf)]
+- [Issues](https://github.com/jupyter/qtconsole/issues)
+- [Technical support - Jupyter Google
Group](https://groups.google.com/forum/#!forum/jupyter)
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/qtconsole-5.2.0/qtconsole.egg-info/requires.txt
new/qtconsole-5.2.1/qtconsole.egg-info/requires.txt
--- old/qtconsole-5.2.0/qtconsole.egg-info/requires.txt 2021-11-08
18:18:55.000000000 +0100
+++ new/qtconsole-5.2.1/qtconsole.egg-info/requires.txt 2021-11-23
17:29:45.000000000 +0100
@@ -1,11 +1,11 @@
-ipykernel>=4.1
+traitlets
ipython_genutils
-jupyter_client>=4.1
jupyter_core
+jupyter_client>=4.1
pygments
-pyzmq>=17.1
+ipykernel>=4.1
qtpy
-traitlets
+pyzmq>=17.1
[doc]
Sphinx>=1.3