Hello community,

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

Package is "python-spyder-memory-profiler"

Wed Apr 22 20:50:36 2020 rev:8 rq:795548 version:0.2.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-spyder-memory-profiler/python-spyder-memory-profiler.changes
      2020-04-02 17:42:55.841376293 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-spyder-memory-profiler.new.2738/python-spyder-memory-profiler.changes
    2020-04-22 20:51:01.403160951 +0200
@@ -1,0 +2,39 @@
+Sun Apr 19 09:58:47 UTC 2020 - Benjamin Greiner <[email protected]>
+
+- Update to version .2.1
+  This release fixes some compatibility issues with Spyder 4.1 and some other 
bugs.
+  ### Issues Closed
+
+  * gh#spyder-ide/spyder-memory-profiler#27
+    Check TextEditor call
+    (PR gh#spyder-ide/spyder-memory-profiler#29)
+  * gh#spyder-ide/spyder-memory-profiler#26
+    Move README to markdown
+    (PR gh#spyder-ide/spyder-memory-profiler#28)
+  * gh#spyder-ide/spyder-memory-profiler#25
+    Move CI to github actions
+    (PR gh#spyder-ide/spyder-memory-profiler#28)
+  * gh#spyder-ide/spyder-memory-profiler#21
+    start Profile memory usage
+    (PR gh#spyder-ide/spyder-memory-profiler#31)
+
+  ### Pull Requests Merged
+
+  * gh#spyder-ide/spyder-memory-profiler#31
+    PR: Fix Start button
+    (gh#spyder-ide/spyder-memory-profiler#21)
+  * gh#spyder-ide/spyder-memory-profiler#30
+    PR: Fix opening editor from profiler widget
+  * gh#spyder-ide/spyder-memory-profiler#29
+    Widget: Fix initialization of TextEditor
+    (gh#spyder-ide/spyder-memory-profiler#27)
+  * gh#spyder-ide/spyder-memory-profiler#28
+    PR: Transfer CI to GitHub Actions
+    (gh#spyder-ide/spyder-memory-profiler#26,
+    gh#spyder-ide/spyder-memory-profiler#25)
+  * gh#spyder-ide/spyder-memory-profiler#24
+    PR: Add CONF_DEFAULTS
+
+  In this release 4 issues and 5 pull requests were closed.  
+
+-------------------------------------------------------------------

Old:
----
  spyder_memory_profiler-0.2.0.tar.gz

New:
----
  spyder_memory_profiler-0.2.1.tar.gz

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

Other differences:
------------------
++++++ python-spyder-memory-profiler.spec ++++++
--- /var/tmp/diff_new_pack.sA7K2h/_old  2020-04-22 20:51:01.931161985 +0200
+++ /var/tmp/diff_new_pack.sA7K2h/_new  2020-04-22 20:51:01.935161994 +0200
@@ -19,7 +19,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         skip_python2 1
 Name:           python-spyder-memory-profiler
-Version:        0.2.0
+Version:        0.2.1
 Release:        0
 Summary:        Memory profiler plugin for the Spyder IDE
 License:        MIT
@@ -80,7 +80,7 @@
 %pytest
 
 %files -n spyder-memory-profiler
-%doc CHANGELOG.md README.rst
+%doc CHANGELOG.md README.md
 %license LICENSE.txt
 %{python_sitelib}/spyder_memory_profiler
 %{python_sitelib}/spyder_memory_profiler-%{version}-*.egg-info

++++++ spyder_memory_profiler-0.2.0.tar.gz -> 
spyder_memory_profiler-0.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_memory_profiler-0.2.0/CHANGELOG.md 
new/spyder_memory_profiler-0.2.1/CHANGELOG.md
--- old/spyder_memory_profiler-0.2.0/CHANGELOG.md       2019-12-17 
12:52:42.000000000 +0100
+++ new/spyder_memory_profiler-0.2.1/CHANGELOG.md       2020-04-18 
12:11:32.000000000 +0200
@@ -1,5 +1,27 @@
 # History of changes
 
+## Version 0.2.1 (2020/04/18)
+
+This release fixes some compatibility issues with Spyder 4.1 and some other 
bugs.
+
+### Issues Closed
+
+* [Issue 27](https://github.com/spyder-ide/spyder-memory-profiler/issues/27) - 
Check TextEditor call ([PR 
29](https://github.com/spyder-ide/spyder-memory-profiler/pull/29))
+* [Issue 26](https://github.com/spyder-ide/spyder-memory-profiler/issues/26) - 
Move README to markdown ([PR 
28](https://github.com/spyder-ide/spyder-memory-profiler/pull/28))
+* [Issue 25](https://github.com/spyder-ide/spyder-memory-profiler/issues/25) - 
Move CI to github actions ([PR 
28](https://github.com/spyder-ide/spyder-memory-profiler/pull/28))
+* [Issue 21](https://github.com/spyder-ide/spyder-memory-profiler/issues/21) - 
start Profile memory usage ([PR 
31](https://github.com/spyder-ide/spyder-memory-profiler/pull/31))
+
+### Pull Requests Merged
+
+* [PR 31](https://github.com/spyder-ide/spyder-memory-profiler/pull/31) - PR: 
Fix Start button 
([21](https://github.com/spyder-ide/spyder-memory-profiler/issues/21))
+* [PR 30](https://github.com/spyder-ide/spyder-memory-profiler/pull/30) - PR: 
Fix opening editor from profiler widget
+* [PR 29](https://github.com/spyder-ide/spyder-memory-profiler/pull/29) - 
Widget: Fix initialization of TextEditor 
([27](https://github.com/spyder-ide/spyder-memory-profiler/issues/27))
+* [PR 28](https://github.com/spyder-ide/spyder-memory-profiler/pull/28) - PR: 
Transfer CI to GitHub Actions 
([26](https://github.com/spyder-ide/spyder-memory-profiler/issues/26), 
[25](https://github.com/spyder-ide/spyder-memory-profiler/issues/25))
+* [PR 24](https://github.com/spyder-ide/spyder-memory-profiler/pull/24) -  PR: 
Add CONF_DEFAULTS
+
+In this release 4 issues and 5 pull requests were closed.
+
+
 ## Version 0.2.0 (2019/12/17)
 
 This release updates the plugin to be used with Spyder 4.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_memory_profiler-0.2.0/MANIFEST.in 
new/spyder_memory_profiler-0.2.1/MANIFEST.in
--- old/spyder_memory_profiler-0.2.0/MANIFEST.in        2017-11-08 
21:40:03.000000000 +0100
+++ new/spyder_memory_profiler-0.2.1/MANIFEST.in        2020-04-18 
12:11:32.000000000 +0200
@@ -1,2 +1,2 @@
-include CHANGELOG.md LICENSE.txt README.rst
+include CHANGELOG.md LICENSE.txt README.md
 recursive-include spyder_memory_profiler *.py *.png
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_memory_profiler-0.2.0/PKG-INFO 
new/spyder_memory_profiler-0.2.1/PKG-INFO
--- old/spyder_memory_profiler-0.2.0/PKG-INFO   2019-12-17 13:01:00.000000000 
+0100
+++ new/spyder_memory_profiler-0.2.1/PKG-INFO   2020-04-18 12:13:22.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: spyder_memory_profiler
-Version: 0.2.0
+Version: 0.2.1
 Summary: Plugin for the Spyder IDE that integrates the Python memory profiler
 Home-page: https://github.com/spyder-ide/spyder-memory-profiler
 Author: Spyder Project Contributors
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_memory_profiler-0.2.0/README.md 
new/spyder_memory_profiler-0.2.1/README.md
--- old/spyder_memory_profiler-0.2.0/README.md  1970-01-01 01:00:00.000000000 
+0100
+++ new/spyder_memory_profiler-0.2.1/README.md  2020-04-11 13:25:11.000000000 
+0200
@@ -0,0 +1,65 @@
+# Spyder memory profiler plugin
+
+## Project details
+
+![license](https://img.shields.io/pypi/l/spyder-memory-profiler.svg)
+[![conda 
version](https://img.shields.io/conda/v/spyder-ide/spyder-memory-profiler.svg)](https://www.anaconda.com/download/)
+[![download 
count](https://img.shields.io/conda/d/spyder-ide/spyder-memory-profiler.svg)](https://www.anaconda.com/download/)
+[![pypi 
version](https://img.shields.io/pypi/v/spyder-memory-profiler.svg)](https://pypi.python.org/pypi/spyder-memory-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-memory-profiler/workflows/Windows%20tests/badge.svg)](https://github.com/spyder-ide/spyder-memory-profiler/actions?query=workflow%3A%22Windows+tests%22)
+[![Linux 
status](https://github.com/spyder-ide/spyder-memory-profiler/workflows/Linux%20tests/badge.svg)](https://github.com/spyder-ide/spyder-memory-profiler/actions?query=workflow%3A%22Linux+tests%22)
+[![MacOS 
status](https://github.com/spyder-ide/spyder-memory-profiler/workflows/Macos%20tests/badge.svg)](https://github.com/spyder-ide/spyder-memory-profiler/actions?query=workflow%3A%22Macos+tests%22)
+
+## Description
+
+This is a plugin to run the Python
+[memory_profiler](https://pypi.python.org/pypi/memory_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-memory-profiler -c spyder-ide
+```
+
+Using pip:
+
+```
+pip install spyder-memory-profiler
+```
+
+## Usage
+
+Add a `@profile` decorator to the functions that you wish to profile then
+Ctrl+Shift+F10 to run the profiler on the current script, or go to 
+`Run > Profile memory line by line`.
+
+The results will be shown in a dockwidget, grouped by function. Lines with a
+stronger color have the largest increments in memory usage (memory profiler).
+
+## 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_memory_profiler-0.2.0/README.rst 
new/spyder_memory_profiler-0.2.1/README.rst
--- old/spyder_memory_profiler-0.2.0/README.rst 2019-12-17 12:43:55.000000000 
+0100
+++ new/spyder_memory_profiler-0.2.1/README.rst 1970-01-01 01:00:00.000000000 
+0100
@@ -1,112 +0,0 @@
-spyder-memory-profiler
-======================
-
-Project information 
--------------------
-
-.. image:: https://img.shields.io/pypi/l/spyder-memory-profiler.svg
-   :target: 
https://github.com/spyder-ide/spyder-memory-profiler/blob/master/LICENSE.txt
-   
-.. image:: https://img.shields.io/pypi/v/spyder-memory-profiler.svg
-   :target: https://pypi.python.org/pypi/spyder-memory-profiler
-
-.. image:: https://badges.gitter.im/spyder-ide/spyder.svg
-   :target: https://gitter.im/spyder-ide/public
-
-.. image:: https://opencollective.com/spyder/backers/badge.svg?color=blue
-   :target: #backers
-   :alt: OpenCollective Backers
-
-.. image:: https://opencollective.com/spyder/sponsors/badge.svg?color=blue
-   :target: #sponsors
-   :alt: OpenCollective Sponsors
-
-Build information
------------------
-
-.. image:: 
https://travis-ci.org/spyder-ide/spyder-memory-profiler.svg?branch=master
-   :target: https://travis-ci.org/spyder-ide/spyder-memory-profiler
-
-.. image:: 
https://ci.appveyor.com/api/projects/status/gd88722qallyheoe/branch/master?svg=true
-   :target: https://ci.appveyor.com/project/spyder-ide/spyder-memory-profiler
-
-.. image:: 
https://circleci.com/gh/spyder-ide/spyder-memory-profiler/tree/master.svg?style=shield
-   :target: 
https://circleci.com/gh/spyder-ide/spyder-memory-profiler/tree/master
-
-.. image:: 
https://coveralls.io/repos/github/spyder-ide/spyder-memory-profiler/badge.svg?branch=master
-   :target: 
https://coveralls.io/github/spyder-ide/spyder-memory-profiler?branch=master
-
-.. image:: 
https://www.quantifiedcode.com/api/v1/project/4a08fcbf42db40589ec02efd38597e8a/badge.svg
-  :target: 
https://www.quantifiedcode.com/app/project/4a08fcbf42db40589ec02efd38597e8a
-
-.. image:: 
https://scrutinizer-ci.com/g/spyder-ide/spyder-memory-profiler/badges/quality-score.png?b=master
-   :target: 
https://scrutinizer-ci.com/g/spyder-ide/spyder-memory-profiler/?branch=master)
-
-Important Announcement: Spyder is unfunded!
--------------------------------------------
-
-Since mid November/2017, [Anaconda, Inc](https://www.anaconda.com/) has
-stopped funding Spyder development, after doing it for the past 18
-months. Because of that, development will focus from now on maintaining
-Spyder 3 at a much slower pace than before.
-
-If you want to contribute to maintain Spyder, please consider donating at
-
-https://opencollective.com/spyder
-
-We appreciate all the help you can provide us and can't thank you enough for
-supporting the work of Spyder devs and Spyder development.
-
-If you want to know more about this, please read this
-[page](https://github.com/spyder-ide/spyder/wiki/Anaconda-stopped-funding-Spyder).
-
-Description
------------
-
-This is a plugin to run the python `memory_profiler 
<https://pypi.python.org/pypi/memory_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 
<https://github.com/spyder-ide/spyder>`_.
-
-Install instructions
---------------------
-
-The memory-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-memory-profiler``
-* Using pip: ``pip install spyder-memory-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 
Ctrl+Shift+F10 to run the profiler on the current script, or go to ``Run > 
Profile memory line by line``.
-
-The results will be shown in a dockwidget, grouped by function. Lines with a 
stronger color have the largest increments in memory usage (memory profiler).
-
-Contributing
-------------
-
-Everyone is welcome to contribute!
-
-Backers
-~~~~~~~
-
-Support us with a monthly donation and help us continue our activities.
-
-.. image:: https://opencollective.com/spyder/backers.svg
-   :target: https://opencollective.com/spyder#support
-   :alt: Backers
-
-Sponsors
-~~~~~~~~
-
-Become a sponsor to get your logo on our README on Github.
-
-.. image:: https://opencollective.com/spyder/sponsors.svg
-   :target: https://opencollective.com/spyder#support
-   :alt: Sponsors
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_memory_profiler-0.2.0/spyder_memory_profiler/__init__.py 
new/spyder_memory_profiler-0.2.1/spyder_memory_profiler/__init__.py
--- old/spyder_memory_profiler-0.2.0/spyder_memory_profiler/__init__.py 
2019-12-17 13:00:30.000000000 +0100
+++ new/spyder_memory_profiler-0.2.1/spyder_memory_profiler/__init__.py 
2020-04-18 12:11:32.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_memory_profiler-0.2.0/spyder_memory_profiler/memoryprofiler.py 
new/spyder_memory_profiler-0.2.1/spyder_memory_profiler/memoryprofiler.py
--- old/spyder_memory_profiler-0.2.0/spyder_memory_profiler/memoryprofiler.py   
2019-12-17 12:43:55.000000000 +0100
+++ new/spyder_memory_profiler-0.2.1/spyder_memory_profiler/memoryprofiler.py   
2020-04-18 12:10:46.000000000 +0200
@@ -17,7 +17,6 @@
 from spyder.api.plugins import SpyderPluginWidget
 from spyder.api.preferences import PluginConfigPage
 from spyder.config.base import get_translation
-from spyder.preferences import runconfig
 from spyder.utils.qthelpers import get_icon, create_action
 
 # Local imports
@@ -71,8 +70,8 @@
 class MemoryProfiler(SpyderPluginWidget):
     """Memory profiler."""
     CONF_SECTION = 'memoryprofiler'
+    CONF_DEFAULTS = [(CONF_SECTION, {'use_colors': True})]    
     CONFIGWIDGET_CLASS = MemoryProfilerConfigPage
-    edit_goto = Signal(str, int, str)
 
     def __init__(self, parent=None):
         SpyderPluginWidget.__init__(self, parent)
@@ -83,6 +82,15 @@
         layout.addWidget(self.widget)
         self.setLayout(layout)
 
+    def update_pythonpath(self):
+        """
+        Update the PYTHONPATH used when running the line_profiler.
+        This function is called whenever the Python path set in Spyder changes.
+        It synchronizes the PYTHONPATH in the line_profiler widget with the
+        PYTHONPATH in Spyder.
+        """
+        self.widget.spyder_pythonpath = self.main.get_spyder_pythonpath()
+
     # --- SpyderPluginWidget API ----------------------------------------------
     def get_plugin_title(self):
         """Return widget title."""
@@ -112,7 +120,11 @@
         """Register plugin in Spyder's main window."""
         super(MemoryProfiler, self).register_plugin()
 
-        self.edit_goto.connect(self.main.editor.load)
+        # Spyder PYTHONPATH
+        self.update_pythonpath()
+        self.main.sig_pythonpath_changed.connect(self.update_pythonpath)
+
+        self.widget.datatree.edit_goto.connect(self.main.editor.load)
         
self.widget.redirect_stdio.connect(self.main.redirect_internalshell_stdio)
 
         memoryprofiler_act = create_action(self,
@@ -146,15 +158,5 @@
         """Reimplement analyze method."""
         if self.dockwidget:
             self.switch_to_plugin()
-        pythonpath = self.main.get_spyder_pythonpath()
-        runconf = runconfig.get_run_configuration(filename)
-        wdir, args = None, None
-        if runconf is not None:
-            if runconf.wdir_enabled:
-                wdir = runconf.wdir
-            if runconf.args_enabled:
-                args = runconf.args
-
         self.widget.analyze(
-            filename, wdir=wdir, args=args, pythonpath=pythonpath,
-            use_colors=self.get_option('use_colors', True))
+            filename, use_colors=self.get_option('use_colors', True))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_memory_profiler-0.2.0/spyder_memory_profiler/widgets/memoryprofiler.py
 
new/spyder_memory_profiler-0.2.1/spyder_memory_profiler/widgets/memoryprofiler.py
--- 
old/spyder_memory_profiler-0.2.0/spyder_memory_profiler/widgets/memoryprofiler.py
   2019-12-17 12:43:55.000000000 +0100
+++ 
new/spyder_memory_profiler-0.2.1/spyder_memory_profiler/widgets/memoryprofiler.py
   2020-04-18 12:10:46.000000000 +0200
@@ -76,6 +76,11 @@
     def __init__(self, parent):
         QWidget.__init__(self, parent)
 
+        # Need running QApplication before importing runconfig
+        from spyder.preferences import runconfig
+        self.runconfig = runconfig
+        self.spyder_pythonpath = None
+
         self.setWindowTitle("Memory profiler")
 
         self.output = None
@@ -93,7 +98,8 @@
             self, icon=get_icon('run.png'),
             text=_("Profile memory usage"),
             tip=_("Run memory profiler"),
-            triggered=self.start, text_beside_icon=True)
+            triggered=(lambda checked=False: self.analyze()),
+            text_beside_icon=True)
         self.stop_button = create_toolbutton(
             self,
             icon=get_icon('terminate.png'),
@@ -169,23 +175,42 @@
         else:
             pass  # self.show_data()
 
-    def analyze(self, filename, wdir=None, args=None, pythonpath=None,
+    def analyze(self, filename=None, wdir=None, args=None, pythonpath=None,
                 use_colors=True):
         self.use_colors = use_colors
         if not is_memoryprofiler_installed():
             return
         self.kill_if_running()
-        #index, _data = self.get_data(filename)
-        index = None  # FIXME: storing data is not implemented yet
-        if index is None:
-            self.filecombo.addItem(filename)
-            self.filecombo.setCurrentIndex(self.filecombo.count()-1)
-        else:
-            self.filecombo.setCurrentIndex(self.filecombo.findText(filename))
-        self.filecombo.selected()
+        # FIXME: storing data is not implemented yet
+        if filename is not None:
+            filename = osp.abspath(to_text_string(filename))
+            index = self.filecombo.findText(filename)
+            if index == -1:
+                self.filecombo.addItem(filename)
+                self.filecombo.setCurrentIndex(self.filecombo.count()-1)
+            else:
+                self.filecombo.setCurrentIndex(index)
+            self.filecombo.selected()
         if self.filecombo.is_valid():
+            filename = to_text_string(self.filecombo.currentText())
+            runconf = self.runconfig.get_run_configuration(filename)
+            if runconf is not None:
+                if wdir is None:
+                    if runconf.wdir_enabled:
+                        wdir = runconf.wdir
+                    elif runconf.cw_dir:
+                        wdir = os.getcwd()
+                    elif runconf.file_dir:
+                        wdir = osp.dirname(filename)
+                    elif runconf.fixed_dir:
+                        wdir = runconf.dir
+                if args is None:
+                    if runconf.args_enabled:
+                        args = runconf.args
             if wdir is None:
                 wdir = osp.dirname(filename)
+            if pythonpath is None:
+                pythonpath = self.spyder_pythonpath
             self.start(wdir, args, pythonpath)
 
     def select_file(self):
@@ -196,15 +221,25 @@
         self.redirect_stdio.emit(False)
         if filename:
             self.analyze(filename)
+
     def show_log(self):
         if self.output:
-            TextEditor(self.output, title=_("Memory profiler output"),
-                       readonly=True, size=(700, 500)).exec_()
+            editor = TextEditor(self.output, title=_("Memory 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=_("Memory profiler output"),
-                       readonly=True, size=(700, 500)).exec_()
+            editor = TextEditor(self.error_output,
+                                title=_("Memory 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())
@@ -339,6 +374,8 @@
     Convenience tree widget (with built-in model)
     to store and view memory profiler data.
     """
+    edit_goto = Signal(str, int, str)
+
     def __init__(self, parent=None):
         QTreeWidget.__init__(self, parent)
         self.header_list = [
@@ -579,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_memory_profiler-0.2.0/spyder_memory_profiler.egg-info/PKG-INFO 
new/spyder_memory_profiler-0.2.1/spyder_memory_profiler.egg-info/PKG-INFO
--- old/spyder_memory_profiler-0.2.0/spyder_memory_profiler.egg-info/PKG-INFO   
2019-12-17 13:01:00.000000000 +0100
+++ new/spyder_memory_profiler-0.2.1/spyder_memory_profiler.egg-info/PKG-INFO   
2020-04-18 12:13:21.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: spyder-memory-profiler
-Version: 0.2.0
+Version: 0.2.1
 Summary: Plugin for the Spyder IDE that integrates the Python memory profiler
 Home-page: https://github.com/spyder-ide/spyder-memory-profiler
 Author: Spyder Project Contributors
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_memory_profiler-0.2.0/spyder_memory_profiler.egg-info/SOURCES.txt 
new/spyder_memory_profiler-0.2.1/spyder_memory_profiler.egg-info/SOURCES.txt
--- 
old/spyder_memory_profiler-0.2.0/spyder_memory_profiler.egg-info/SOURCES.txt    
    2019-12-17 13:01:00.000000000 +0100
+++ 
new/spyder_memory_profiler-0.2.1/spyder_memory_profiler.egg-info/SOURCES.txt    
    2020-04-18 12:13:22.000000000 +0200
@@ -1,7 +1,7 @@
 CHANGELOG.md
 LICENSE.txt
 MANIFEST.in
-README.rst
+README.md
 setup.py
 spyder_memory_profiler/__init__.py
 spyder_memory_profiler/memoryprofiler.py


Reply via email to