17
0

6 Commits

Author SHA256 Message Date
Markéta Machová
d96a16df80 update to 5.2.1 2025-11-05 13:40:21 +01:00
Markéta Machová
b58ca665f2 Merge remote-tracking branch 'factory/factory' 2025-11-05 13:31:46 +01:00
a656cce114 Accepting request 1301388 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/1301388
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=15
2025-08-27 19:33:52 +00:00
3b798d0a29 - Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-benchmark?expand=0&rev=34
2025-08-26 08:47:40 +00:00
6819c4b6c9 Accepting request 1226264 from devel:languages:python:pytest
- update to 5.1.0:
  * Fixed broken hooks handling on pytest 8.1 or later (the
    TypeError: import_path() missing 1 required keyword-only
    argument: 'consider_namespace_packages' issue). Unfortunately
    this sets the minimum supported pytest version to 8.1.
  * Fixed bad fixture check that broke down then nbmake was
    enabled.
  * Dropped support for now EOL Python 3.8. Also moved tests
    suite to only test the latest pytest versions (8.3.x).
  * Fix generate parametrize tests benchmark csv report errors
    (issue #268). Contributed by Johnny Huang in #269.
  * Added the --benchmark-time-unit cli option for overriding the
    measurement unit used for display. Contributed by Tony Kuo in
    #257.
  * Fixes spelling in some help texts. Contributed by Eugeniy in
    #267.
  * Added new cprofile options: --benchmark-cprofile-loops=LOOPS
    - previously profiling only ran the function once, this allow
    customization. --benchmark-cprofile-top=COUNT - allows
    showing more rows. --benchmark-cprofile-dump=[FILENAME-
    PREFIX] - allows saving to a file (that you can load in
    snakeviz, RunSnakeRun or other tools).
  * --benchmark-cprofile-loops=LOOPS - previously profiling only
    ran the function once, this allow customization.
  * --benchmark-cprofile-top=COUNT - allows showing more rows.
  * --benchmark-cprofile-dump=[FILENAME-PREFIX] - allows saving
    to a file (that you can load in snakeviz, RunSnakeRun or
    other tools).
  * Removed hidden dependency on py.path (replaced with pathlib).
- drop fix-test-fast.patch, py311.patch, fix-test-fast.patch: upstream

OBS-URL: https://build.opensuse.org/request/show/1226264
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=14
2024-11-26 19:55:23 +00:00
d87167eb99 - update to 5.1.0:
* Fixed broken hooks handling on pytest 8.1 or later (the
    TypeError: import_path() missing 1 required keyword-only
    argument: 'consider_namespace_packages' issue). Unfortunately
    this sets the minimum supported pytest version to 8.1.
  * Fixed bad fixture check that broke down then nbmake was
    enabled.
  * Dropped support for now EOL Python 3.8. Also moved tests
    suite to only test the latest pytest versions (8.3.x).
  * Fix generate parametrize tests benchmark csv report errors
    (issue #268). Contributed by Johnny Huang in #269.
  * Added the --benchmark-time-unit cli option for overriding the
    measurement unit used for display. Contributed by Tony Kuo in
    #257.
  * Fixes spelling in some help texts. Contributed by Eugeniy in
    #267.
  * Added new cprofile options: --benchmark-cprofile-loops=LOOPS
    - previously profiling only ran the function once, this allow
    customization. --benchmark-cprofile-top=COUNT - allows
    showing more rows. --benchmark-cprofile-dump=[FILENAME-
    PREFIX] - allows saving to a file (that you can load in
    snakeviz, RunSnakeRun or other tools).
  * --benchmark-cprofile-loops=LOOPS - previously profiling only
    ran the function once, this allow customization.
  * --benchmark-cprofile-top=COUNT - allows showing more rows.
  * --benchmark-cprofile-dump=[FILENAME-PREFIX] - allows saving
    to a file (that you can load in snakeviz, RunSnakeRun or
    other tools).
  * Removed hidden dependency on py.path (replaced with pathlib).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-benchmark?expand=0&rev=32
2024-11-25 12:43:50 +00:00
4 changed files with 18 additions and 6 deletions

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

Binary file not shown.

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
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 doesnt try to assert-rewrite the plugin internals
-------------------------------------------------------------------
Thu Aug 21 15:41:07 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -23,12 +23,12 @@
%endif
%{?sle15_python_module_pythons}
Name: python-pytest-benchmark
Version: 5.1.0
Version: 5.2.1
Release: 0
Summary: A py.test fixture for benchmarking code
License: BSD-2-Clause
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
# pkg_resources.
Patch2: ignore-deprecationwarning.patch
@@ -66,7 +66,7 @@ A py.test fixture for benchmarking code. It will group the tests into
rounds that are calibrated to the chosen timer.
%prep
%autosetup -p1 -n pytest-benchmark-%{version}
%autosetup -p1 -n pytest_benchmark-%{version}
# skip nbmake
rm pytest.ini
# skip cli tests as we use update-alternatives