Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
d96a16df80 | ||
|
|
b58ca665f2 | ||
| a656cce114 | |||
| ab14df34ac | |||
| 3b798d0a29 | |||
| 3fd6448dcb | |||
| 6819c4b6c9 | |||
| d87167eb99 |
BIN
pytest-benchmark-5.1.0.tar.gz
(Stored with Git LFS)
BIN
pytest-benchmark-5.1.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
pytest_benchmark-5.2.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
pytest_benchmark-5.2.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 5 12:35:00 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Update to 5.2.1
|
||||||
|
* Added support for a per-round teardown function to pedantic mode.
|
||||||
|
* Added --benchmark-time-unit option.
|
||||||
|
* Fixed deprecated hook examples in docstrings.
|
||||||
|
* Changed --benchmark-compare-fail to accept percentages higher than 100%.
|
||||||
|
* Replaced the complicated and broken code of pytest_benchmark.utils.clonefunc
|
||||||
|
with a simple return of the input.
|
||||||
|
* Add markers so pytest doesn’t try to assert-rewrite the plugin internals
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 21 15:41:07 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives on SLE-16-based and newer systems
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 25 12:42:56 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Mon Nov 25 12:42:56 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-benchmark
|
# spec file for package python-pytest-benchmark
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,14 +16,19 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pytest-benchmark
|
Name: python-pytest-benchmark
|
||||||
Version: 5.1.0
|
Version: 5.2.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A py.test fixture for benchmarking code
|
Summary: A py.test fixture for benchmarking code
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
URL: https://github.com/ionelmc/pytest-benchmark
|
URL: https://github.com/ionelmc/pytest-benchmark
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-benchmark/pytest-benchmark-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pytest_benchmark/pytest_benchmark-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE Ignore DeprecationWarning, some of our dependancies use
|
# PATCH-FIX-OPENSUSE Ignore DeprecationWarning, some of our dependancies use
|
||||||
# pkg_resources.
|
# pkg_resources.
|
||||||
Patch2: ignore-deprecationwarning.patch
|
Patch2: ignore-deprecationwarning.patch
|
||||||
@@ -42,13 +47,18 @@ BuildRequires: git-core
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-py-cpuinfo
|
Requires: python-py-cpuinfo
|
||||||
Requires: python-pytest >= 3.8
|
Requires: python-pytest >= 3.8
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
Recommends: python-aspectlib
|
Recommends: python-aspectlib
|
||||||
Recommends: python-elasticsearch
|
Recommends: python-elasticsearch
|
||||||
Recommends: python-pygal
|
Recommends: python-pygal
|
||||||
Recommends: python-pygaljs
|
Recommends: python-pygaljs
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -56,7 +66,7 @@ A py.test fixture for benchmarking code. It will group the tests into
|
|||||||
rounds that are calibrated to the chosen timer.
|
rounds that are calibrated to the chosen timer.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n pytest-benchmark-%{version}
|
%autosetup -p1 -n pytest_benchmark-%{version}
|
||||||
# skip nbmake
|
# skip nbmake
|
||||||
rm pytest.ini
|
rm pytest.ini
|
||||||
# skip cli tests as we use update-alternatives
|
# skip cli tests as we use update-alternatives
|
||||||
@@ -77,6 +87,9 @@ sed -i -e '/test_fast PASSED/d' -e '/test_fast SKIPPED/d' tests/test_benchmark.p
|
|||||||
%check
|
%check
|
||||||
%pytest tests
|
%pytest tests
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%python_libalternatives_reset_alternative pytest-benchmark
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{python_install_alternative pytest-benchmark py.test-benchmark}
|
%{python_install_alternative pytest-benchmark py.test-benchmark}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user