Accepting request 966223 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/966223 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=8
This commit is contained in:
commit
16ff2b9afe
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ad4314d093a3089701b24c80a05121994c7765ce373478c8f4ba8d23c9ba9528
|
|
||||||
size 337882
|
|
3
pytest-benchmark-3.4.1.tar.gz
Normal file
3
pytest-benchmark-3.4.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:40e263f912de5a81d891619032983557d62a3d85843f9a9f30b98baea0cd7b47
|
||||||
|
size 340349
|
@ -1,3 +1,30 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 28 21:07:02 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- 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).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 5 21:31:21 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
Wed Aug 5 21:31:21 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-benchmark
|
# 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
|
# 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,10 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
%bcond_without python2
|
%define skip_python2 1
|
||||||
Name: python-pytest-benchmark
|
Name: python-pytest-benchmark
|
||||||
Version: 3.2.3
|
Version: 3.4.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
|
||||||
@ -36,25 +36,16 @@ BuildRequires: %{python_module pytest >= 3.8}
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
%if %{with python2}
|
|
||||||
BuildRequires: python-mock
|
|
||||||
BuildRequires: python-pathlib2
|
|
||||||
BuildRequires: python-statistics
|
|
||||||
%endif
|
|
||||||
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(post): update-alternatives
|
||||||
Requires(postun): 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
|
||||||
%ifpython2
|
|
||||||
Requires: python-pathlib2
|
|
||||||
Requires: python-statistics
|
|
||||||
%endif
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -66,6 +57,8 @@ rounds that are calibrated to the chosen timer.
|
|||||||
%autopatch -p1
|
%autopatch -p1
|
||||||
# skip cli tests as we use update-alternatives
|
# skip cli tests as we use update-alternatives
|
||||||
rm -f tests/test_cli.py
|
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
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -78,7 +71,6 @@ rm -f tests/test_cli.py
|
|||||||
%python_clone -a %{buildroot}%{_bindir}/py.test-benchmark
|
%python_clone -a %{buildroot}%{_bindir}/py.test-benchmark
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONDONTWRITEBYTECODE=1
|
|
||||||
%pytest tests
|
%pytest tests
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -92,6 +84,7 @@ export PYTHONDONTWRITEBYTECODE=1
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/py.test-benchmark
|
%python_alternative %{_bindir}/py.test-benchmark
|
||||||
%python_alternative %{_bindir}/pytest-benchmark
|
%python_alternative %{_bindir}/pytest-benchmark
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pytest_benchmark
|
||||||
|
%{python_sitelib}/pytest_benchmark-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user