forked from pool/python-asv
* ``asv_runner`` is now used internally, making the addition of
custom benchmark types viable (#1287)
* Benchmarks can be skipped, both wholly and in part using new
decorators ``skip_benchmark_if`` and ``skip_params_if``
* Benchmarks can be skipped during their execution (after
setup) by raising ``SkipNotImplemented`` (#1307)
* Added ``default_benchmark_timeout`` to the configuration
object, can also be
* passed via ``-a timeout=NUMBER`` (#1308)
* ``ASV_RUNNER_PATH`` can be set from the terminal to test
newer versions of ``asv_runner`` (#1312)
* Removed ``asv dev`` in favor of using ``asv run`` with the
right arguments (#1200)
* ``asv run`` and ``asv continuous`` don't implement the
``--strict`` option anymore, and they will always return
a non-zero (i.e. ``2``) exit status if any benchmark fail.
* Fixed ``install_timeout`` for ``conda`` (#1310)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asv?expand=0&rev=12
84 lines
2.5 KiB
RPMSpec
84 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-asv
|
|
#
|
|
# Copyright (c) 2023 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-%{**}}
|
|
Name: python-asv
|
|
Version: 0.6.0
|
|
Release: 0
|
|
Summary: Airspeed Velocity: A Python history benchmarking tool
|
|
License: BSD-3-Clause AND MIT
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/airspeed-velocity/asv
|
|
Source: https://files.pythonhosted.org/packages/source/a/asv/asv-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-six >= 1.4
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
Suggests: python-python-hglib >= 1.5
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module six >= 1.4}
|
|
BuildRequires: git
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
airspeed velocity (asv) is a tool for benchmarking Python packages
|
|
over their lifetime.
|
|
|
|
It is designed to benchmark a single project over its lifetime using
|
|
a given suite of benchmarks. The results are displayed in an
|
|
interactive web frontend that requires only a basic static webserver
|
|
to host.
|
|
|
|
%prep
|
|
%setup -q -n asv-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/asv
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
#MVY: there are so MANY tests failing inside OBS - like test_continuous calling pip and building bad command line
|
|
exit 0
|
|
# % pytest
|
|
|
|
%post
|
|
%python_install_alternative asv
|
|
|
|
%postun
|
|
%python_uninstall_alternative asv
|
|
|
|
%files %{python_files}
|
|
%doc CHANGES.rst README.rst
|
|
%license LICENSE.rst
|
|
%python_alternative %{_bindir}/asv
|
|
%{python_sitearch}/*
|
|
|
|
%changelog
|