Compare commits

..

No commits in common. "925a08765f549f7590551b4aeb71895dd079e4b1" and "080d92517c08f345bc6f7d1f16a81917f450f01c" have entirely different histories.

4 changed files with 7 additions and 63 deletions

BIN
Pympler-0.9.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,39 +0,0 @@
diff -up Pympler-1.0.1/test/gui/test_garbage.py.py311 Pympler-1.0.1/test/gui/test_garbage.py
--- Pympler-1.0.1/test/gui/test_garbage.py.py311 2021-10-24 00:36:36.000000000 +0200
+++ Pympler-1.0.1/test/gui/test_garbage.py 2022-09-15 12:45:49.151848210 +0200
@@ -53,6 +53,7 @@ class GarbageTestCase(unittest.TestCase)
self.assertEqual(gb.count, 0)
self.assertEqual(gb.render('garbage.eps'), False)
+ @unittest.expectedFailure
def test_findgarbage(self):
"""Test garbage annotation.
"""
@@ -130,6 +131,7 @@ class GarbageTestCase(unittest.TestCase)
self.assertTrue(_Edge(idbar, idbd, '__dict__') in fbg.edges, fbg.edges)
self.assertTrue(_Edge(idbd, idfoo, 'prev') in fbg.edges, fbg.edges)
+ @unittest.expectedFailure
def test_prune(self):
"""Test pruning of reference graph.
"""
diff -up Pympler-1.0.1/test/muppy/test_refbrowser.py.py311 Pympler-1.0.1/test/muppy/test_refbrowser.py
--- Pympler-1.0.1/test/muppy/test_refbrowser.py.py311 2021-10-24 00:36:36.000000000 +0200
+++ Pympler-1.0.1/test/muppy/test_refbrowser.py 2022-09-15 12:44:35.632368749 +0200
@@ -127,6 +127,7 @@ root-+-branch1-+-a
# attach child
n.children.append(2)
+ @unittest.expectedFailure
def test_get_tree(self):
"""Test reference browser tree representation."""
#root <- ref1 <- ref11
@@ -152,7 +153,7 @@ root-+-branch1-+-a
refs = [ref1, ref11, ref2]
children = [c.o for c in res.children if isinstance(c, refbrowser._Node)]
for r in refs:
- self.assertTrue(r in children)
+ self.assertTrue(r in children, "%s in children" % r)
# test if maxdepth is working
res = refbrowser.RefBrowser(root, maxdepth=0).get_tree()
self.assertEqual(len(res.children), 0)

View File

@ -1,16 +1,13 @@
%global _empty_manifest_terminate_build 0
%global pname Pympler
Name: python-%{pname}
Version: 1.0.1
Release: 2
Version: 0.9
Release: 1
Summary: A development tool to measure, monitor and analyze the memory behavior of Python objects.
License: Apache-2.0 and MIT
URL: https://github.com/pympler/pympler
Source0: https://files.pythonhosted.org/packages/12/b7/9d17fbb2fde0b035dbd27e5d82dfbcd3fa990cf5a469cef8e89712d16113/Pympler-1.0.1.tar.gz
# skip some tests failing with Python 3.11: https://github.com/pympler/pympler/issues/148
Patch0: python-Pympler-py311.patch
Source0: https://files.pythonhosted.org/packages/e8/e2/2f3a086701bb62b1c478a3921836271177838a3c98cdc6b82c3bb36d3854/Pympler-0.9.tar.gz
BuildArch: noarch
%description
Pympler is a development tool to measure, monitor and analyze the memory
behavior of Python objects in a running Python application.By pympling a Python
@ -26,12 +23,11 @@ analysis of the lifetime of selected Python objects.
Summary: A development tool to measure, monitor and analyze the memory behavior of Python objects.
Provides: python-%{pname}
# Base build requires
BuildRequires: python3-devel python3-tkinter
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-bottle
%description -n python3-%{pname}
Pympler is a development tool to measure, monitor and analyze the memory
behavior of Python objects in a running Python application.By pympling a Python
@ -58,13 +54,14 @@ line monitoring of a Python application and the class tracker provides off-line
analysis of the lifetime of selected Python objects.
%prep
%autosetup -n Pympler-%{version} -p1
%autosetup -n Pympler-0.9 -S git
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
@ -95,26 +92,12 @@ mv %{buildroot}/doclist.lst .
%{__python3} setup.py try
%files -n python3-%{pname} -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Fri Aug 04 2023 yaoxin <yao_xin001@hoperun.com> - 1.0.1-2
- Fix build failure caused by python upgrade to 3.11
* Tue Dec 06 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 1.0.1-1
- Update package to version 1.0.1
* Thu Aug 18 2022 wulei <wulei80@h-partners.com> - 0.9-4
- Fix check assertionerror
* Tue May 17 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 0.9-3
- Fix collections.MutableMapping no support for python3.10
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.9-2
- DESC: delete -S git from %autosetup
* Thu Jul 29 2021 OpenStack_SIG <openstack@openeuler.org> - 0.9-1
- Package Spec generate