[packages/python-pytest-profiling] - initial
qboosh
qboosh at pld-linux.org
Wed Feb 25 21:46:58 CET 2026
commit 10739b3fffdf34d554a6a1da1c6934d23e81dbcf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Feb 25 21:46:46 2026 +0100
- initial
python-pytest-profiling.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
---
diff --git a/python-pytest-profiling.spec b/python-pytest-profiling.spec
new file mode 100644
index 0000000..3de466a
--- /dev/null
+++ b/python-pytest-profiling.spec
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Profiling plugin for pytest
+Summary(pl.UTF-8): Wtyczka profilująca dla pytesta
+Name: python-pytest-profiling
+Version: 1.7.0
+Release: 0.1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-profiling/
+Source0: https://files.pythonhosted.org/packages/source/p/pytest-profiling/pytest-profiling-%{version}.tar.gz
+# Source0-md5: 30750522b506ab5e2d9487e6a273d105
+URL: https://pypi.org/project/pytest-profiling/
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-setuptools
+BuildRequires: python-setuptools_git
+%if %{with tests}
+BuildRequires: python-gprof2dot
+BuildRequires: python-pytest
+BuildRequires: python-pytest-virtualenv
+BuildRequires: python-six
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Profiling plugin for pytest, with tabular and heat graph output.
+
+%description -l pl.UTF-8
+Wtyczka profilująca dla pytesta z wyjściem w postaci tabeli i grafu
+cieplnego.
+
+%prep
+%setup -q -n pytest-profiling-%{version}
+
+%build
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python} -m pytest tests/unit
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py_install
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.md LICENSE README.md
+%{py_sitescriptdir}/pytest_profiling.py[co]
+%{py_sitescriptdir}/pytest_profiling-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pytest-profiling.git/commitdiff/10739b3fffdf34d554a6a1da1c6934d23e81dbcf
More information about the pld-cvs-commit
mailing list