Hello community,

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

Package is "python-jupyter_qtconsole"

Tue Oct  3 23:16:45 2017 rev:5 rq:527429 version:4.3.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-jupyter_qtconsole/python-jupyter_qtconsole-doc.changes
    2017-05-17 17:12:46.408285282 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jupyter_qtconsole.new/python-jupyter_qtconsole-doc.changes
       2017-10-03 23:16:46.694697860 +0200
@@ -1,0 +2,7 @@
+Tue Sep 19 21:07:54 UTC 2017 - [email protected]
+
+- Update to 4.3.1
+  * Make %clear to delete previous output on Windows.
+  * Fix SVG rendering.
+
+-------------------------------------------------------------------
python-jupyter_qtconsole.changes: same change

Old:
----
  qtconsole-4.3.0.tar.gz

New:
----
  qtconsole-4.3.1.tar.gz

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

Other differences:
------------------
++++++ python-jupyter_qtconsole-doc.spec ++++++
--- /var/tmp/diff_new_pack.eJnbvV/_old  2017-10-03 23:16:47.530580221 +0200
+++ /var/tmp/diff_new_pack.eJnbvV/_new  2017-10-03 23:16:47.534579658 +0200
@@ -28,7 +28,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-jupyter_qtconsole-doc
-Version:        4.3.0
+Version:        4.3.1
 Release:        0
 Summary:        Documentation for python-jupyter_qtconsole
 License:        BSD-3-Clause

++++++ python-jupyter_qtconsole.spec ++++++
--- /var/tmp/diff_new_pack.eJnbvV/_old  2017-10-03 23:16:47.566575156 +0200
+++ /var/tmp/diff_new_pack.eJnbvV/_new  2017-10-03 23:16:47.570574593 +0200
@@ -18,35 +18,31 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-jupyter_qtconsole
-Version:        4.3.0
+Version:        4.3.1
 Release:        0
 Summary:        Jupyter Qt console
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 Url:            http://jupyter.org
 Source:         
https://files.pythonhosted.org/packages/source/q/qtconsole/qtconsole-%{version}.tar.gz
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module jupyter_core}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  desktop-file-utils
-BuildRequires:  hicolor-icon-theme
 BuildRequires:  fdupes
+BuildRequires:  hicolor-icon-theme
 BuildRequires:  python-rpm-macros
-BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module Pygments}
-BuildRequires:  %{python_module jupyter_client}
-BuildRequires:  %{python_module jupyter_core}
-BuildRequires:  %{python_module jupyter_ipykernel}
-BuildRequires:  %{python_module traitlets}
 BuildRequires:  update-desktop-files
 Requires:       hicolor-icon-theme
 Requires:       python-Pygments
-Requires:       python-jupyter_client
+Requires:       python-ipython_genutils 
+Requires:       python-jupyter_client >= 4.1
 Requires:       python-jupyter_core
-Requires:       python-jupyter_ipykernel
+Requires:       python-jupyter_ipykernel >= 4.1
 Requires:       python-sip
 Requires:       python-traitlets
-Requires:       python-qt5
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
+
 %python_subpackages
 
 %description

++++++ qtconsole-4.3.0.tar.gz -> qtconsole-4.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.3.0/PKG-INFO new/qtconsole-4.3.1/PKG-INFO
--- old/qtconsole-4.3.0/PKG-INFO        2017-03-29 14:53:11.000000000 +0200
+++ new/qtconsole-4.3.1/PKG-INFO        2017-08-12 18:16:08.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: qtconsole
-Version: 4.3.0
+Version: 4.3.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.3.0/docs/source/changelog.rst 
new/qtconsole-4.3.1/docs/source/changelog.rst
--- old/qtconsole-4.3.0/docs/source/changelog.rst       2017-03-29 
14:34:25.000000000 +0200
+++ new/qtconsole-4.3.1/docs/source/changelog.rst       2017-08-12 
18:12:42.000000000 +0200
@@ -3,6 +3,14 @@
 Changes in Jupyter Qt console
 =============================
 
+.. _4.3.1:
+
+`4.3.1 on GitHub <https://github.com/jupyter/qtconsole/milestones/4.3.1>`__
+
+- Make %clear to delete previous output on Windows.
+- Fix SVG rendering.
+
+
 .. _4.3:
 
 4.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.3.0/docs/source/conf.py 
new/qtconsole-4.3.1/docs/source/conf.py
--- old/qtconsole-4.3.0/docs/source/conf.py     2016-03-22 21:38:37.000000000 
+0100
+++ new/qtconsole-4.3.1/docs/source/conf.py     2017-08-12 17:49:25.000000000 
+0200
@@ -314,4 +314,4 @@
 
 
 # Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'https://docs.python.org/': None}
