Hello community,

here is the log from the commit of package python-spyder-memory-profiler for 
openSUSE:Factory checked in at 2020-03-20 23:54:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-spyder-memory-profiler (Old)
 and      /work/SRC/openSUSE:Factory/.python-spyder-memory-profiler.new.3160 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-spyder-memory-profiler"

Fri Mar 20 23:54:24 2020 rev:6 rq:786139 version:0.2.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-spyder-memory-profiler/python-spyder-memory-profiler.changes
      2019-12-09 21:37:18.170049017 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-spyder-memory-profiler.new.3160/python-spyder-memory-profiler.changes
    2020-03-20 23:54:26.592833475 +0100
@@ -1,0 +2,6 @@
+Tue Mar 17 21:11:27 UTC 2020 - [email protected]
+
+- update to 0.2.0
+- move to pytest-xvfb
+
+-------------------------------------------------------------------

Old:
----
  spyder_memory_profiler-0.1.2.tar.gz

New:
----
  _service
  spyder_memory_profiler-0.2.0.tar.gz

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

Other differences:
------------------
++++++ python-spyder-memory-profiler.spec ++++++
--- /var/tmp/diff_new_pack.NpdJu6/_old  2020-03-20 23:54:28.424834637 +0100
+++ /var/tmp/diff_new_pack.NpdJu6/_new  2020-03-20 23:54:28.424834637 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-spyder-memory-profiler
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,9 +18,8 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         skip_python2 1
-%define         X_display         ":98"
 Name:           python-spyder-memory-profiler
-Version:        0.1.2
+Version:        0.2.0
 Release:        0
 Summary:        Memory profiler plugin for the Spyder IDE
 License:        MIT
@@ -34,12 +33,11 @@
 # SECTION test requirements
 BuildRequires:  %{python_module memory_profiler}
 BuildRequires:  %{python_module pytest-qt}
+BuildRequires:  %{python_module pytest-xvfb}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  python-mock
 BuildRequires:  spyder3 >= 3
 BuildRequires:  spyder3-lang >= 3
-BuildRequires:  xauth
-BuildRequires:  xorg-x11-server
 # /SECTION
 %python_subpackages
 
@@ -78,16 +76,12 @@
 
 %check
 export QT_HASH_SEED=0
-export DISPLAY=%{X_display}
 export PYTHONDONTWRITEBYTECODE=1
-Xvfb %{X_display} >& Xvfb.log &
-trap "kill $! || true" EXIT
-sleep 10
-%pytest spyder_memory_profiler
+%pytest
 
 %files -n spyder3-memory-profiler
 %doc CHANGELOG.md README.rst
 %license LICENSE.txt
