Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
925a08765f
!11 Fix build failure caused by python upgrade to 3.11
From: @starlet-dx 
Reviewed-by: @cherry530 
Signed-off-by: @cherry530
2023-08-04 02:14:54 +00:00
starlet-dx
89dda4677f Fix build failure caused by python upgrade to 3.11 2023-08-04 09:39:03 +08:00
openeuler-ci-bot
09bbf33a15
!10 Update package to version 1.0.1
From: @jxy_git 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-12-08 06:25:02 +00:00
jxy_git
a5d577af87 Update package to version 1.0.1 2022-12-06 15:23:01 +08:00
openeuler-ci-bot
884c4602c3
!9 [sync] PR-8: 修复因python3-devel拆分出python3-tkinter子包导致python-Pympler编译失败问题
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-08-19 01:19:31 +00:00
wu-leilei
3e6b1ef320 fix check assertionerror
(cherry picked from commit 5fd5f5e3aafbb45918a496f775621793e7992e92)
2022-08-18 16:26:06 +08:00
openeuler-ci-bot
009c66ee08
!7 修复python-Pympler在master工程编译失败
From: @xigaoxinyan 
Reviewed-by: @myeuler 
Signed-off-by: @myeuler
2022-05-17 10:04:45 +00:00
xigaoxinyan
90ccf99caa fix-collection.MutableMapping-no-support-for-python3.10 2022-05-17 15:09:59 +08:00
openeuler-ci-bot
bf04ec95d6 !5 python-Pympler delete -S git from %autosetup
From: @chenyanpanHW
Reviewed-by: @shinwell_hu
Signed-off-by: @shinwell_hu
2021-08-13 02:15:59 +00:00
chenyanpanHW
60bc8c55b0
delete -S git from %autosetup 2021-07-30 23:18:33 +08:00
4 changed files with 63 additions and 7 deletions

Binary file not shown.

BIN
Pympler-1.0.1.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,39 @@
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,13 +1,16 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
%global pname Pympler %global pname Pympler
Name: python-%{pname} Name: python-%{pname}
Version: 0.9 Version: 1.0.1
Release: 1 Release: 2
Summary: A development tool to measure, monitor and analyze the memory behavior of Python objects. Summary: A development tool to measure, monitor and analyze the memory behavior of Python objects.
License: Apache-2.0 and MIT License: Apache-2.0 and MIT
URL: https://github.com/pympler/pympler URL: https://github.com/pympler/pympler
Source0: https://files.pythonhosted.org/packages/e8/e2/2f3a086701bb62b1c478a3921836271177838a3c98cdc6b82c3bb36d3854/Pympler-0.9.tar.gz 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
BuildArch: noarch BuildArch: noarch
%description %description
Pympler is a development tool to measure, monitor and analyze the memory 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 behavior of Python objects in a running Python application.By pympling a Python
@ -23,11 +26,12 @@ analysis of the lifetime of selected Python objects.
Summary: A development tool to measure, monitor and analyze the memory behavior of Python objects. Summary: A development tool to measure, monitor and analyze the memory behavior of Python objects.
Provides: python-%{pname} Provides: python-%{pname}
# Base build requires # Base build requires
BuildRequires: python3-devel BuildRequires: python3-devel python3-tkinter
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-pbr BuildRequires: python3-pbr
BuildRequires: python3-pip BuildRequires: python3-pip
BuildRequires: python3-wheel BuildRequires: python3-wheel
BuildRequires: python3-bottle
%description -n python3-%{pname} %description -n python3-%{pname}
Pympler is a development tool to measure, monitor and analyze the memory 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 behavior of Python objects in a running Python application.By pympling a Python
@ -54,14 +58,13 @@ line monitoring of a Python application and the class tracker provides off-line
analysis of the lifetime of selected Python objects. analysis of the lifetime of selected Python objects.
%prep %prep
%autosetup -n Pympler-0.9 -S git %autosetup -n Pympler-%{version} -p1
%build %build
%py3_build %py3_build
%install %install
%py3_install %py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir} install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
@ -92,12 +95,26 @@ mv %{buildroot}/doclist.lst .
%{__python3} setup.py try %{__python3} setup.py try
%files -n python3-%{pname} -f filelist.lst %files -n python3-%{pname} -f filelist.lst
%dir %{python3_sitelib}/* %dir %{python3_sitelib}/*
%files help -f doclist.lst %files help -f doclist.lst
%{_docdir}/* %{_docdir}/*
%changelog %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 * Thu Jul 29 2021 OpenStack_SIG <openstack@openeuler.org> - 0.9-1
- Package Spec generate - Package Spec generate