+intersphinx_mapping = {'https://docs.python.org/3/': None}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.3.0/qtconsole/_version.py 
new/qtconsole-4.3.1/qtconsole/_version.py
--- old/qtconsole-4.3.0/qtconsole/_version.py   2017-03-29 14:36:46.000000000 
+0200
+++ new/qtconsole-4.3.1/qtconsole/_version.py   2017-08-12 18:14:24.000000000 
+0200
@@ -1,2 +1,2 @@
-version_info = (4, 3, 0)
+version_info = (4, 3, 1)
 __version__ = '.'.join(map(str, version_info))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.3.0/qtconsole/console_widget.py 
new/qtconsole-4.3.1/qtconsole/console_widget.py
--- old/qtconsole-4.3.0/qtconsole/console_widget.py     2017-03-29 
14:34:25.000000000 +0200
+++ new/qtconsole-4.3.1/qtconsole/console_widget.py     2017-08-12 
17:49:25.000000000 +0200
@@ -3,6 +3,7 @@
 # Copyright (c) Jupyter Development Team.
 # Distributed under the terms of the Modified BSD License.
 
+import os
 import os.path
 import re
 import sys
@@ -1834,6 +1835,10 @@
                         cursor.joinPreviousEditBlock()
                         cursor.deletePreviousChar()
 
+                        if os.name == 'nt':
+                            cursor.select(QtGui.QTextCursor.Document)
+                            cursor.removeSelectedText()
+
                     elif act.action == 'carriage-return':
                         cursor.movePosition(
                             cursor.StartOfLine, cursor.KeepAnchor)
@@ -2123,8 +2128,13 @@
         # We can't leave the cursor at the end of the document though, because
         # that would cause any further additions to move the cursor. Therefore,
         # we move it back one place and move it forward again at the end of
-        # this method.
-        self._append_before_prompt_cursor.setPosition(cursor.position() - 1)
+        # this method. However, we only do this if the cursor isn't already
+        # at the start of the text.
+        if cursor.position() == 0:
+            move_forward = False
+        else:
+            move_forward = True
+            self._append_before_prompt_cursor.setPosition(cursor.position() - 
1)
 
         # Insert a preliminary newline, if necessary.
         if newline and cursor.position() > 0:
@@ -2151,8 +2161,10 @@
 
         self._flush_pending_stream()
         self._prompt_cursor.setPosition(self._get_end_pos() - 1)
-        self._append_before_prompt_cursor.setPosition(
-            self._append_before_prompt_cursor.position() + 1)
+
+        if move_forward:
+            self._append_before_prompt_cursor.setPosition(
+                self._append_before_prompt_cursor.position() + 1)
         self._prompt_started()
 
     #------ Signal handlers 
----------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.3.0/qtconsole/frontend_widget.py 
new/qtconsole-4.3.1/qtconsole/frontend_widget.py
--- old/qtconsole-4.3.0/qtconsole/frontend_widget.py    2016-11-13 
18:38:20.000000000 +0100
+++ new/qtconsole-4.3.1/qtconsole/frontend_widget.py    2017-08-12 
17:49:25.000000000 +0200
@@ -447,9 +447,7 @@
         of the value of corresponding `user_expressions` as argument.
         `callback` is then removed from the known list so that any message
         coming again with the same id won't trigger it.
