[packages/python3-pytest-speed] - new
qboosh
qboosh at pld-linux.org
Fri Jul 11 17:02:43 CEST 2025
commit 92cc1a6dd61e5c1455bffddb5cb9eeff3ee8e417
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Jul 11 17:04:02 2025 +0200
- new
python3-pytest-speed.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
---
diff --git a/python3-pytest-speed.spec b/python3-pytest-speed.spec
new file mode 100644
index 0000000..e1ab0d9
--- /dev/null
+++ b/python3-pytest-speed.spec
@@ -0,0 +1,78 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (empty in sdist)
+
+Summary: Modern benchmarking library for Python with pytest integration.
+Summary(pl.UTF-8): Nowoczesna biblioteka mierząca wydajność dla Pythona, integrująca się z pytestem
+Name: python3-pytest-speed
+Version: 0.3.5
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-speed/
+Source0: https://files.pythonhosted.org/packages/source/p/pytest-speed/pytest_speed-%{version}.tar.gz
+# Source0-md5: 69e78f21af3c003c071c6e3566b363b4
+URL: https://pypi.org/project/pytest-speed/
+BuildRequires: python3-build
+BuildRequires: python3-hatchling
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.7
+%if %{with tests}
+BuildRequires: python3-click >= 7
+BuildRequires: python3-pytest >= 7
+BuildRequires: python3-rich >= 12
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Modern benchmarking library for Python with pytest integration.
+
+pytest-speed is mostly backwards compatible with pytest-benchmark but
+adds:
+- clearer output using rich
+- clearer comparison of benchmarks
+- some extra functionality, e.g. running multiple benchmarks from a
+ single test
+
+%description -l pl.UTF-8
+Nowoczesna biblioteka mierząca wydajność dla Pythona, integrująca się
+z pytestem.
+
+pytest-speed jest w większości wstecznie zgodna z pytest-benchmark,
+ale dodaje:
+- bardziej przejrzyste wyjście dzięki rich
+- bardziej przejrzyste porównywanie wydajności
+- kilka dodatkowych funkcji, np. uruchamianie wielu pomiarów z
+ pojedynczego testu
+
+%prep
+%setup -q -n pytest_speed-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_speed \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/pytest-speed
+%{py3_sitescriptdir}/pytest_speed
+%{py3_sitescriptdir}/pytest_speed-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-speed.git/commitdiff/92cc1a6dd61e5c1455bffddb5cb9eeff3ee8e417
More information about the pld-cvs-commit
mailing list