Dominik 'Rathann' Mierzejewski 12ebbf8
%global pname Pympler
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
%global desc \
Dominik 'Rathann' Mierzejewski 12ebbf8
Pympler is a development tool to measure, monitor and analyze the memory\
Dominik 'Rathann' Mierzejewski 12ebbf8
behavior of Python objects in a running Python application.\
Dominik 'Rathann' Mierzejewski 12ebbf8
\
Dominik 'Rathann' Mierzejewski 12ebbf8
By pympling a Python application, detailed insight in the size and the lifetime\
Dominik 'Rathann' Mierzejewski 12ebbf8
of Python objects can be obtained. Undesirable or unexpected runtime behavior\
Dominik 'Rathann' Mierzejewski 12ebbf8
like memory bloat and other “pymples” can easily be identified.\
Dominik 'Rathann' Mierzejewski 12ebbf8
\
Dominik 'Rathann' Mierzejewski 12ebbf8
Pympler integrates three previously separate modules into a single,\
Dominik 'Rathann' Mierzejewski 12ebbf8
comprehensive profiling tool. The asizeof module provides basic size information\
Dominik 'Rathann' Mierzejewski 12ebbf8
for one or several Python objects, module muppy is used for on-line monitoring\
Dominik 'Rathann' Mierzejewski 12ebbf8
of a Python application and module Class Tracker provides off-line analysis of\
Dominik 'Rathann' Mierzejewski 12ebbf8
the lifetime of selected Python objects.
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
Name: python-%{pname}
06db126
Version: 1.0.1
8dcdbb4
Release: 10%{?dist}
Dominik 'Rathann' Mierzejewski 12ebbf8
Summary: Measure, monitor and analyze the memory behavior of Python objects
c90172b
License: Apache-2.0 and BSD-3-Clause and MIT
Dominik 'Rathann' Mierzejewski 12ebbf8
# bundled stuff
Dominik 'Rathann' Mierzejewski 12ebbf8
# pympler/asizeof.py: BSD
Dominik 'Rathann' Mierzejewski 12ebbf8
# pympler/static/jquery.sparkline.min.js: BSD
2590ae1
# pympler/templates/jquery.flot*.min.js: MIT
Dominik 'Rathann' Mierzejewski 12ebbf8
URL: http://pythonhosted.org/Pympler/
Dominik 'Rathann' Mierzejewski 12ebbf8
Source0: https://pypi.python.org/packages/source/P/%{pname}/%{pname}-%{version}.tar.gz
64942ca
# fixes TypeError exception from https://github.com/pympler/pympler/issues/148
64942ca
Patch0: https://patch-diff.githubusercontent.com/raw/pympler/pympler/pull/149.patch
64942ca
# skip some tests failing with Python 3.11: https://github.com/pympler/pympler/issues/148
64942ca
Patch1: %{name}-py311.patch
Dominik 'Rathann' Mierzejewski 12ebbf8
# drop python shebang from asizeof.py
Dominik 'Rathann' Mierzejewski 12ebbf8
Patch2: %{name}-no-shebang.patch
Dominik 'Rathann' Mierzejewski 12ebbf8
BuildArch: noarch
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
%description
Dominik 'Rathann' Mierzejewski 12ebbf8
%{desc}
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
%package -n python3-%{pname}
Dominik 'Rathann' Mierzejewski 12ebbf8
Summary: %{summary}
Dominik 'Rathann' Mierzejewski 12ebbf8
BuildRequires: python3-bottle
Dominik 'Rathann' Mierzejewski 12ebbf8
BuildRequires: python3-devel
Dominik 'Rathann' Mierzejewski 12ebbf8
BuildRequires: python3-matplotlib
Dominik 'Rathann' Mierzejewski 12ebbf8
BuildRequires: python3-setuptools
de61e4e
BuildRequires: python3-pip
de61e4e
BuildRequires: python3-wheel
Dominik 'Rathann' Mierzejewski 12ebbf8
Requires: python3-bottle
2590ae1
# http://www.flotcharts.org
2590ae1
Provides: bundled(js-jquery-flot) = 0.8.3
Dominik 'Rathann' Mierzejewski 12ebbf8
# https://github.com/krzysu/flot.tooltip
Dominik 'Rathann' Mierzejewski 12ebbf8
Provides: bundled(js-jquery-flot-tooltip) = 0.8.4
Dominik 'Rathann' Mierzejewski 12ebbf8
# http://omnipotent.net/jquery.sparkline/
Dominik 'Rathann' Mierzejewski 12ebbf8
Provides: bundled(js-jquery-sparkline) = 2.1.1
38327fc
# asizeof.py is bundled
38327fc
Provides: bundled(python%{python3_version}dist(asizeof))
Dominik 'Rathann' Mierzejewski 12ebbf8
# required by pympler/charts.py, but doesn't throw an exception without
Dominik 'Rathann' Mierzejewski 12ebbf8
Recommends: python3-matplotlib
Dominik 'Rathann' Mierzejewski 12ebbf8
# pympler/panels.py is an extension for django-debug-toolbar
Dominik 'Rathann' Mierzejewski 12ebbf8
Enhances: python3-django-debug-toolbar
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
%description -n python3-%{pname}
Dominik 'Rathann' Mierzejewski 12ebbf8
%{desc}
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
%prep
Dominik 'Rathann' Mierzejewski 12ebbf8
%setup -q -n %{pname}-%{version}
Dominik 'Rathann' Mierzejewski 12ebbf8
rm pympler/util/bottle.py
38327fc
chmod -x pympler/asizeof.py
c90172b
%patch -P 0 -p1
c90172b
%patch -P 1 -p1 -b .py311
c90172b
%patch -P 2 -p1 -b .no-shebang
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
%build
c90172b
%pyproject_wheel
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
%install
c90172b
%pyproject_install
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
%check
Dominik 'Rathann' Mierzejewski 12ebbf8
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py test
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
%files -n python3-%{pname}
Dominik 'Rathann' Mierzejewski 12ebbf8
%license LICENSE
Dominik 'Rathann' Mierzejewski 12ebbf8
%doc NOTICE README.md
c90172b
%{python3_sitelib}/%{pname}-%{version}.dist-info/
Dominik 'Rathann' Mierzejewski 12ebbf8
%{python3_sitelib}/pympler
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
%changelog
8dcdbb4
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-10
8dcdbb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
8dcdbb4
c90172b
* Fri Jan 19 2024 Gwyn Ciesla <gwync@protonmail.com> - 1.0.1-9
c90172b
- Fix patch macros, update python macros, SPDX license tags.
c90172b
37903b3
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-8
37903b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
37903b3
058ab9e
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 1.0.1-7
058ab9e
- Rebuilt for Python 3.12
058ab9e
81951c7
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
81951c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
81951c7
64942ca
* Thu Sep 15 2022 Dominik Mierzejewski <dominik@greysector.net> 1.0.1-5
64942ca
- work around issues with Python 3.11 (rhbz#2113612)
64942ca
9bdb2a9
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
9bdb2a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
9bdb2a9
61c9911
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 1.0.1-3
61c9911
- Rebuilt for Python 3.11
61c9911
4c60610
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
4c60610
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
4c60610
06db126
* Sun Jan 16 2022 Dominik Mierzejewski <rpm@greysector.net> 1.0.1-1
06db126
- update to 1.0.1 (#2033793)
06db126
f1eb9dd
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-4
f1eb9dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
f1eb9dd
0307935
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.9-3
0307935
- Rebuilt for Python 3.10
0307935
eed28ad
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-2
eed28ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
eed28ad
3d6cb08
* Sun Oct 25 2020 Dominik Mierzejewski <rpm@greysector.net> 0.9-1
3d6cb08
- update to 0.9 (#1888434)
3d6cb08
f4155d8
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-5
f4155d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f4155d8
1c0ab2b
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8-4
1c0ab2b
- Rebuilt for Python 3.9
1c0ab2b
253fbad
* Sat May 02 2020 Dominik Mierzejewski <rpm@greysector.net> 0.8-3
253fbad
- fix build with Python 3.9 (#1791963)
253fbad
393c22f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2
393c22f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
393c22f
2590ae1
* Mon Dec 02 2019 Dominik Mierzejewski <rpm@greysector.net> 0.8-1
2590ae1
- update to 0.8 (#1771742)
2590ae1
- re-bundle flot (nodejs-flot was retired)
2590ae1
- re-enable failing test (fixed upstream)
2590ae1
cf6319c
* Thu Sep 12 2019 Dominik Mierzejewski <rpm@greysector.net> 0.7-1
cf6319c
- update to 0.7 (#1696870)
7232cde
- disable one test failing with Python 3.8
7232cde
  (https://github.com/pympler/pympler/issues/102)
cf6319c
b32e5ef
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6-3
b32e5ef
- Rebuilt for Python 3.8
b32e5ef
9e08314
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-2
9e08314
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9e08314
38327fc
* Tue Feb 26 2019 Dominik Mierzejewski <rpm@greysector.net> 0.6-1
38327fc
- update to 0.6
38327fc
- mark asizeof.py as bundled (#1649274)
38327fc
54b862e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-4
54b862e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
54b862e
c7faec5
* Thu Oct 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5-3
c7faec5
- Subpackage python2-Pympler has been removed
c7faec5
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
c7faec5
daf0f1a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-2
daf0f1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
daf0f1a
c996e54
* Mon Jul 02 2018 Dominik Mierzejewski <rpm@greysector.net> 0.5-1
c996e54
- update to 0.5
c996e54
- drop obsolete patches
c996e54
- use pythonX_version macros in files list
c996e54
e2bf0b9
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-9
e2bf0b9
- Rebuilt for Python 3.7
e2bf0b9
a00b9ae
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-8
a00b9ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a00b9ae
a8f77e9
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.4.3-7
a8f77e9
- Update Python 2 dependency declarations to new packaging standards
a8f77e9
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
a8f77e9
9da4b82
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-6
9da4b82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9da4b82
bddc0ae
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.3-5
bddc0ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bddc0ae
691495c
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.4.3-4
691495c
- Rebuild for Python 3.6
691495c
e016323
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-3
e016323
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e016323
Dominik 'Rathann' Mierzejewski 12ebbf8
* Fri Jun 10 2016 Dominik Mierzejewski <rpm@greysector.net> 0.4.3-2
Dominik 'Rathann' Mierzejewski 12ebbf8
- drop CC-BY-SA-NC from license list and fix typo
Dominik 'Rathann' Mierzejewski 12ebbf8
- actually unbundle nodejs-flot
Dominik 'Rathann' Mierzejewski 12ebbf8
- add a weak dep for python{2,3}-django-debug-toolbar
Dominik 'Rathann' Mierzejewski 12ebbf8
- drop python shebang from asizeof.py
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
* Mon May 16 2016 Dominik Mierzejewski <rpm@greysector.net> 0.4.3-1
Dominik 'Rathann' Mierzejewski 12ebbf8
- update to 0.4.3
Dominik 'Rathann' Mierzejewski 12ebbf8
- build for python3 as well
Dominik 'Rathann' Mierzejewski 12ebbf8
- unbundle python-bottle
Dominik 'Rathann' Mierzejewski 12ebbf8
Dominik 'Rathann' Mierzejewski 12ebbf8
* Sun Aug 09 2015 Dominik Mierzejewski <rpm@greysector.net> 0.4.2-1
Dominik 'Rathann' Mierzejewski 12ebbf8
- initial build