-
         """
-
         user_exp = msg['content'].get('user_expressions')
         if not user_exp:
             return
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.3.0/qtconsole/mainwindow.py 
new/qtconsole-4.3.1/qtconsole/mainwindow.py
--- old/qtconsole-4.3.0/qtconsole/mainwindow.py 2017-01-08 23:13:40.000000000 
+0100
+++ new/qtconsole-4.3.1/qtconsole/mainwindow.py 2017-08-12 17:49:25.000000000 
+0200
@@ -704,8 +704,7 @@
         self.active_frontend._page(gui_reference)
 
     def _open_online_help(self):
-        filename="http://ipython.org/ipython-doc/stable/index.html";
-        webbrowser.open(filename, new=1, autoraise=True)
+        webbrowser.open("https://qtconsole.readthedocs.io";, new=1, 
autoraise=True)
 
     def toggleMaximized(self):
         if not self.isMaximized():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.3.0/qtconsole/rich_jupyter_widget.py 
new/qtconsole-4.3.1/qtconsole/rich_jupyter_widget.py
--- old/qtconsole-4.3.0/qtconsole/rich_jupyter_widget.py        2017-03-29 
14:34:25.000000000 +0200
+++ new/qtconsole-4.3.1/qtconsole/rich_jupyter_widget.py        2017-08-12 
17:49:25.000000000 +0200
@@ -61,8 +61,7 @@
         # Do we support jpg ?
         # it seems that sometime jpg support is a plugin of QT, so try to 
assume
         # it is not always supported.
-        _supported_format = [bytes(f) for f in 
QtGui.QImageReader.supportedImageFormats()]
-        self._jpg_supported = b'jpeg' in _supported_format
+        self._jpg_supported = 'jpeg' in 
QtGui.QImageReader.supportedImageFormats()
 
 
     
#---------------------------------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.3.0/qtconsole/styles.py 
new/qtconsole-4.3.1/qtconsole/styles.py
--- old/qtconsole-4.3.0/qtconsole/styles.py     2015-12-20 15:40:14.000000000 
+0100
+++ new/qtconsole-4.3.1/qtconsole/styles.py     2017-08-12 17:49:25.000000000 
+0200
@@ -12,48 +12,45 @@
 # Constants
 #-----------------------------------------------------------------------------
 
-# The default light style sheet: black text on a white background.
-default_light_style_template = '''
-    QPlainTextEdit, QTextEdit { background-color: %(bgcolor)s;
-            color: %(fgcolor)s ;
-            selection-background-color: %(select)s}
+default_template = '''\
+    QPlainTextEdit, QTextEdit {
+        background-color: %(bgcolor)s;
+        background-clip: padding;
+        color: %(fgcolor)s;
+        selection-background-color: %(select)s;
+    }
+    .inverted {
+        background-color: %(fgcolor)s;
+        color: %(bgcolor)s;
+    }
     .error { color: red; }
-    .in-prompt { color: navy; }
     .in-prompt-number { font-weight: bold; }
-    .out-prompt { color: darkred; }
     .out-prompt-number { font-weight: bold; }
-    .inverted { background-color: %(fgcolor)s ; color:%(bgcolor)s;}
+'''
+
+# The default light style sheet: black text on a white background.
+default_light_style_template = default_template + '''\
+    .in-prompt { color: navy; }
+    .out-prompt { color: darkred; }
 '''
 default_light_style_sheet = default_light_style_template%dict(
                 bgcolor='white', fgcolor='black', select="#ccc")
 default_light_syntax_style = 'default'
 
 # The default dark style sheet: white text on a black background.
-default_dark_style_template = '''
-    QPlainTextEdit, QTextEdit { background-color: %(bgcolor)s;
-            color: %(fgcolor)s ;
-            selection-background-color: %(select)s}
-    QFrame { border: 1px solid grey; }
-    .error { color: red; }
-    .in-prompt { color: lime; }
-    .in-prompt-number { color: lime; font-weight: bold; }
-    .out-prompt { color: red; }
-    .out-prompt-number { color: red; font-weight: bold; }
-    .inverted { background-color: %(fgcolor)s ; color:%(bgcolor)s;}
+default_dark_style_template = default_template + '''\
+    .in-prompt,
+    .in-prompt-number { color: lime; }
+    .out-prompt,
+    .out-prompt-number { color: red; }
 '''
 default_dark_style_sheet = default_dark_style_template%dict(
                 bgcolor='black', fgcolor='white', select="#555")
 default_dark_syntax_style = 'monokai'
 
 # The default monochrome
-default_bw_style_sheet = '''
-    QPlainTextEdit, QTextEdit { background-color: white;
-            color: black ;
-            selection-background-color: #cccccc}
-    .in-prompt-number { font-weight: bold; }
-    .out-prompt-number { font-weight: bold; }
-    .inverted { background-color: black ; color: white;}
-'''
+default_bw_style_sheet = default_template%dict(
+                bgcolor='white', fgcolor='black', select="#ccc")
 default_bw_syntax_style = 'bw'
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/qtconsole-4.3.0/qtconsole/svg.py 
new/qtconsole-4.3.1/qtconsole/svg.py
--- old/qtconsole-4.3.0/qtconsole/svg.py        2015-12-20 15:40:14.000000000 
+0100
+++ new/qtconsole-4.3.1/qtconsole/svg.py        2017-08-12 17:49:25.000000000 
+0200
@@ -86,6 +86,7 @@
     if size is None:
         size = renderer.defaultSize()
     image = QtGui.QImage(size, QtGui.QImage.Format_ARGB32)
+    image.fill(0)
     painter = QtGui.QPainter(image)
     renderer.render(painter)
     return image


Reply via email to