From 815efe58dacc351189c654eff248d97ac79eda62d0117e09618932a5ce6fe8d2 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Fri, 29 Mar 2019 19:38:46 +0000 Subject: [PATCH] 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 --- pytest-benchmark-3.1.1.tar.gz | 3 -- pytest-benchmark-3.2.2.tar.gz | 3 ++ python-pytest-benchmark.changes | 34 +++++++++++++++++++ python-pytest-benchmark.spec | 60 +++++++++++++++------------------ 4 files changed, 64 insertions(+), 36 deletions(-) delete mode 100644 pytest-benchmark-3.1.1.tar.gz create mode 100644 pytest-benchmark-3.2.2.tar.gz diff --git a/pytest-benchmark-3.1.1.tar.gz b/pytest-benchmark-3.1.1.tar.gz deleted file mode 100644 index 588ddac..0000000 --- a/pytest-benchmark-3.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:185526b10b7cf1804cb0f32ac0653561ef2f233c6e50a9b3d8066a9757e36480 -size 333499 diff --git a/pytest-benchmark-3.2.2.tar.gz b/pytest-benchmark-3.2.2.tar.gz new file mode 100644 index 0000000..e8ae869 --- /dev/null +++ b/pytest-benchmark-3.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4512c6805318d07926efcb3b39f7b98a10d035305a93edfd5329c86cbf9cfbf7 +size 338715 diff --git a/python-pytest-benchmark.changes b/python-pytest-benchmark.changes index 84090af..9d19373 100644 --- a/python-pytest-benchmark.changes +++ b/python-pytest-benchmark.changes @@ -1,3 +1,37 @@ +------------------------------------------------------------------- +Thu Mar 28 13:13:55 UTC 2019 - Tomáš Chvátal + +- Try to avoid messing up bytecode of the installed pkg + +------------------------------------------------------------------- +Tue Mar 26 10:16:44 UTC 2019 - Tomáš Chvátal + +- Add missing dependency on pygal and pygaljs + +------------------------------------------------------------------- +Mon Mar 25 11:00:57 UTC 2019 - Tomáš Chvátal + +- Add missing dependency on aspectlib + +------------------------------------------------------------------- +Wed Feb 13 14:43:30 UTC 2019 - Tomáš Chvátal + +- 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. + ------------------------------------------------------------------- Wed May 9 23:25:39 UTC 2018 - toddrme2178@gmail.com diff --git a/python-pytest-benchmark.spec b/python-pytest-benchmark.spec index f513ac8..22e6cef 100644 --- a/python-pytest-benchmark.spec +++ b/python-pytest-benchmark.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-benchmark # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,57 +12,57 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_with test Name: python-pytest-benchmark -Version: 3.1.1 +Version: 3.2.2 Release: 0 -License: BSD-2-Clause Summary: A py.test fixture for benchmarking code -Url: https://github.com/ionelmc/pytest-benchmark +License: BSD-2-Clause Group: Development/Languages/Python +URL: https://github.com/ionelmc/pytest-benchmark Source: https://files.pythonhosted.org/packages/source/p/pytest-benchmark/pytest-benchmark-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} -%if %{with test} BuildRequires: %{python_module aspectlib} BuildRequires: %{python_module elasticsearch} BuildRequires: %{python_module freezegun} BuildRequires: %{python_module py-cpuinfo} -BuildRequires: %{python_module pygal} BuildRequires: %{python_module pygaljs} -BuildRequires: %{python_module pytest >= 2.8} -BuildRequires: python-mock -BuildRequires: python-pathlib -BuildRequires: python-statistics -%endif +BuildRequires: %{python_module pygal} +BuildRequires: %{python_module pytest >= 3.8} +BuildRequires: %{python_module pytest-xdist} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: git-core +BuildRequires: python-mock +BuildRequires: python-pathlib2 +BuildRequires: python-rpm-macros +BuildRequires: python-statistics Requires: python-py-cpuinfo -Requires: python-pytest >= 2.8 -%ifpython2 -Requires: python-pathlib -Requires: python-statistics -%endif +Requires: python-pytest >= 3.8 +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: python-aspectlib Recommends: python-elasticsearch Recommends: python-pygal Recommends: python-pygaljs BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives - +%ifpython2 +Requires: python-pathlib2 +Requires: python-statistics +%endif %python_subpackages %description A py.test fixture for benchmarking code. It will group the tests into -rounds that are calibrated to the chosen timer. +rounds that are calibrated to the chosen timer. %prep %setup -q -n pytest-benchmark-%{version} +# skip cli tests as we use update-alternatives +rm -f tests/test_cli.py %build %python_build @@ -74,14 +74,9 @@ rounds that are calibrated to the chosen timer. %python_clone -a %{buildroot}%{_bindir}/pytest-benchmark %python_clone -a %{buildroot}%{_bindir}/py.test-benchmark -%if %{with test} %check -pushd tests -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -py.test-%{$python_bin_suffix} -} -popd -%endif +export PYTHONDONTWRITEBYTECODE=1 +%pytest tests %post %{python_install_alternative pytest-benchmark py.test-benchmark} @@ -90,7 +85,6 @@ popd %python_uninstall_alternative pytest-benchmark %files %{python_files} -%defattr(-,root,root,-) %doc AUTHORS.rst CHANGELOG.rst README.rst %license LICENSE %python_alternative %{_bindir}/py.test-benchmark