[packages/python3-pympler] - python3-pympler.spec updated to 1.1 for python 3.6+
qboosh
qboosh at pld-linux.org
Tue Apr 7 18:31:31 CEST 2026
commit 82740a77c82cb948abe35af4ddd8c543aab3e248
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Apr 7 18:31:58 2026 +0200
- python3-pympler.spec updated to 1.1 for python 3.6+
python-pympler.spec | 113 ---------------------------------------------------
python3-pympler.spec | 56 +++++++++++++++++++++++++
2 files changed, 56 insertions(+), 113 deletions(-)
---
diff --git a/python-pympler.spec b/python-pympler.spec
deleted file mode 100644
index 3ca049f..0000000
--- a/python-pympler.spec
+++ /dev/null
@@ -1,113 +0,0 @@
-#
-# Conditional build:
-%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Tool to measure, monitor and analyse the memory behaviour of Python 2 objects
-Summary(pl.UTF-8): Narzędzie do pomiaru, monitorowania i analizy zachowania pamięciowego obiektów Pythona 2
-Name: python-pympler
-# keep 0.x here for python2 support
-Version: 0.9
-Release: 6
-License: Apache v2.0
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/pympler/
-Source0: https://files.pythonhosted.org/packages/source/P/Pympler/Pympler-%{version}.tar.gz
-# Source0-md5: b1553e2e0b69c8c5e502011a604eaed3
-Patch0: %{name}-tests.patch
-URL: https://pypi.org/project/Pympler/
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-%if %{with tests}
-BuildRequires: idle
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-# no idlelib.TreeWidget in python 3.6+, functionality skipped
-%endif
-Requires: python-modules >= 1:2.7
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Pympler is a development tool to measure, monitor and analyse the
-memory behaviour of Python objects in a running Python application.
-
-%description -l pl.UTF-8
-Pympler to narzędzie programistyczne do pomiaru, monitorowania i
-analizy zachowania pamięciowego obiektów Pythona w działającej
-aplikacji.
-
-%package -n python3-pympler
-Summary: Tool to measure, monitor and analyse the memory behaviour of Python 3 objects
-Summary(pl.UTF-8): Narzędzie do pomiaru, monitorowania i analizy zachowania pamięciowego obiektów Pythona 3
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-pympler
-Pympler is a development tool to measure, monitor and analyse the
-memory behaviour of Python objects in a running Python application.
-
-%description -n python3-pympler -l pl.UTF-8
-Pympler to narzędzie programistyczne do pomiaru, monitorowania i
-analizy zachowania pamięciowego obiektów Pythona w działającej
-aplikacji.
-
-%prep
-%setup -q -n Pympler-%{version}
-%patch -P 0 -p1
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd) \
-%{__python} test/runtest.py -post-install -verbose 3
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTHONPATH=$(pwd) \
-%{__python3} test/runtest.py -post-install -verbose 3
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc NOTICE README.md
-%{py_sitescriptdir}/pympler
-%{py_sitescriptdir}/Pympler-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pympler
-%defattr(644,root,root,755)
-%doc NOTICE README.md
-%{py3_sitescriptdir}/pympler
-%{py3_sitescriptdir}/Pympler-%{version}-py*.egg-info
-%endif
diff --git a/python3-pympler.spec b/python3-pympler.spec
new file mode 100644
index 0000000..bfb6cf3
--- /dev/null
+++ b/python3-pympler.spec
@@ -0,0 +1,56 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (4 failures with python 3.13 as of 1.1)
+
+Summary: Tool to measure, monitor and analyse the memory behaviour of Python 2 objects
+Summary(pl.UTF-8): Narzędzie do pomiaru, monitorowania i analizy zachowania pamięciowego obiektów Pythona 2
+Name: python3-pympler
+Version: 1.1
+Release: 1
+License: Apache v2.0
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pympler/
+Source0: https://files.pythonhosted.org/packages/source/P/Pympler/pympler-%{version}.tar.gz
+# Source0-md5: de698a9a3f2b968b4da9d71bc5eebb0d
+URL: https://pypi.org/project/Pympler/
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Pympler is a development tool to measure, monitor and analyse the
+memory behaviour of Python objects in a running Python application.
+
+%description -l pl.UTF-8
+Pympler to narzędzie programistyczne do pomiaru, monitorowania i
+analizy zachowania pamięciowego obiektów Pythona w działającej
+aplikacji.
+
+%prep
+%setup -q -n pympler-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTHONPATH=$(pwd) \
+%{__python3} test/runtest.py -pre-install -verbose 3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NOTICE README.md
+%{py3_sitescriptdir}/pympler
+%{py3_sitescriptdir}/Pympler-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pympler.git/commitdiff/82740a77c82cb948abe35af4ddd8c543aab3e248
More information about the pld-cvs-commit
mailing list