forked from pool/python-pytest-benchmark
Accepting request 965498 from home:bnavigator:branches:devel:languages:python:pytest
- Update to 3.4.1
* Disable progress indication unless --benchmark-verbose is used.
Contributed by Dimitris Rozakis in #149.
* Added Python 3.9, dropped Python 3.5. Contributed by Miroslav
Šedivý in #189.
* Changed the "cpu" data in the json output to include everything
that cpuinfo outputs, for better or worse as cpuinfo 6.0
changed some fields. Users should now ensure they are an
adequate cpuinfo package installed. MAY BE BACKWARDS
INCOMPATIBLE
* Changed behavior of --benchmark-skip and --benchmark-only to
apply early in the collection phase. This means skipped tests
won't make pytest run fixtures for said tests unnecessarily,
but unfortunately this also means the skipping behavior will be
applied to any tests that requires a "benchmark" fixture,
regardless if it would come from pytest-benchmark or not. MAY
BE BACKWARDS INCOMPATIBLE
* Added --benchmark-quiet - option to disable reporting and other
information output.
* Squelched unnecessary warning when --benchmark-disable and save
options are used. Fixes #199.
* PerformanceRegression exception no longer inherits
pytest.UsageError (apparently a final class).
OBS-URL: https://build.opensuse.org/request/show/965498
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-benchmark?expand=0&rev=19
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pytest-benchmark
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,10 +16,10 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-pytest-benchmark
|
||||
Version: 3.2.3
|
||||
Version: 3.4.1
|
||||
Release: 0
|
||||
Summary: A py.test fixture for benchmarking code
|
||||
License: BSD-2-Clause
|
||||
@@ -36,25 +36,16 @@ BuildRequires: %{python_module pytest >= 3.8}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: git-core
|
||||
%if %{with python2}
|
||||
BuildRequires: python-mock
|
||||
BuildRequires: python-pathlib2
|
||||
BuildRequires: python-statistics
|
||||
%endif
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-py-cpuinfo
|
||||
Requires: python-pytest >= 3.8
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Recommends: python-aspectlib
|
||||
Recommends: python-elasticsearch
|
||||
Recommends: python-pygal
|
||||
Recommends: python-pygaljs
|
||||
BuildArch: noarch
|
||||
%ifpython2
|
||||
Requires: python-pathlib2
|
||||
Requires: python-statistics
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -66,6 +57,8 @@ rounds that are calibrated to the chosen timer.
|
||||
%autopatch -p1
|
||||
# skip cli tests as we use update-alternatives
|
||||
rm -f tests/test_cli.py
|
||||
# Don't look for a test pass in the wrong place -- https://github.com/ionelmc/pytest-benchmark/issues/214
|
||||
sed -i -e '/test_fast PASSED/d' -e '/test_fast SKIPPED/d' tests/test_benchmark.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -78,7 +71,6 @@ rm -f tests/test_cli.py
|
||||
%python_clone -a %{buildroot}%{_bindir}/py.test-benchmark
|
||||
|
||||
%check
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
%pytest tests
|
||||
|
||||
%post
|
||||
@@ -92,6 +84,7 @@ export PYTHONDONTWRITEBYTECODE=1
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/py.test-benchmark
|
||||
%python_alternative %{_bindir}/pytest-benchmark
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/pytest_benchmark
|
||||
%{python_sitelib}/pytest_benchmark-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user