2018-05-29 16:48:08 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-pytest-benchmark
|
|
|
|
#
|
2020-01-13 15:15:11 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-05-29 16:48:08 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
Accepting request 689353 from devel:languages:python:pytest
- Try to avoid messing up bytecode of the installed pkg
- Add missing dependency on pygal and pygaljs
- Add missing dependency on aspectlib
- Update to 3.2.2:
* Added support for pytest items without funcargs. Fixes interoperability with other pytest plugins like pytest-flake8.
* Added missing version constraint change. Now pytest >= 3.8 is required (due to pytest 4.1 support).
* Fixed couple CI/test issues.
* Fixed broken pytest_benchmark.__version__.
* Added support for simple trial x-axis histogram label. Contributed by Ken Crowell in #95).
* Added support for Pytest 3.3+, Contributed by Julien Nicoulaud in #103.
* Added support for Pytest 4.0. Contributed by Pablo Aguiar in #129 and #130.
* Added support for Pytest 4.1.
* Various formatting, spelling and documentation fixes. Contributed by Ken Crowell, Ofek Lev, Matthew Feickert, Jose Eduardo, Anton Lodder, Alexander Duryagin and Grygorii Iermolenko in #97, #97, #105, #110, #111, #115, #123, #131 and #140.
* Fixed broken pytest_benchmark_update_machine_info hook. Contributed by Alex Ford in #109.
* Fixed bogus xdist warning when using --benchmark-disable. Contributed by Francesco Ballarin in #113.
* Added support for pathlib2. Contributed by Lincoln de Sousa in #114.
* Changed handling so you can use --benchmark-skip and --benchmark-only, with the later having priority. Contributed by Ofek Lev in #116.
* Fixed various CI/testing issues. Contributed by Stanislav Levin in #134, #136 and #138.
OBS-URL: https://build.opensuse.org/request/show/689353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=2
2019-03-29 20:38:46 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2018-05-29 16:48:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-pytest-benchmark
|
2020-01-13 15:15:11 +01:00
|
|
|
Version: 3.2.3
|
2018-05-29 16:48:08 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A py.test fixture for benchmarking code
|
Accepting request 689353 from devel:languages:python:pytest
- Try to avoid messing up bytecode of the installed pkg
- Add missing dependency on pygal and pygaljs
- Add missing dependency on aspectlib
- Update to 3.2.2:
* Added support for pytest items without funcargs. Fixes interoperability with other pytest plugins like pytest-flake8.
* Added missing version constraint change. Now pytest >= 3.8 is required (due to pytest 4.1 support).
* Fixed couple CI/test issues.
* Fixed broken pytest_benchmark.__version__.
* Added support for simple trial x-axis histogram label. Contributed by Ken Crowell in #95).
* Added support for Pytest 3.3+, Contributed by Julien Nicoulaud in #103.
* Added support for Pytest 4.0. Contributed by Pablo Aguiar in #129 and #130.
* Added support for Pytest 4.1.
* Various formatting, spelling and documentation fixes. Contributed by Ken Crowell, Ofek Lev, Matthew Feickert, Jose Eduardo, Anton Lodder, Alexander Duryagin and Grygorii Iermolenko in #97, #97, #105, #110, #111, #115, #123, #131 and #140.
* Fixed broken pytest_benchmark_update_machine_info hook. Contributed by Alex Ford in #109.
* Fixed bogus xdist warning when using --benchmark-disable. Contributed by Francesco Ballarin in #113.
* Added support for pathlib2. Contributed by Lincoln de Sousa in #114.
* Changed handling so you can use --benchmark-skip and --benchmark-only, with the later having priority. Contributed by Ofek Lev in #116.
* Fixed various CI/testing issues. Contributed by Stanislav Levin in #134, #136 and #138.
OBS-URL: https://build.opensuse.org/request/show/689353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=2
2019-03-29 20:38:46 +01:00
|
|
|
License: BSD-2-Clause
|
|
|
|
URL: https://github.com/ionelmc/pytest-benchmark
|
2018-05-29 16:48:08 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pytest-benchmark/pytest-benchmark-%{version}.tar.gz
|
2019-05-09 15:26:28 +02:00
|
|
|
Patch0: fix-test-fast.patch
|
2018-05-29 16:48:08 +02:00
|
|
|
BuildRequires: %{python_module aspectlib}
|
|
|
|
BuildRequires: %{python_module elasticsearch}
|
|
|
|
BuildRequires: %{python_module freezegun}
|
|
|
|
BuildRequires: %{python_module py-cpuinfo}
|
|
|
|
BuildRequires: %{python_module pygaljs}
|
Accepting request 689353 from devel:languages:python:pytest
- Try to avoid messing up bytecode of the installed pkg
- Add missing dependency on pygal and pygaljs
- Add missing dependency on aspectlib
- Update to 3.2.2:
* Added support for pytest items without funcargs. Fixes interoperability with other pytest plugins like pytest-flake8.
* Added missing version constraint change. Now pytest >= 3.8 is required (due to pytest 4.1 support).
* Fixed couple CI/test issues.
* Fixed broken pytest_benchmark.__version__.
* Added support for simple trial x-axis histogram label. Contributed by Ken Crowell in #95).
* Added support for Pytest 3.3+, Contributed by Julien Nicoulaud in #103.
* Added support for Pytest 4.0. Contributed by Pablo Aguiar in #129 and #130.
* Added support for Pytest 4.1.
* Various formatting, spelling and documentation fixes. Contributed by Ken Crowell, Ofek Lev, Matthew Feickert, Jose Eduardo, Anton Lodder, Alexander Duryagin and Grygorii Iermolenko in #97, #97, #105, #110, #111, #115, #123, #131 and #140.
* Fixed broken pytest_benchmark_update_machine_info hook. Contributed by Alex Ford in #109.
* Fixed bogus xdist warning when using --benchmark-disable. Contributed by Francesco Ballarin in #113.
* Added support for pathlib2. Contributed by Lincoln de Sousa in #114.
* Changed handling so you can use --benchmark-skip and --benchmark-only, with the later having priority. Contributed by Ofek Lev in #116.
* Fixed various CI/testing issues. Contributed by Stanislav Levin in #134, #136 and #138.
OBS-URL: https://build.opensuse.org/request/show/689353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=2
2019-03-29 20:38:46 +01:00
|
|
|
BuildRequires: %{python_module pygal}
|
|
|
|
BuildRequires: %{python_module pytest >= 3.8}
|
|
|
|
BuildRequires: %{python_module pytest-xdist}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: git-core
|
2018-05-29 16:48:08 +02:00
|
|
|
BuildRequires: python-mock
|
Accepting request 689353 from devel:languages:python:pytest
- Try to avoid messing up bytecode of the installed pkg
- Add missing dependency on pygal and pygaljs
- Add missing dependency on aspectlib
- Update to 3.2.2:
* Added support for pytest items without funcargs. Fixes interoperability with other pytest plugins like pytest-flake8.
* Added missing version constraint change. Now pytest >= 3.8 is required (due to pytest 4.1 support).
* Fixed couple CI/test issues.
* Fixed broken pytest_benchmark.__version__.
* Added support for simple trial x-axis histogram label. Contributed by Ken Crowell in #95).
* Added support for Pytest 3.3+, Contributed by Julien Nicoulaud in #103.
* Added support for Pytest 4.0. Contributed by Pablo Aguiar in #129 and #130.
* Added support for Pytest 4.1.
* Various formatting, spelling and documentation fixes. Contributed by Ken Crowell, Ofek Lev, Matthew Feickert, Jose Eduardo, Anton Lodder, Alexander Duryagin and Grygorii Iermolenko in #97, #97, #105, #110, #111, #115, #123, #131 and #140.
* Fixed broken pytest_benchmark_update_machine_info hook. Contributed by Alex Ford in #109.
* Fixed bogus xdist warning when using --benchmark-disable. Contributed by Francesco Ballarin in #113.
* Added support for pathlib2. Contributed by Lincoln de Sousa in #114.
* Changed handling so you can use --benchmark-skip and --benchmark-only, with the later having priority. Contributed by Ofek Lev in #116.
* Fixed various CI/testing issues. Contributed by Stanislav Levin in #134, #136 and #138.
OBS-URL: https://build.opensuse.org/request/show/689353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=2
2019-03-29 20:38:46 +01:00
|
|
|
BuildRequires: python-pathlib2
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-05-29 16:48:08 +02:00
|
|
|
BuildRequires: python-statistics
|
|
|
|
Requires: python-py-cpuinfo
|
Accepting request 689353 from devel:languages:python:pytest
- Try to avoid messing up bytecode of the installed pkg
- Add missing dependency on pygal and pygaljs
- Add missing dependency on aspectlib
- Update to 3.2.2:
* Added support for pytest items without funcargs. Fixes interoperability with other pytest plugins like pytest-flake8.
* Added missing version constraint change. Now pytest >= 3.8 is required (due to pytest 4.1 support).
* Fixed couple CI/test issues.
* Fixed broken pytest_benchmark.__version__.
* Added support for simple trial x-axis histogram label. Contributed by Ken Crowell in #95).
* Added support for Pytest 3.3+, Contributed by Julien Nicoulaud in #103.
* Added support for Pytest 4.0. Contributed by Pablo Aguiar in #129 and #130.
* Added support for Pytest 4.1.
* Various formatting, spelling and documentation fixes. Contributed by Ken Crowell, Ofek Lev, Matthew Feickert, Jose Eduardo, Anton Lodder, Alexander Duryagin and Grygorii Iermolenko in #97, #97, #105, #110, #111, #115, #123, #131 and #140.
* Fixed broken pytest_benchmark_update_machine_info hook. Contributed by Alex Ford in #109.
* Fixed bogus xdist warning when using --benchmark-disable. Contributed by Francesco Ballarin in #113.
* Added support for pathlib2. Contributed by Lincoln de Sousa in #114.
* Changed handling so you can use --benchmark-skip and --benchmark-only, with the later having priority. Contributed by Ofek Lev in #116.
* Fixed various CI/testing issues. Contributed by Stanislav Levin in #134, #136 and #138.
OBS-URL: https://build.opensuse.org/request/show/689353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=2
2019-03-29 20:38:46 +01:00
|
|
|
Requires: python-pytest >= 3.8
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2018-05-29 16:48:08 +02:00
|
|
|
Recommends: python-aspectlib
|
|
|
|
Recommends: python-elasticsearch
|
|
|
|
Recommends: python-pygal
|
|
|
|
Recommends: python-pygaljs
|
|
|
|
BuildArch: noarch
|
Accepting request 689353 from devel:languages:python:pytest
- Try to avoid messing up bytecode of the installed pkg
- Add missing dependency on pygal and pygaljs
- Add missing dependency on aspectlib
- Update to 3.2.2:
* Added support for pytest items without funcargs. Fixes interoperability with other pytest plugins like pytest-flake8.
* Added missing version constraint change. Now pytest >= 3.8 is required (due to pytest 4.1 support).
* Fixed couple CI/test issues.
* Fixed broken pytest_benchmark.__version__.
* Added support for simple trial x-axis histogram label. Contributed by Ken Crowell in #95).
* Added support for Pytest 3.3+, Contributed by Julien Nicoulaud in #103.
* Added support for Pytest 4.0. Contributed by Pablo Aguiar in #129 and #130.
* Added support for Pytest 4.1.
* Various formatting, spelling and documentation fixes. Contributed by Ken Crowell, Ofek Lev, Matthew Feickert, Jose Eduardo, Anton Lodder, Alexander Duryagin and Grygorii Iermolenko in #97, #97, #105, #110, #111, #115, #123, #131 and #140.
* Fixed broken pytest_benchmark_update_machine_info hook. Contributed by Alex Ford in #109.
* Fixed bogus xdist warning when using --benchmark-disable. Contributed by Francesco Ballarin in #113.
* Added support for pathlib2. Contributed by Lincoln de Sousa in #114.
* Changed handling so you can use --benchmark-skip and --benchmark-only, with the later having priority. Contributed by Ofek Lev in #116.
* Fixed various CI/testing issues. Contributed by Stanislav Levin in #134, #136 and #138.
OBS-URL: https://build.opensuse.org/request/show/689353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=2
2019-03-29 20:38:46 +01:00
|
|
|
%ifpython2
|
|
|
|
Requires: python-pathlib2
|
|
|
|
Requires: python-statistics
|
|
|
|
%endif
|
2018-05-29 16:48:08 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
A py.test fixture for benchmarking code. It will group the tests into
|
Accepting request 689353 from devel:languages:python:pytest
- Try to avoid messing up bytecode of the installed pkg
- Add missing dependency on pygal and pygaljs
- Add missing dependency on aspectlib
- Update to 3.2.2:
* Added support for pytest items without funcargs. Fixes interoperability with other pytest plugins like pytest-flake8.
* Added missing version constraint change. Now pytest >= 3.8 is required (due to pytest 4.1 support).
* Fixed couple CI/test issues.
* Fixed broken pytest_benchmark.__version__.
* Added support for simple trial x-axis histogram label. Contributed by Ken Crowell in #95).
* Added support for Pytest 3.3+, Contributed by Julien Nicoulaud in #103.
* Added support for Pytest 4.0. Contributed by Pablo Aguiar in #129 and #130.
* Added support for Pytest 4.1.
* Various formatting, spelling and documentation fixes. Contributed by Ken Crowell, Ofek Lev, Matthew Feickert, Jose Eduardo, Anton Lodder, Alexander Duryagin and Grygorii Iermolenko in #97, #97, #105, #110, #111, #115, #123, #131 and #140.
* Fixed broken pytest_benchmark_update_machine_info hook. Contributed by Alex Ford in #109.
* Fixed bogus xdist warning when using --benchmark-disable. Contributed by Francesco Ballarin in #113.
* Added support for pathlib2. Contributed by Lincoln de Sousa in #114.
* Changed handling so you can use --benchmark-skip and --benchmark-only, with the later having priority. Contributed by Ofek Lev in #116.
* Fixed various CI/testing issues. Contributed by Stanislav Levin in #134, #136 and #138.
OBS-URL: https://build.opensuse.org/request/show/689353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=2
2019-03-29 20:38:46 +01:00
|
|
|
rounds that are calibrated to the chosen timer.
|
2018-05-29 16:48:08 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pytest-benchmark-%{version}
|
2019-05-09 15:26:28 +02:00
|
|
|
%autopatch -p1
|
Accepting request 689353 from devel:languages:python:pytest
- Try to avoid messing up bytecode of the installed pkg
- Add missing dependency on pygal and pygaljs
- Add missing dependency on aspectlib
- Update to 3.2.2:
* Added support for pytest items without funcargs. Fixes interoperability with other pytest plugins like pytest-flake8.
* Added missing version constraint change. Now pytest >= 3.8 is required (due to pytest 4.1 support).
* Fixed couple CI/test issues.
* Fixed broken pytest_benchmark.__version__.
* Added support for simple trial x-axis histogram label. Contributed by Ken Crowell in #95).
* Added support for Pytest 3.3+, Contributed by Julien Nicoulaud in #103.
* Added support for Pytest 4.0. Contributed by Pablo Aguiar in #129 and #130.
* Added support for Pytest 4.1.
* Various formatting, spelling and documentation fixes. Contributed by Ken Crowell, Ofek Lev, Matthew Feickert, Jose Eduardo, Anton Lodder, Alexander Duryagin and Grygorii Iermolenko in #97, #97, #105, #110, #111, #115, #123, #131 and #140.
* Fixed broken pytest_benchmark_update_machine_info hook. Contributed by Alex Ford in #109.
* Fixed bogus xdist warning when using --benchmark-disable. Contributed by Francesco Ballarin in #113.
* Added support for pathlib2. Contributed by Lincoln de Sousa in #114.
* Changed handling so you can use --benchmark-skip and --benchmark-only, with the later having priority. Contributed by Ofek Lev in #116.
* Fixed various CI/testing issues. Contributed by Stanislav Levin in #134, #136 and #138.
OBS-URL: https://build.opensuse.org/request/show/689353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=2
2019-03-29 20:38:46 +01:00
|
|
|
# skip cli tests as we use update-alternatives
|
|
|
|
rm -f tests/test_cli.py
|
2018-05-29 16:48:08 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/pytest-benchmark
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/py.test-benchmark
|
|
|
|
|
|
|
|
%check
|
Accepting request 689353 from devel:languages:python:pytest
- Try to avoid messing up bytecode of the installed pkg
- Add missing dependency on pygal and pygaljs
- Add missing dependency on aspectlib
- Update to 3.2.2:
* Added support for pytest items without funcargs. Fixes interoperability with other pytest plugins like pytest-flake8.
* Added missing version constraint change. Now pytest >= 3.8 is required (due to pytest 4.1 support).
* Fixed couple CI/test issues.
* Fixed broken pytest_benchmark.__version__.
* Added support for simple trial x-axis histogram label. Contributed by Ken Crowell in #95).
* Added support for Pytest 3.3+, Contributed by Julien Nicoulaud in #103.
* Added support for Pytest 4.0. Contributed by Pablo Aguiar in #129 and #130.
* Added support for Pytest 4.1.
* Various formatting, spelling and documentation fixes. Contributed by Ken Crowell, Ofek Lev, Matthew Feickert, Jose Eduardo, Anton Lodder, Alexander Duryagin and Grygorii Iermolenko in #97, #97, #105, #110, #111, #115, #123, #131 and #140.
* Fixed broken pytest_benchmark_update_machine_info hook. Contributed by Alex Ford in #109.
* Fixed bogus xdist warning when using --benchmark-disable. Contributed by Francesco Ballarin in #113.
* Added support for pathlib2. Contributed by Lincoln de Sousa in #114.
* Changed handling so you can use --benchmark-skip and --benchmark-only, with the later having priority. Contributed by Ofek Lev in #116.
* Fixed various CI/testing issues. Contributed by Stanislav Levin in #134, #136 and #138.
OBS-URL: https://build.opensuse.org/request/show/689353
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=2
2019-03-29 20:38:46 +01:00
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
2019-07-22 10:31:10 +02:00
|
|
|
#%%pytest tests
|
2018-05-29 16:48:08 +02:00
|
|
|
|
|
|
|
%post
|
|
|
|
%{python_install_alternative pytest-benchmark py.test-benchmark}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative pytest-benchmark
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%python_alternative %{_bindir}/py.test-benchmark
|
|
|
|
%python_alternative %{_bindir}/pytest-benchmark
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|