forked from pool/python-pytest-codspeed
- Update to 4.3.0
## Features
* Support for the memory instrument, which enables you to track memory
usage, heap allocations, and memory leaks in your benchmarks.
* Support python 3.14
* Bump instrument-hooks
* Support perf profiling in Python walltime instrument
* Support pytest-benchmark marker attributes
* Support the pedantic API
* Increase the min round time to a bigger value (+/- 1ms)
* Fix the random seed while measuring with instruments
## Bug Fixes
* Use ParamSpec in instrument definition instead of tuple and dict
* Use ParamSpec in the plugin call definition
* Use time per iteration instead of total round time in stats
- Remove pointless multibuild.
This commit was merged in pull request #1.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:09c1733af3aab35e94a621aa510f2d2114f65591e6f644c42ca3f67547edad4b
|
||||
size 18277
|
||||
BIN
pytest_codspeed-4.3.0.tar.gz
LFS
Normal file
BIN
pytest_codspeed-4.3.0.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 23 23:58:19 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 4.3.0:
|
||||
## Features
|
||||
* Support for the memory instrument, which enables you to track memory
|
||||
usage, heap allocations, and memory leaks in your benchmarks.
|
||||
* Support python 3.14
|
||||
* Bump instrument-hooks
|
||||
* Support perf profiling in Python walltime instrument
|
||||
* Support pytest-benchmark marker attributes
|
||||
* Support the pedantic API
|
||||
* Increase the min round time to a bigger value (+/- 1ms)
|
||||
* Fix the random seed while measuring with instruments
|
||||
## Bug Fixes
|
||||
* Use ParamSpec in instrument definition instead of tuple and dict
|
||||
* Use ParamSpec in the plugin call definition
|
||||
* Use time per iteration instead of total round time in stats
|
||||
- Remove pointless multibuild.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 30 06:27:34 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
|
||||
@@ -16,17 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pytest-codspeed%{psuffix}
|
||||
Version: 3.1.2
|
||||
Name: python-pytest-codspeed
|
||||
Version: 4.3.0
|
||||
Release: 0
|
||||
Summary: A pytest plugin to create CodSpeed benchmarks
|
||||
License: MIT
|
||||
@@ -42,18 +34,14 @@ BuildRequires: %{python_module cffi >= 1.17.1}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest-benchmark}
|
||||
BuildRequires: %{python_module pytest >= 3.8}
|
||||
BuildRequires: %{python_module rich >= 13.8.1}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: valgrind-devel
|
||||
Requires: python-cffi >= 1.17.1
|
||||
Requires: python-pytest >= 3.8
|
||||
Requires: python-rich >= 13.8.1
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module pytest >= 3.8}
|
||||
BuildRequires: %{python_module pytest-codspeed = %{version}}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -63,30 +51,23 @@ A pytest plugin to create CodSpeed benchmarks.
|
||||
%autosetup -p1 -n pytest_codspeed-%{version}
|
||||
|
||||
%build
|
||||
%if %{without test}
|
||||
export PYTEST_CODSPEED_FORCE_EXTENSION_BUILD=1
|
||||
# Required due to zig generated code
|
||||
export CFLAGS="-std=c11"
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
|
||||
%install
|
||||
%if %{without test}
|
||||
%pyproject_install
|
||||
# Remove source code for instrument-hooks
|
||||
%python_expand rm -rv %{buildroot}%{$python_sitearch}/pytest_codspeed/instruments/hooks/instrument-hooks
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
%endif
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
export PYTEST_CODSPEED_FORCE_VALGRIND_TESTS=1
|
||||
%pytest
|
||||
%endif
|
||||
%pytest_arch
|
||||
|
||||
%if %{without test}
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{python_sitearch}/pytest_codspeed
|
||||
%{python_sitearch}/pytest_codspeed-%{version}*-info
|
||||
%exclude %{python_sitearch}/pytest_codspeed/instruments/valgrind/_wrapper/wrapper.[ch]
|
||||
%endif
|
||||
%{python_sitearch}/pytest_codspeed-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user