diff --git a/pytest-benchmark-3.2.3.tar.gz b/pytest-benchmark-3.2.3.tar.gz deleted file mode 100644 index 22f6038..0000000 --- a/pytest-benchmark-3.2.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ad4314d093a3089701b24c80a05121994c7765ce373478c8f4ba8d23c9ba9528 -size 337882 diff --git a/pytest-benchmark-3.4.1.tar.gz b/pytest-benchmark-3.4.1.tar.gz new file mode 100644 index 0000000..03a4c11 --- /dev/null +++ b/pytest-benchmark-3.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:40e263f912de5a81d891619032983557d62a3d85843f9a9f30b98baea0cd7b47 +size 340349 diff --git a/python-pytest-benchmark.changes b/python-pytest-benchmark.changes index 44deabc..4669052 100644 --- a/python-pytest-benchmark.changes +++ b/python-pytest-benchmark.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Mon Mar 28 21:07:02 UTC 2022 - Ben Greiner + +- 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 diff --git a/python-pytest-benchmark.spec b/python-pytest-benchmark.spec index 7ed37af..5f88e06 100644 --- a/python-pytest-benchmark.spec +++ b/python-pytest-benchmark.spec @@ -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