[packages/python3-pytest_codspeed] - updated to 4.0.0
qboosh
qboosh at pld-linux.org
Thu Jul 10 21:22:57 CEST 2025
commit a30df942c0630ca091519716b86eb8a172a0be72
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jul 10 21:24:30 2025 +0200
- updated to 4.0.0
python3-pytest_codspeed.spec | 54 +++++++++++++++++++++++++-------------------
1 file changed, 31 insertions(+), 23 deletions(-)
---
diff --git a/python3-pytest_codspeed.spec b/python3-pytest_codspeed.spec
index a85d3f6..6dfbcd8 100644
--- a/python3-pytest_codspeed.spec
+++ b/python3-pytest_codspeed.spec
@@ -1,46 +1,55 @@
+#
# Conditional build:
%bcond_with tests # unit tests
%define module pytest_codspeed
Summary: Pytest plugin to create CodSpeed benchmarks
-# Name must match the python module/package name (as on pypi or in 'import' statement)
+Summary(pl.UTF-8): Wtyczka pytesta do tworzenia benchmarków CodSpeed
Name: python3-%{module}
-Version: 3.2.0
-Release: 6
+Version: 4.0.0
+Release: 1
License: MIT
Group: Libraries/Python
-Source0: https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5: 1af7148ae89f3820b3a3778312ff3b60
+#Source0Download: https://pypi.org/simple/pytest-codspeed/
+Source0: https://files.pythonhosted.org/packages/source/p/pytest_codspeed/%{module}-%{version}.tar.gz
+# Source0-md5: 0efbc7d3920ab6e47a531a02c5b8fcd4
Patch0: noarchlimit.patch
URL: https://pypi.org/project/pytest-codspeed/
BuildRequires: python3-build
+BuildRequires: python3-cffi >= 1.17.1
BuildRequires: python3-installer
-BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-modules >= 1:3.9
+BuildRequires: python3-setuptools >= 1:61
%if %{with tests}
-BuildRequires: python3-pytest
+%if "%{_ver_lt %{py3_ver} 3.10}" == "1"
+BuildRequires: python3-importlib_metadata >= 8.5.0
+%endif
+BuildRequires: python3-pytest >= 3.8
+BuildRequires: python3-rich >= 13.8.1
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 2.044
-Requires: python3-modules >= 1:3.2
+Requires: python3-modules >= 1:3.9
BuildRequires: valgrind
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Creating benchmarks with pytest-codspeed is compatible with the
-standard pytest-benchmark API. So if you already have benchmarks
-written with it, you can start using pytest-codspeed right away.
+Pytest plugin to create CodSpeed benchmarks.
+
+%description -l pl.UTF-8
+Wtyczka pytesta do tworzenia benchmarków CodSpeed.
%prep
%setup -q -n %{module}-%{version}
%patch -P0 -p1
%build
-PYTEST_CODSPEED_FORCE_EXTENSION_BUILD=1; export PYTEST_CODSPEED_FORCE_EXTENSION_BUILD
+export PYTEST_CODSPEED_FORCE_EXTENSION_BUILD=1
+
%py3_build_pyproject
%if %{with tests}
%{__python} -m zipfile -e build-3/*.whl build-3-test
-# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTEST_PLUGINS= \
%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
@@ -51,12 +60,15 @@ rm -rf $RPM_BUILD_ROOT
%py3_install_pyproject
+# module sources
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitedir}/pytest_codspeed/instruments/hooks/instrument-hooks
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.md
+%doc LICENSE README.md
%dir %{py3_sitedir}/%{module}
%{py3_sitedir}/%{module}/*.py
%{py3_sitedir}/%{module}/py.typed
@@ -64,13 +76,9 @@ rm -rf $RPM_BUILD_ROOT
%dir %{py3_sitedir}/%{module}/instruments
%{py3_sitedir}/%{module}/instruments/*.py
%{py3_sitedir}/%{module}/instruments/__pycache__
-%dir %{py3_sitedir}/%{module}/instruments/valgrind
-%{py3_sitedir}/%{module}/instruments/valgrind/*.py
-%{py3_sitedir}/%{module}/instruments/valgrind/__pycache__
-%dir %{py3_sitedir}/%{module}/instruments/valgrind/_wrapper
-%{py3_sitedir}/%{module}/instruments/valgrind/_wrapper/__pycache__
-%{py3_sitedir}/%{module}/instruments/valgrind/_wrapper/*.py
-%{py3_sitedir}/%{module}/instruments/valgrind/_wrapper/*.[chi]
-%{py3_sitedir}/%{module}/instruments/valgrind/_wrapper/*.pyi
-%attr(755,root,root) %{py3_sitedir}/%{module}/instruments/valgrind/_wrapper/*.so
+%dir %{py3_sitedir}/%{module}/instruments/hooks
+%attr(755,root,root) %{py3_sitedir}/%{module}/instruments/hooks/dist_instrument_hooks.cpython-*.so
+%{py3_sitedir}/%{module}/instruments/hooks/dist_instrument_hooks.pyi
+%{py3_sitedir}/%{module}/instruments/hooks/*.py
+%{py3_sitedir}/%{module}/instruments/hooks/__pycache__
%{py3_sitedir}/%{module}-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest_codspeed.git/commitdiff/a30df942c0630ca091519716b86eb8a172a0be72
More information about the pld-cvs-commit
mailing list