forked from pool/python-pyperf
- version update to 2.3.1 Version 2.3.1 (2022-02-03) -------------------------- * Add a ``Runner.bench_async_func()`` to benchmark an asyncio coroutine. Patch by Inada Naoki. * pyperf now recognizes graalpython as the JIT-based implementation. Patch by Tim Felgentreff. Version 2.3.0 (2021-09-28) -------------------------- * pyperf ref:`compare_to command <compare_to_cmd>` now supports the ``--table-format`` option which can designate the table format between reST and markdown. Version 2.2.0 (2021-03-24) -------------------------- * ``--track-memory`` option now supports macOS by using ``psutil``. * Added ``--copy-env`` command line option that inherits all environment variables. * The development branch ``master`` was renamed to ``main``. See https://sfconservancy.org/news/2020/jun/23/gitbranchname/ for the rationale. Version 2.1.0 (2021-01-14) -------------------------- * The :ref:`compare_to command <compare_to_cmd>` now computes the geometric mean. * The :ref:`compare_to command <compare_to_cmd>` no longer displays percentages: display less numbers to make the output easier to read. Also, percentage were almost the same values than the xxx faster or xxx slower values, but rounded differenly which introduced confusion. * Project moved to https://github.com/psf/pyperf/ * system command now only emits a warning rather than failing with a hard error if it fails to get or set the frequency of a CPU. OBS-URL: https://build.opensuse.org/request/show/967428 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyperf?expand=0&rev=9
71 lines
1.9 KiB
RPMSpec
71 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-pyperf
|
|
#
|
|
# 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
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-pyperf
|
|
Version: 2.3.1
|
|
Release: 0
|
|
Summary: Python module to run and analyze benchmarks
|
|
License: MIT
|
|
URL: https://github.com/vstinner/pyperf
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyperf/pyperf-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
Recommends: python-psutil
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module psutil}
|
|
BuildRequires: %{python_module pytest}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python module to run and analyze benchmarks.
|
|
|
|
%prep
|
|
%setup -q -n pyperf-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/pyperf
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%post
|
|
%python_install_alternative pyperf
|
|
|
|
%postun
|
|
%python_uninstall_alternative pyperf
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license COPYING
|
|
%python_alternative %{_bindir}/pyperf
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|