Hello community,

here is the log from the commit of package python-spyder-line-profiler for 
openSUSE:Factory checked in at 2020-04-28 22:32:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-spyder-line-profiler (Old)
 and      /work/SRC/openSUSE:Factory/.python-spyder-line-profiler.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-spyder-line-profiler"

Tue Apr 28 22:32:45 2020 rev:6 rq:798690 version:0.2.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-spyder-line-profiler/python-spyder-line-profiler.changes
  2020-04-02 17:42:52.813373948 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-spyder-line-profiler.new.2738/python-spyder-line-profiler.changes
        2020-04-28 22:33:20.581862646 +0200
@@ -1,0 +2,22 @@
+Tue Apr 28 10:55:34 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- Update to version 0.2.1
+  This release fixes some compatibility issues with Spyder 4.1 and
+  some other bugs.
+  * Issue gh#spyder-ide/spyder-line-profiler#44
+    TextEditor initializer receives unexpected argument size
+    (PR gh#spyder-ide/spyder-line-profiler#46)
+  * Issue gh#spyder-ide/spyder-line-profiler#41
+    Move CI to github actions
+    (PR gh#spyder-ide/spyder-line-profiler#45)
+  * Issue gh#spyder-ide/spyder-line-profiler#39
+    Crash from opening options
+    (PR gh#spyder-ide/spyder-line-profiler#40)
+  * Issue gh#spyder-ide/spyder-line-profiler#35
+    Opening editor from line profiler output is broken
+    (PR gh#spyder-ide/spyder-line-profiler#47)
+  * PR gh#spyder-ide/spyder-line-profiler#43
+    Fix invalid escape sequence in regex string
+- README changed from .rst to .md
+
+-------------------------------------------------------------------

Old:
----
  spyder_line_profiler-0.2.0.tar.gz

New:
----
  spyder_line_profiler-0.2.1.tar.gz

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

Other differences:
------------------
++++++ python-spyder-line-profiler.spec ++++++
--- /var/tmp/diff_new_pack.YnZJGA/_old  2020-04-28 22:33:23.725868512 +0200
+++ /var/tmp/diff_new_pack.YnZJGA/_new  2020-04-28 22:33:23.729868520 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-spyder-line-profiler
-Version:        0.2.0
+Version:        0.2.1
 Release:        0
 Summary:        Line profiler plugin for the Spyder IDE
 License:        MIT
@@ -79,7 +79,7 @@
 %pytest
 
 %files -n spyder-line-profiler
-%doc CHANGELOG.md README.rst
+%doc CHANGELOG.md README.md
 %license LICENSE.txt
 %{python_sitelib}/spyder_line_profiler-%{version}-py*.egg-info
 %{python_sitelib}/spyder_line_profiler

++++++ spyder_line_profiler-0.2.0.tar.gz -> spyder_line_profiler-0.2.1.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_line_profiler-0.2.0/CHANGELOG.md 
new/spyder_line_profiler-0.2.1/CHANGELOG.md
--- old/spyder_line_profiler-0.2.0/CHANGELOG.md 2019-12-18 11:09:43.000000000 
+0100
+++ new/spyder_line_profiler-0.2.1/CHANGELOG.md 2020-04-28 10:24:43.000000000 
+0200
@@ -1,5 +1,29 @@
 # History of changes
 
+## Version 0.2.1 (2020/04/28)
+
+This release fixes some compatibility issues with Spyder 4.1 and some other 
bugs.
+
+### Issues Closed
+
+* [Issue 44](https://github.com/spyder-ide/spyder-line-profiler/issues/44) - 
TextEditor initializer receives unexpected argument size ([PR 
46](https://github.com/spyder-ide/spyder-line-profiler/pull/46))
+* [Issue 41](https://github.com/spyder-ide/spyder-line-profiler/issues/41) - 
Move CI to github actions ([PR 
45](https://github.com/spyder-ide/spyder-line-profiler/pull/45))
+* [Issue 39](https://github.com/spyder-ide/spyder-line-profiler/issues/39) - 
Crash from opening options ([PR 
40](https://github.com/spyder-ide/spyder-line-profiler/pull/40))
+* [Issue 35](https://github.com/spyder-ide/spyder-line-profiler/issues/35) - 
Opening editor from line profiler output is broken ([PR 
47](https://github.com/spyder-ide/spyder-line-profiler/pull/47))
+
+In this release 4 issues were closed.
+
+### Pull Requests Merged
+
+* [PR 47](https://github.com/spyder-ide/spyder-line-profiler/pull/47) - PR: 
Fix opening editor from profiler widget 
([35](https://github.com/spyder-ide/spyder-line-profiler/issues/35))
+* [PR 46](https://github.com/spyder-ide/spyder-line-profiler/pull/46) - PR: 
Fix initialization of TextEditor 
([44](https://github.com/spyder-ide/spyder-line-profiler/issues/44))
+* [PR 45](https://github.com/spyder-ide/spyder-line-profiler/pull/45) - PR: 
Move CI to GitHub Actions 
([41](https://github.com/spyder-ide/spyder-line-profiler/issues/41))
+* [PR 43](https://github.com/spyder-ide/spyder-line-profiler/pull/43) - PR: 
Fix invalid escape sequence in regex string
+* [PR 40](https://github.com/spyder-ide/spyder-line-profiler/pull/40) - PR: 
Add CONF_DEFAULTS 
([39](https://github.com/spyder-ide/spyder-line-profiler/issues/39))
+
+In this release 5 pull requests were closed.
+
+
 ## Version 0.2.0 (2019/12/18)
 
 This release updates the plugin to be used with Spyder 4 and fixes some bugs.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_line_profiler-0.2.0/MANIFEST.in 
new/spyder_line_profiler-0.2.1/MANIFEST.in
--- old/spyder_line_profiler-0.2.0/MANIFEST.in  2017-11-08 22:31:18.000000000 
+0100
+++ new/spyder_line_profiler-0.2.1/MANIFEST.in  2020-04-18 12:37:16.000000000 
+0200
@@ -1,2 +1,2 @@
-include CHANGELOG.md LICENSE.txt README.rst
+include CHANGELOG.md LICENSE.txt README.md
 recursive-include spyder_line_profiler *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_line_profiler-0.2.0/PKG-INFO 
new/spyder_line_profiler-0.2.1/PKG-INFO
--- old/spyder_line_profiler-0.2.0/PKG-INFO     2019-12-18 11:12:27.000000000 
+0100
+++ new/spyder_line_profiler-0.2.1/PKG-INFO     2020-04-28 10:32:21.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: spyder_line_profiler
-Version: 0.2.0
+Version: 0.2.1
 Summary: Plugin for the Spyder IDE that integrates the Python line profiler.
 Home-page: https://github.com/spyder-ide/spyder-line-profiler
 Author: Spyder Project Contributors
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_line_profiler-0.2.0/README.md 
new/spyder_line_profiler-0.2.1/README.md
--- old/spyder_line_profiler-0.2.0/README.md    1970-01-01 01:00:00.000000000 
+0100
+++ new/spyder_line_profiler-0.2.1/README.md    2020-04-17 10:59:18.000000000 
+0200
@@ -0,0 +1,70 @@
+# Spyder line profiler plugin
+
+## Project details
+
+![license](https://img.shields.io/pypi/l/spyder-line-profiler.svg)
+[![conda 
version](https://img.shields.io/conda/v/spyder-ide/spyder-line-profiler.svg)](https://www.anaconda.com/download/)
+[![download 
count](https://img.shields.io/conda/d/spyder-ide/spyder-line-profiler.svg)](https://www.anaconda.com/download/)
+[![pypi 
version](https://img.shields.io/pypi/v/spyder-line-profiler.svg)](https://pypi.python.org/pypi/spyder-line-profiler)
+[![Join the chat at 
https://gitter.im/spyder-ide/public](https://badges.gitter.im/spyder-ide/spyder.svg)](https://gitter.im/spyder-ide/public)
+[![OpenCollective 
Backers](https://opencollective.com/spyder/backers/badge.svg?color=blue)](#backers)
+[![OpenCollective 
Sponsors](https://opencollective.com/spyder/sponsors/badge.svg?color=blue)](#sponsors)
+
+## Build status
+
+[![Windows 
status](https://github.com/spyder-ide/spyder-line-profiler/workflows/Windows%20tests/badge.svg)](https://github.com/spyder-ide/spyder-line-profiler/actions?query=workflow%3A%22Windows+tests%22)
+[![Linux 
status](https://github.com/spyder-ide/spyder-line-profiler/workflows/Linux%20tests/badge.svg)](https://github.com/spyder-ide/spyder-line-profiler/actions?query=workflow%3A%22Linux+tests%22)
+[![MacOS 
status](https://github.com/spyder-ide/spyder-line-profiler/workflows/Macos%20tests/badge.svg)](https://github.com/spyder-ide/spyder-line-profiler/actions?query=workflow%3A%22Macos+tests%22)
+[![codecov](https://codecov.io/gh/spyder-ide/spyder-line-profiler/branch/master/graph/badge.svg)](https://codecov.io/gh/spyder-ide/spyder-line-profiler/branch/master)
+
+## Description
+
+This is a plugin to run the Python
+[line_profiler](https://pypi.python.org/pypi/line_profiler)
+from within the Python IDE [Spyder](https://github.com/spyder-ide/spyder).
+
+The code is an adaptation of the profiler plugin integrated in Spyder.
+
+## Installation
+
+To install this plugin, you can use either ``pip`` or ``conda`` package
+managers, as follows:
+
+Using conda (the recommended way!):
+
+```
+conda install spyder-line-profiler -c spyder-ide
+```
+
+Using pip:
+
+```
+pip install spyder-line-profiler
+```
+
+## Usage
+
+Add a `@profile` decorator to the functions that you wish to profile then
+Shift+F10 (line profiler default) to run the profiler on the current script,
+or go to `Run > Profile line by line`.
+
+The results will be shown in a dockwidget, grouped by function. Lines with a
+stronger color take more time to run.
+
+## Screenshot
+
+![Screenshot of spyder-line-profiler plugin showing profiler 
results](./img_src/screenshot_profler.png)
+
+## Contributing
+
+Everyone is welcome to contribute!
+
+## Sponsors
+
+Spyder and its subprojects are funded thanks to the generous support of
+
+[![Quansight](https://static.wixstatic.com/media/095d2c_2508c560e87d436ea00357abc404cf1d~mv2.png/v1/crop/x_0,y_9,w_915,h_329/fill/w_380,h_128,al_c,usm_0.66_1.00_0.01/095d2c_2508c560e87d436ea00357abc404cf1d~mv2.png)](https://www.quansight.com/)[![Numfocus](https://i2.wp.com/numfocus.org/wp-content/uploads/2017/07/NumFocus_LRG.png?fit=320%2C148&ssl=1)](https://numfocus.org/)
+
+and the donations we have received from our users around the world through 
[Open Collective](https://opencollective.com/spyder/):
+
+[![Sponsors](https://opencollective.com/spyder/sponsors.svg)](https://opencollective.com/spyder#support)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_line_profiler-0.2.0/README.rst 
new/spyder_line_profiler-0.2.1/README.rst
--- old/spyder_line_profiler-0.2.0/README.rst   2018-11-25 13:34:58.000000000 
+0100
+++ new/spyder_line_profiler-0.2.1/README.rst   1970-01-01 01:00:00.000000000 
+0100
@@ -1,65 +0,0 @@
-spyder_line_profiler
-===========================
-
-Project information 
--------------------
-
-.. image:: https://img.shields.io/pypi/l/spyder-line-profiler.svg
-   :target: 
https://github.com/spyder-ide/spyder-line-profiler/blob/master/LICENSE.txt
-   
-.. image:: https://img.shields.io/pypi/v/spyder-line-profiler.svg
-   :target: https://pypi.python.org/pypi/spyder-line-profiler
-
-.. image:: https://badges.gitter.im/spyder-ide/spyder.svg
-   :target: https://gitter.im/spyder-ide/public
-
-Build information
------------------
-
-.. image:: 
https://ci.appveyor.com/api/projects/status/u8m20qgel4j155pn/branch/master?svg=true
-   :target: https://ci.appveyor.com/project/spyder-ide/spyder-line-profiler
-
-.. image:: 
https://circleci.com/gh/spyder-ide/spyder-line-profiler/tree/master.svg?style=shield
-   :target: https://circleci.com/gh/spyder-ide/spyder-line-profiler/tree/master
-
-.. image:: 
https://coveralls.io/repos/github/spyder-ide/spyder-line-profiler/badge.svg?branch=master
-   :target: 
https://coveralls.io/github/spyder-ide/spyder-line-profiler?branch=master
-
-Description
------------
-
-This is a plugin to run the python `line profiler 
<https://github.com/rkern/line_profiler>`_
-from within the python IDE `spyder <https://github.com/spyder-ide/spyder>`_.
-
-The code is an adaptation of the profiler plugin integrated in spyder.
-
-Install instructions
---------------------
-
-The line-profiler plugin is available in the ``spyder-ide`` channel in
-Anaconda and in PyPI, so it can be installed with the following
-commands:
-
-* Using Anaconda: ``conda install -c spyder-ide spyder-line-profiler``
-* Using pip: ``pip install spyder-line-profiler``
-
-All dependencies will be automatically installed. You have to restart
-Spyder before you can use the plugin.
-
-
-Usage
------
-
-Add a ``@profile`` decorator to the functions that you wish to profile then 
press Shift+F10
-(line profiler default) to run the profiler on the current script, or go to
-``Run > Profile line by line``.
-
-The results will be shown in a dockwidget, grouped by function. Lines with a 
stronger color
-take more time to run.
-
-
-Screenshot
-----------
-Line profiler:
-
-.. image:: img_src/screenshot_profler.png
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_line_profiler-0.2.0/spyder_line_profiler/__init__.py 
new/spyder_line_profiler-0.2.1/spyder_line_profiler/__init__.py
--- old/spyder_line_profiler-0.2.0/spyder_line_profiler/__init__.py     
2019-12-18 11:11:39.000000000 +0100
+++ new/spyder_line_profiler-0.2.1/spyder_line_profiler/__init__.py     
2020-04-28 10:29:20.000000000 +0200
@@ -4,7 +4,7 @@
 # Licensed under the terms of the MIT License
 # (see LICENSE.txt for details)
 
-__version__ = '0.2.0'
+__version__ = '0.2.1'
 
 # =============================================================================
 # The following statements are required to register this 3rd party plugin:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_line_profiler-0.2.0/spyder_line_profiler/lineprofiler.py 
new/spyder_line_profiler-0.2.1/spyder_line_profiler/lineprofiler.py
--- old/spyder_line_profiler-0.2.0/spyder_line_profiler/lineprofiler.py 
2019-10-23 17:05:11.000000000 +0200
+++ new/spyder_line_profiler-0.2.1/spyder_line_profiler/lineprofiler.py 
2020-04-18 12:37:44.000000000 +0200
@@ -73,8 +73,8 @@
     Line profiler.
     """
     CONF_SECTION = 'lineprofiler'
+    CONF_DEFAULTS = [(CONF_SECTION, {'use_colors': True})]
     CONFIGWIDGET_CLASS = LineProfilerConfigPage
-    edit_goto = Signal(str, int, str)
 
     def __init__(self, parent=None):
         SpyderPluginWidget.__init__(self, parent)
@@ -129,7 +129,7 @@
         self.update_pythonpath()
         self.main.sig_pythonpath_changed.connect(self.update_pythonpath)
 
-        self.edit_goto.connect(self.main.editor.load)
+        self.widget.datatree.edit_goto.connect(self.main.editor.load)
         
self.widget.redirect_stdio.connect(self.main.redirect_internalshell_stdio)
 
         lineprofiler_act = create_action(self, _("Profile line by line"),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_line_profiler-0.2.0/spyder_line_profiler/widgets/lineprofiler.py 
new/spyder_line_profiler-0.2.1/spyder_line_profiler/widgets/lineprofiler.py
--- old/spyder_line_profiler-0.2.0/spyder_line_profiler/widgets/lineprofiler.py 
2019-12-18 11:10:26.000000000 +0100
+++ new/spyder_line_profiler-0.2.1/spyder_line_profiler/widgets/lineprofiler.py 
2020-04-18 12:37:44.000000000 +0200
@@ -94,7 +94,7 @@
         """
         Natural sorting for both numbers and strings containing numbers.
         """
-        regex = '(\d*\.\d+|\d+)'
+        regex = r'(\d*\.\d+|\d+)'
         parts = re.split(regex, key)
         return tuple((e if i % 2 == 0 else float(e))
                      for i, e in enumerate(parts))
@@ -266,13 +266,22 @@
 
     def show_log(self):
         if self.output:
-            TextEditor(self.output, title=_("Line profiler output"),
-                       readonly=True, size=(700, 500)).exec_()
+            editor = TextEditor(self.output, title=_("Line profiler output"),
+                                readonly=True)
+            # Call .show() to dynamically resize editor;
+            # see spyder-ide/spyder#12202
+            editor.show()
+            editor.exec_()
 
     def show_errorlog(self):
         if self.error_output:
-            TextEditor(self.error_output, title=_("Line profiler output"),
-                       readonly=True, size=(700, 500)).exec_()
+            editor = TextEditor(self.error_output,
+                                title=_("Line profiler output"),
+                                readonly=True)
+            # Call .show() to dynamically resize editor;
+            # see spyder-ide/spyder#12202
+            editor.show()
+            editor.exec_()
 
     def start(self, wdir=None, args=None, pythonpath=None):
         filename = to_text_string(self.filecombo.currentText())
@@ -402,6 +411,8 @@
     Convenience tree widget (with built-in model)
     to store and view line profiler data.
     """
+    edit_goto = Signal(str, int, str)
+
     def __init__(self, parent=None):
         QTreeWidget.__init__(self, parent)
         self.header_list = [
@@ -605,7 +616,7 @@
 
     def item_activated(self, item):
         filename, line_no = item.data(COL_POS, Qt.UserRole)
-        self.parent().edit_goto.emit(filename, line_no, '')
+        self.edit_goto.emit(filename, line_no, '')
 
 
 def test():
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_line_profiler-0.2.0/spyder_line_profiler.egg-info/PKG-INFO 
new/spyder_line_profiler-0.2.1/spyder_line_profiler.egg-info/PKG-INFO
--- old/spyder_line_profiler-0.2.0/spyder_line_profiler.egg-info/PKG-INFO       
2019-12-18 11:12:27.000000000 +0100
+++ new/spyder_line_profiler-0.2.1/spyder_line_profiler.egg-info/PKG-INFO       
2020-04-28 10:32:21.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: spyder-line-profiler
-Version: 0.2.0
+Version: 0.2.1
 Summary: Plugin for the Spyder IDE that integrates the Python line profiler.
 Home-page: https://github.com/spyder-ide/spyder-line-profiler
 Author: Spyder Project Contributors
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_line_profiler-0.2.0/spyder_line_profiler.egg-info/SOURCES.txt 
new/spyder_line_profiler-0.2.1/spyder_line_profiler.egg-info/SOURCES.txt
--- old/spyder_line_profiler-0.2.0/spyder_line_profiler.egg-info/SOURCES.txt    
2019-12-18 11:12:27.000000000 +0100
+++ new/spyder_line_profiler-0.2.1/spyder_line_profiler.egg-info/SOURCES.txt    
2020-04-28 10:32:21.000000000 +0200
@@ -1,7 +1,7 @@
 CHANGELOG.md
 LICENSE.txt
 MANIFEST.in
-README.rst
+README.md
 setup.py
 spyder_line_profiler/__init__.py
 spyder_line_profiler/lineprofiler.py


Reply via email to