diff --git a/_multibuild b/_multibuild deleted file mode 100644 index fcc7b97..0000000 --- a/_multibuild +++ /dev/null @@ -1,3 +0,0 @@ - - test - diff --git a/pytest_codspeed-3.1.2.tar.gz b/pytest_codspeed-3.1.2.tar.gz deleted file mode 100644 index 0deff63..0000000 --- a/pytest_codspeed-3.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:09c1733af3aab35e94a621aa510f2d2114f65591e6f644c42ca3f67547edad4b -size 18277 diff --git a/pytest_codspeed-4.3.0.tar.gz b/pytest_codspeed-4.3.0.tar.gz new file mode 100644 index 0000000..58a305b --- /dev/null +++ b/pytest_codspeed-4.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5230d9d65f39063a313ed1820df775166227ec5c20a1122968f85653d5efee48 +size 124745 diff --git a/python-pytest-codspeed.changes b/python-pytest-codspeed.changes index d660ea0..513160b 100644 --- a/python-pytest-codspeed.changes +++ b/python-pytest-codspeed.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Mon Feb 23 23:58:19 UTC 2026 - Steve Kowalik + +- 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 diff --git a/python-pytest-codspeed.spec b/python-pytest-codspeed.spec index 94d7ba5..fda505e 100644 --- a/python-pytest-codspeed.spec +++ b/python-pytest-codspeed.spec @@ -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