-%{python3_sitelib}/*
+%{python_sitelib}/*
 
 %changelog

++++++ _service ++++++
<services>
  <service name="download_files" mode="disabled" />
</services>
++++++ spyder_memory_profiler-0.1.2.tar.gz -> 
spyder_memory_profiler-0.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_memory_profiler-0.1.2/CHANGELOG.md 
new/spyder_memory_profiler-0.2.0/CHANGELOG.md
--- old/spyder_memory_profiler-0.1.2/CHANGELOG.md       2017-11-08 
21:50:46.000000000 +0100
+++ new/spyder_memory_profiler-0.2.0/CHANGELOG.md       2019-12-17 
12:52:42.000000000 +0100
@@ -1,5 +1,16 @@
 # History of changes
 
+## Version 0.2.0 (2019/12/17)
+
+This release updates the plugin to be used with Spyder 4.
+
+### Pull Requests Merged
+
+* [PR 23](https://github.com/spyder-ide/spyder-memory-profiler/pull/23) - PR: 
Update to Spyder 4
+* [PR 13](https://github.com/spyder-ide/spyder-memory-profiler/pull/13) - 
Update readme: Plugin can now be installed using conda or pip
+
+In this release 2 pull requests were closed.
+
 ## Version 0.1.2 (2017/11/08)
 
 This release fixes a packaging mistake in the 0.1.1 release.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_memory_profiler-0.1.2/PKG-INFO 
new/spyder_memory_profiler-0.2.0/PKG-INFO
--- old/spyder_memory_profiler-0.1.2/PKG-INFO   2017-11-08 21:54:12.000000000 
+0100
+++ new/spyder_memory_profiler-0.2.0/PKG-INFO   2019-12-17 13:01:00.000000000 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: spyder_memory_profiler
-Version: 0.1.2
+Version: 0.2.0
 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.1.2/README.rst 
new/spyder_memory_profiler-0.2.0/README.rst
--- old/spyder_memory_profiler-0.1.2/README.rst 2017-11-03 21:52:33.000000000 
+0100
+++ new/spyder_memory_profiler-0.2.0/README.rst 2019-12-17 12:43:55.000000000 
+0100
@@ -13,6 +13,14 @@
 .. 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
 -----------------
 
@@ -34,6 +42,24 @@
 .. 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
 -----------
 
@@ -61,3 +87,26 @@
 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.1.2/setup.cfg 
new/spyder_memory_profiler-0.2.0/setup.cfg
--- old/spyder_memory_profiler-0.1.2/setup.cfg  2017-11-08 21:54:12.000000000 
+0100
+++ new/spyder_memory_profiler-0.2.0/setup.cfg  2019-12-17 13:01:00.000000000 
+0100
@@ -1,5 +1,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spyder_memory_profiler-0.1.2/setup.py 
new/spyder_memory_profiler-0.2.0/setup.py
--- old/spyder_memory_profiler-0.1.2/setup.py   2017-09-20 21:50:26.000000000 
+0200
+++ new/spyder_memory_profiler-0.2.0/setup.py   2019-12-17 12:43:55.000000000 
+0100
@@ -34,7 +34,7 @@
 
 
 # Requirements
-REQUIREMENTS = ['memory_profiler', 'spyder>=3']
+REQUIREMENTS = ['memory_profiler', 'spyder>=4']
 EXTLIST = ['.jpg', '.png', '.json', '.mo', '.ini']
 LIBNAME = 'spyder_memory_profiler'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_memory_profiler-0.1.2/spyder_memory_profiler/__init__.py 
new/spyder_memory_profiler-0.2.0/spyder_memory_profiler/__init__.py
--- old/spyder_memory_profiler-0.1.2/spyder_memory_profiler/__init__.py 
2017-11-08 21:52:35.000000000 +0100
+++ new/spyder_memory_profiler-0.2.0/spyder_memory_profiler/__init__.py 
2019-12-17 13:00:30.000000000 +0100
@@ -4,7 +4,7 @@
 # Licensed under the terms of the MIT License
 # (see LICENSE.txt for details)
 
-__version__ = '0.1.2'
+__version__ = '0.2.0'
 
 # =============================================================================
 # 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.1.2/spyder_memory_profiler/memoryprofiler.py 
new/spyder_memory_profiler-0.2.0/spyder_memory_profiler/memoryprofiler.py
--- old/spyder_memory_profiler-0.1.2/spyder_memory_profiler/memoryprofiler.py   
2017-09-20 21:50:26.000000000 +0200
+++ new/spyder_memory_profiler-0.2.0/spyder_memory_profiler/memoryprofiler.py   
2019-12-17 12:43:55.000000000 +0100
@@ -14,9 +14,10 @@
 from spyder.utils.qthelpers import qapplication
 MAIN_APP = qapplication()
 
+from spyder.api.plugins import SpyderPluginWidget
+from spyder.api.preferences import PluginConfigPage
 from spyder.config.base import get_translation
-from spyder.plugins import SpyderPluginWidget, runconfig
-from spyder.plugins.configdialog import PluginConfigPage
+from spyder.preferences import runconfig
 from spyder.utils.qthelpers import get_icon, create_action
 
 # Local imports
@@ -75,7 +76,6 @@
 
     def __init__(self, parent=None):
         SpyderPluginWidget.__init__(self, parent)
-        self.main = parent  # Spyder 3 compatibility
 
         # Create widget and add to dockwindow
         self.widget = MemoryProfilerWidget(self.main)
@@ -83,9 +83,6 @@
         layout.addWidget(self.widget)
         self.setLayout(layout)
 
-        # Initialize plugin
-        self.initialize_plugin()
-
     # --- SpyderPluginWidget API ----------------------------------------------
     def get_plugin_title(self):
         """Return widget title."""
@@ -113,9 +110,10 @@
 
     def register_plugin(self):
         """Register plugin in Spyder's main window."""
+        super(MemoryProfiler, self).register_plugin()
+
         self.edit_goto.connect(self.main.editor.load)
         
self.widget.redirect_stdio.connect(self.main.redirect_internalshell_stdio)
-        self.main.add_dockwidget(self)
 
         memoryprofiler_act = create_action(self,
                                            _("Profile memory line by line"),
@@ -146,10 +144,8 @@
 
     def analyze(self, filename):
         """Reimplement analyze method."""
-        if self.dockwidget and not self.ismaximized:
-            self.dockwidget.setVisible(True)
-            self.dockwidget.setFocus()
-            self.dockwidget.raise_()
+        if self.dockwidget:
+            self.switch_to_plugin()
         pythonpath = self.main.get_spyder_pythonpath()
         runconf = runconfig.get_run_configuration(filename)
         wdir, args = None, None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_memory_profiler-0.1.2/spyder_memory_profiler/widgets/memoryprofiler.py
 
new/spyder_memory_profiler-0.2.0/spyder_memory_profiler/widgets/memoryprofiler.py
--- 
old/spyder_memory_profiler-0.1.2/spyder_memory_profiler/widgets/memoryprofiler.py
   2017-11-03 21:52:33.000000000 +0100
+++ 
new/spyder_memory_profiler-0.2.0/spyder_memory_profiler/widgets/memoryprofiler.py
   2019-12-17 12:43:55.000000000 +0100
@@ -29,11 +29,11 @@
 from qtpy.QtWidgets import (QHBoxLayout, QWidget, QMessageBox, QVBoxLayout,
                             QLabel, QTreeWidget, QTreeWidgetItem, QApplication)
 from spyder.config.base import get_conf_path, get_translation
+from spyder.plugins.variableexplorer.widgets.texteditor import TextEditor
 from spyder.utils import programs
-from spyder.utils.qthelpers import create_toolbutton, get_icon
 from spyder.utils.misc import add_pathlist_to_PYTHONPATH, get_python_executable
+from spyder.utils.qthelpers import create_toolbutton, get_icon
 from spyder.widgets.comboboxes import PythonModulesComboBox
-from spyder.widgets.variableexplorer.texteditor import TextEditor
 
 try:
     from spyder.py3compat import to_text_string, getcwd
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_memory_profiler-0.1.2/spyder_memory_profiler/widgets/tests/test_memoryprofiler.py
 
new/spyder_memory_profiler-0.2.0/spyder_memory_profiler/widgets/tests/test_memoryprofiler.py
--- 
old/spyder_memory_profiler-0.1.2/spyder_memory_profiler/widgets/tests/test_memoryprofiler.py
        2017-11-03 21:52:56.000000000 +0100
+++ 
new/spyder_memory_profiler-0.2.0/spyder_memory_profiler/widgets/tests/test_memoryprofiler.py
        2019-12-17 12:43:55.000000000 +0100
@@ -75,5 +75,7 @@
     # last 4 characters. To make the test robust, we only check the sign
     assert float(top.child(2).data(2, Qt.DisplayRole)[:-4]) > 0
     assert float(top.child(3).data(2, Qt.DisplayRole)[:-4]) > 0
-    assert float(top.child(4).data(2, Qt.DisplayRole)[:-4]) < 0
+    # Test in next line is broken because of bug in memory_profiler
+    # https://github.com/pythonprofilers/memory_profiler/issues/226
+    # assert float(top.child(4).data(2, Qt.DisplayRole)[:-4]) < 0
     assert float(top.child(5).data(2, Qt.DisplayRole)[:-4]) == 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spyder_memory_profiler-0.1.2/spyder_memory_profiler.egg-info/PKG-INFO 
new/spyder_memory_profiler-0.2.0/spyder_memory_profiler.egg-info/PKG-INFO
--- old/spyder_memory_profiler-0.1.2/spyder_memory_profiler.egg-info/PKG-INFO   
2017-11-08 21:54:12.000000000 +0100
+++ new/spyder_memory_profiler-0.2.0/spyder_memory_profiler.egg-info/PKG-INFO   
2019-12-17 13:01:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: spyder-memory-profiler
-Version: 0.1.2
+Version: 0.2.0
 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.1.2/spyder_memory_profiler.egg-info/requires.txt 
new/spyder_memory_profiler-0.2.0/spyder_memory_profiler.egg-info/requires.txt
--- 
old/spyder_memory_profiler-0.1.2/spyder_memory_profiler.egg-info/requires.txt   
    2017-11-08 21:54:12.000000000 +0100
+++ 
new/spyder_memory_profiler-0.2.0/spyder_memory_profiler.egg-info/requires.txt   
    2019-12-17 13:01:00.000000000 +0100
@@ -1,2 +1,2 @@
 memory_profiler
-spyder>=3
+spyder>=4


Reply via email to