commit python-memory_profiler for openSUSE:Factory

2020-05-26 Thread root
Hello community,

here is the log from the commit of package python-memory_profiler for 
openSUSE:Factory checked in at 2020-05-26 17:23:13

Comparing /work/SRC/openSUSE:Factory/python-memory_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-memory_profiler.new.2738 (New)


Package is "python-memory_profiler"

Tue May 26 17:23:13 2020 rev:7 rq:808679 version:0.57.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-memory_profiler/python-memory_profiler.changes
2020-01-22 22:47:03.740599539 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-memory_profiler.new.2738/python-memory_profiler.changes
  2020-05-26 17:23:19.632491652 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:46 UTC 2020 - Petr Gajdos 
+
+- %python3_only -> %python_alternative
+
+---



Other differences:
--
++ python-memory_profiler.spec ++
--- /var/tmp/diff_new_pack.AMV1r0/_old  2020-05-26 17:23:20.144492753 +0200
+++ /var/tmp/diff_new_pack.AMV1r0/_new  2020-05-26 17:23:20.148492761 +0200
@@ -32,6 +32,8 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-psutil
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:  noarch
 # SECTION tests
 BuildRequires:  %{python_module psutil}
@@ -53,6 +55,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/mprof
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %python_expand chmod -x 
%{buildroot}%{$python_sitelib}/memory_profiler-%{version}-py%{$python_bin_suffix}.egg-info/*
 
@@ -71,10 +74,16 @@
 %python_exec -m memory_profiler test/test_memory_usage.py
 %python_exec -m memory_profiler test/test_precision_import.py
 
+%post
+%python_install_alternative mprof
+
+%postun
+%python_uninstall_alternative mprof
+
 %files %{python_files}
 %doc README.rst
 %license COPYING
-%python3_only %{_bindir}/mprof
+%python_alternative %{_bindir}/mprof
 %{python_sitelib}/*
 
 %changelog




commit python-memory_profiler for openSUSE:Factory

2020-01-22 Thread root
Hello community,

here is the log from the commit of package python-memory_profiler for 
openSUSE:Factory checked in at 2020-01-22 22:46:37

Comparing /work/SRC/openSUSE:Factory/python-memory_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-memory_profiler.new.26092 (New)


Package is "python-memory_profiler"

Wed Jan 22 22:46:37 2020 rev:6 rq:766366 version:0.57.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-memory_profiler/python-memory_profiler.changes
2019-04-24 13:57:39.439978351 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-memory_profiler.new.26092/python-memory_profiler.changes
 2020-01-22 22:47:03.740599539 +0100
@@ -1,0 +2,6 @@
+Wed Jan 22 15:34:33 UTC 2020 - Martin Sirringhaus 
+
+- Update to 0.57.0:
+  * no upstream changelog available
+
+---

Old:

  memory_profiler-0.55.0.tar.gz

New:

  memory_profiler-0.57.0.tar.gz



Other differences:
--
++ python-memory_profiler.spec ++
--- /var/tmp/diff_new_pack.vRu4zo/_old  2020-01-22 22:47:04.964600155 +0100
+++ /var/tmp/diff_new_pack.vRu4zo/_new  2020-01-22 22:47:04.968600157 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-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,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-memory_profiler
-Version:0.55.0
+Version:0.57.0
 Release:0
 Summary:A module for monitoring memory usage of a python program
 License:BSD-3-Clause

++ memory_profiler-0.55.0.tar.gz -> memory_profiler-0.57.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/memory_profiler-0.55.0/PKG-INFO 
new/memory_profiler-0.57.0/PKG-INFO
--- old/memory_profiler-0.55.0/PKG-INFO 2018-12-14 16:21:33.0 +0100
+++ new/memory_profiler-0.57.0/PKG-INFO 2020-01-11 01:45:10.0 +0100
@@ -1,8 +1,8 @@
 Metadata-Version: 1.1
 Name: memory_profiler
-Version: 0.55.0
+Version: 0.57.0
 Summary: A module for monitoring memory usage of a python program
-Home-page: http://pypi.python.org/pypi/memory_profiler
+Home-page: https://github.com/pythonprofilers/memory_profiler
 Author: Fabian Pedregosa
 Author-email: f...@bianp.net
 License: BSD
@@ -158,6 +158,11 @@
:target: https://github.com/scikit-learn/scikit-learn/pull/2248
:height: 350px
 
+or, with ``mprof plot --flame`` (the function and timestamp names will 
appear on hover):
+
+.. image:: ./images/flamegraph.png
+   :height: 350px
+
 A discussion of these capabilities can be found `here 
`_.
 
 .. warning:: If your Python file imports the memory profiler `from 
memory_profiler import profile` these timestamps will not be recorded. Comment 
out the import, leave your functions decorated, and re-run.
@@ -205,6 +210,19 @@
 the API directly, note that the return from ``memory_usage`` will 
include the
 child memory in a nested list along with the main process memory.
 
+Plot settings
+===
+
+By default, the command line call is set as the graph title. If you 
wish to customize it, you can use the ``-t`` option to manually set the figure 
title.
+
+
+mprof plot -t 'Recorded memory usage'
+
+You can also hide the function timestamps using the ``n`` flag, such as
+
+mprof plot -n
+
+
 Setting debugger breakpoints
 =
 It is possible to set breakpoints depending on the amount of memory 
used.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/memory_profiler-0.55.0/README.rst 
new/memory_profiler-0.57.0/README.rst
--- old/memory_profiler-0.55.0/README.rst   2018-12-13 16:49:08.0 
+0100
+++ new/memory_profiler-0.57.0/README.rst   2019-11-05 21:56:35.0 
+0100
@@ -150,6 +150,11 @@
:target: https://github.com/scikit-learn/scikit-learn/pull/2248
:height: 350px
 
+or, with ``mprof plot --flame`` (the function and timestamp names will appear 
on hover):
+
+.. image:: ./images/flamegraph.png
+   :height: 350px
+
 A discussion of these capabilities can be found `here 
`_.
 
 .. 

commit python-memory_profiler for openSUSE:Factory

2019-04-24 Thread root
Hello community,

here is the log from the commit of package python-memory_profiler for 
openSUSE:Factory checked in at 2019-04-24 13:57:38

Comparing /work/SRC/openSUSE:Factory/python-memory_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-memory_profiler.new.5536 (New)


Package is "python-memory_profiler"

Wed Apr 24 13:57:38 2019 rev:5 rq:697268 version:0.55.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-memory_profiler/python-memory_profiler.changes
2019-04-08 20:53:26.822564434 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-memory_profiler.new.5536/python-memory_profiler.changes
  2019-04-24 13:57:39.439978351 +0200
@@ -1,0 +2,7 @@
+Tue Apr 23 19:10:06 CEST 2019 - Matej Cepl 
+
+- Add revert-5fe38da92673.patch to avoid
+  gh#pythonprofilers/memory_profiler#226 and to make
+  python-spyder-memory-profiler testsuite to pass.
+
+---

New:

  revert-5fe38da92673.patch



Other differences:
--
++ python-memory_profiler.spec ++
--- /var/tmp/diff_new_pack.nWn0P6/_old  2019-04-24 13:57:40.247977845 +0200
+++ /var/tmp/diff_new_pack.nWn0P6/_new  2019-04-24 13:57:40.247977845 +0200
@@ -25,6 +25,9 @@
 Group:  Development/Languages/Python
 URL:https://github.com/pythonprofilers/memory_profiler
 Source: 
https://files.pythonhosted.org/packages/source/m/memory_profiler/memory_profiler-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM revert-5fe38da92673.patch 
gh#pythonprofilers/memory_profiler#226 mc...@suse.com
+# Revert broken patch, leading to the failure of spyder-memory-profiler
+Patch0: revert-5fe38da92673.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -43,6 +46,7 @@
 
 %prep
 %setup -q -n memory_profiler-%{version}
+%autopatch -p1
 
 %build
 %python_build

++ revert-5fe38da92673.patch ++
--- a/memory_profiler.py
+++ b/memory_profiler.py
@@ -597,7 +597,9 @@ class CodeMap(dict):
 
 prev_line_value = self[code].get(prev_lineno, None) if prev_lineno 
else None
 prev_line_memory = prev_line_value[1] if prev_line_value else 0
-self[code][lineno] = (max(previous_inc, memory-prev_line_memory), 
max(memory, previous_memory))
+#inc = (memory-prev_line_memory)
+#print('trace lineno=%(lineno)s prev_lineno=%(prev_lineno)s 
mem=%(memory)s prev_inc=%(previous_inc)s inc=%(inc)s' % locals())
+self[code][lineno] = (previous_inc + (memory-prev_line_memory), 
max(memory, previous_memory))
 
 def items(self):
 """Iterate on the toplevel code blocks."""
--- a/test/test_tracemalloc.py
+++ b/test/test_tracemalloc.py
@@ -18,6 +18,8 @@ EPSILON = 0.0001
 def test_memory_profiler(test_input, expected):
 mem_prof(test_input)
 inc, dec = parse_mem_prof()
+assert abs(inc - dec) <= EPSILON, \
+'inc = {}, dec = {}, err = {}'.format(inc, dec, abs(inc - dec))
 assert abs(inc - expected) <= EPSILON, \
 'inc = {}, size = {}, err = {}'.format(
 inc, expected, abs(inc - expected)



commit python-memory_profiler for openSUSE:Factory

2019-04-08 Thread root
Hello community,

here is the log from the commit of package python-memory_profiler for 
openSUSE:Factory checked in at 2019-04-08 20:53:24

Comparing /work/SRC/openSUSE:Factory/python-memory_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-memory_profiler.new.3908 (New)


Package is "python-memory_profiler"

Mon Apr  8 20:53:24 2019 rev:4 rq:691807 version:0.55.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-memory_profiler/python-memory_profiler.changes
2018-12-24 11:39:40.145543834 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-memory_profiler.new.3908/python-memory_profiler.changes
  2019-04-08 20:53:26.822564434 +0200
@@ -1,0 +2,6 @@
+Fri Apr  5 12:32:09 UTC 2019 - Tomáš Chvátal 
+
+- Update to 0.55.0:
+  * no upstream changelog available
+
+---

Old:

  memory_profiler-0.52.0.tar.gz

New:

  memory_profiler-0.55.0.tar.gz



Other differences:
--
++ python-memory_profiler.spec ++
--- /var/tmp/diff_new_pack.PcVrUS/_old  2019-04-08 20:53:27.506564936 +0200
+++ /var/tmp/diff_new_pack.PcVrUS/_new  2019-04-08 20:53:27.510564939 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-memory_profiler
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,21 +18,21 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-memory_profiler
-Version:0.52.0
+Version:0.55.0
 Release:0
 Summary:A module for monitoring memory usage of a python program
 License:BSD-3-Clause
 Group:  Development/Languages/Python
-Url:http://pypi.python.org/pypi/memory_profiler
+URL:https://github.com/pythonprofilers/memory_profiler
 Source: 
https://files.pythonhosted.org/packages/source/m/memory_profiler/memory_profiler-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:   python-psutil
+BuildArch:  noarch
 # SECTION tests
 BuildRequires:  %{python_module psutil}
 # /SECTION
-Requires:   python-psutil
-BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -49,18 +49,19 @@
 
 %install
 %python_install
-%{python_expand chmod -x 
%{buildroot}%{$python_sitelib}/memory_profiler-%version-py%{$python_bin_suffix}.egg-info/*}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%python_expand chmod -x 
%{buildroot}%{$python_sitelib}/memory_profiler-%{version}-py%{$python_bin_suffix}.egg-info/*
 
 %check
-# adapted command from the Makefile which is not included in the tarball :(
+export LANG="en_US.UTF8"
 %python_exec -m memory_profiler test/test_func.py
 %python_exec -m memory_profiler test/test_loop.py
 %python_exec -m memory_profiler test/test_as.py
 %python_exec -m memory_profiler test/test_global.py
 %python_exec -m memory_profiler test/test_precision_command_line.py
 %python_exec -m memory_profiler test/test_gen.py
-# fails no matter what I set as LANG
-%{python_expand $python -m memory_profiler test/test_unicode.py || :}
+# unicode handling only proper in python3
+python3 -m memory_profiler test/test_unicode.py
 %python_exec -m memory_profiler test/test_tracemalloc.py
 %python_exec -m memory_profiler test/test_import.py
 %python_exec -m memory_profiler test/test_memory_usage.py

++ memory_profiler-0.52.0.tar.gz -> memory_profiler-0.55.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/memory_profiler-0.52.0/PKG-INFO 
new/memory_profiler-0.55.0/PKG-INFO
--- old/memory_profiler-0.52.0/PKG-INFO 2018-02-16 01:44:00.0 +0100
+++ new/memory_profiler-0.55.0/PKG-INFO 2018-12-14 16:21:33.0 +0100
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: memory_profiler
-Version: 0.52.0
+Version: 0.55.0
 Summary: A module for monitoring memory usage of a python program
 Home-page: http://pypi.python.org/pypi/memory_profiler
 Author: Fabian Pedregosa
 Author-email: f...@bianp.net
 License: BSD
-Description-Content-Type: UNKNOWN
 Description: .. image:: 
https://travis-ci.org/pythonprofilers/memory_profiler.svg?branch=master
 :target: https://travis-ci.org/pythonprofilers/memory_profiler
 
@@ -23,9 +22,12 @@
 ==
  Installation
 ==
-To install through easy_install or pip::
+Install via pip::
 
-$ easy_install -U memory_profiler # pip install -U memory_profiler
+$ pip install -U 

commit python-memory_profiler for openSUSE:Factory

2018-12-24 Thread root
Hello community,

here is the log from the commit of package python-memory_profiler for 
openSUSE:Factory checked in at 2018-12-24 11:39:38

Comparing /work/SRC/openSUSE:Factory/python-memory_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-memory_profiler.new.28833 (New)


Package is "python-memory_profiler"

Mon Dec 24 11:39:38 2018 rev:3 rq:659492 version:0.52.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-memory_profiler/python-memory_profiler.changes
2018-02-19 13:02:17.995194815 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-memory_profiler.new.28833/python-memory_profiler.changes
 2018-12-24 11:39:40.145543834 +0100
@@ -1,0 +2,5 @@
+Tue Dec  4 12:50:21 UTC 2018 - Matej Cepl 
+
+- Remove superfluous devel dependency for noarch package
+
+---



Other differences:
--
++ python-memory_profiler.spec ++
--- /var/tmp/diff_new_pack.tmQmhJ/_old  2018-12-24 11:39:40.605543426 +0100
+++ /var/tmp/diff_new_pack.tmQmhJ/_new  2018-12-24 11:39:40.609543422 +0100
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -25,7 +25,6 @@
 Group:  Development/Languages/Python
 Url:http://pypi.python.org/pypi/memory_profiler
 Source: 
https://files.pythonhosted.org/packages/source/m/memory_profiler/memory_profiler-%{version}.tar.gz
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
 # SECTION tests




commit python-memory_profiler for openSUSE:Factory

2018-02-19 Thread root
Hello community,

here is the log from the commit of package python-memory_profiler for 
openSUSE:Factory checked in at 2018-02-19 13:01:57

Comparing /work/SRC/openSUSE:Factory/python-memory_profiler (Old)
 and  /work/SRC/openSUSE:Factory/.python-memory_profiler.new (New)


Package is "python-memory_profiler"

Mon Feb 19 13:01:57 2018 rev:2 rq:52 version:0.52.0

Changes:

--- 
/work/SRC/openSUSE:Factory/python-memory_profiler/python-memory_profiler.changes
2018-02-14 09:27:32.720343642 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-memory_profiler.new/python-memory_profiler.changes
   2018-02-19 13:02:17.995194815 +0100
@@ -1,0 +2,6 @@
+Fri Feb 16 16:47:10 UTC 2018 - sebix+novell@sebix.at
+
+- update to version 0.52.0:
+ * no upstream changelog available
+
+---

Old:

  memory_profiler-0.51.0.tar.gz

New:

  memory_profiler-0.52.0.tar.gz



Other differences:
--
++ python-memory_profiler.spec ++
--- /var/tmp/diff_new_pack.v131uc/_old  2018-02-19 13:02:18.931161060 +0100
+++ /var/tmp/diff_new_pack.v131uc/_new  2018-02-19 13:02:18.935160916 +0100
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-memory_profiler
-Version:0.51.0
+Version:0.52.0
 Release:0
 Summary:A module for monitoring memory usage of a python program
 License:BSD-3-Clause

++ memory_profiler-0.51.0.tar.gz -> memory_profiler-0.52.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/memory_profiler-0.51.0/PKG-INFO 
new/memory_profiler-0.52.0/PKG-INFO
--- old/memory_profiler-0.51.0/PKG-INFO 2018-01-06 20:35:37.0 +0100
+++ new/memory_profiler-0.52.0/PKG-INFO 2018-02-16 01:44:00.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: memory_profiler
-Version: 0.51.0
+Version: 0.52.0
 Summary: A module for monitoring memory usage of a python program
 Home-page: http://pypi.python.org/pypi/memory_profiler
 Author: Fabian Pedregosa
@@ -425,7 +425,7 @@
 
 `Benchy `_
 
-`IPython memory usage 
`_
+`IPython memory usage 
`_
 
 `PySpeedIT `_ (uses a reduced 
version of memory_profiler)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/memory_profiler-0.51.0/README.rst 
new/memory_profiler-0.52.0/README.rst
--- old/memory_profiler-0.51.0/README.rst   2017-11-24 00:14:01.0 
+0100
+++ new/memory_profiler-0.52.0/README.rst   2018-01-19 22:09:23.0 
+0100
@@ -416,7 +416,7 @@
 
 `Benchy `_
 
-`IPython memory usage `_
+`IPython memory usage `_
 
 `PySpeedIT `_ (uses a reduced version 
of memory_profiler)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/memory_profiler-0.51.0/memory_profiler.egg-info/PKG-INFO 
new/memory_profiler-0.52.0/memory_profiler.egg-info/PKG-INFO
--- old/memory_profiler-0.51.0/memory_profiler.egg-info/PKG-INFO
2018-01-06 20:35:36.0 +0100
+++ new/memory_profiler-0.52.0/memory_profiler.egg-info/PKG-INFO
2018-02-16 01:44:00.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: memory-profiler
-Version: 0.51.0
+Version: 0.52.0
 Summary: A module for monitoring memory usage of a python program
 Home-page: http://pypi.python.org/pypi/memory_profiler
 Author: Fabian Pedregosa
@@ -425,7 +425,7 @@
 
 `Benchy `_
 
-`IPython memory usage 
`_
+`IPython memory usage 
`_
 
 `PySpeedIT `_ (uses a reduced 
version of memory_profiler)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/memory_profiler-0.51.0/memory_profiler.py 
new/memory_profiler-0.52.0/memory_profiler.py
--- old/memory_profiler-0.51.0/memory_profiler.py   2018-01-06 
20:34:53.0 +0100
+++ new/memory_profiler-0.52.0/memory_profiler.py   2018-02-16 
01:43:37.0 +0100
@@ -3,7 +3,7 @@
 # .. we'll use this to pass it to the child script ..
 _CLEAN_GLOBALS = globals().copy()
 
-__version__ =