2019-07-22 15:03:28 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-asv
|
|
|
|
|
#
|
2025-06-16 14:21:20 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2019-07-22 15:03:28 +00: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.
|
|
|
|
|
|
2019-07-23 07:56:27 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2019-07-22 15:03:28 +00:00
|
|
|
|
|
|
|
|
|
2025-06-16 14:21:20 +00:00
|
|
|
%bcond_without libalternatives
|
2024-10-17 08:17:40 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-07-22 15:03:28 +00:00
|
|
|
Name: python-asv
|
2024-10-17 08:17:40 +00:00
|
|
|
Version: 0.6.4
|
2019-07-22 15:03:28 +00:00
|
|
|
Release: 0
|
2019-08-26 06:42:47 +00:00
|
|
|
Summary: Airspeed Velocity: A Python history benchmarking tool
|
2019-07-23 07:56:27 +00:00
|
|
|
License: BSD-3-Clause AND MIT
|
2019-07-22 15:03:28 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-08-26 06:42:47 +00:00
|
|
|
URL: https://github.com/airspeed-velocity/asv
|
2020-05-28 07:33:16 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/asv/asv-%{version}.tar.gz
|
2019-07-22 15:03:28 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2023-10-09 14:21:07 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2023-10-24 12:09:06 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2019-07-22 15:03:28 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-10-09 14:21:07 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2025-06-16 14:21:20 +00:00
|
|
|
BuildRequires: alts
|
2020-05-28 07:33:16 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: gcc-c++
|
2019-07-23 07:56:27 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2025-06-16 14:21:20 +00:00
|
|
|
Requires: alts
|
2024-10-17 08:17:40 +00:00
|
|
|
Requires: python-PyYAML
|
|
|
|
|
Requires: python-Pympler
|
|
|
|
|
Requires: python-asv-runner >= 0.2.1
|
2024-04-27 13:00:19 +00:00
|
|
|
Requires: python-build
|
2023-10-09 14:21:07 +00:00
|
|
|
Requires: python-json5
|
|
|
|
|
Requires: python-tabulate
|
2025-06-16 14:21:20 +00:00
|
|
|
Requires: python-virtualenv
|
|
|
|
|
Suggests: python-python-hglib >= 1.5
|
2024-10-17 08:17:40 +00:00
|
|
|
%if %{python_version_nodots} < 311
|
2024-04-27 13:00:19 +00:00
|
|
|
Requires: python-tomli
|
2024-10-17 08:17:40 +00:00
|
|
|
%endif
|
2019-07-22 15:03:28 +00:00
|
|
|
# SECTION test requirements
|
2023-10-09 14:21:07 +00:00
|
|
|
BuildRequires: %{python_module json5}
|
2019-07-22 15:03:28 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
2023-10-09 14:21:07 +00:00
|
|
|
BuildRequires: %{python_module tabulate}
|
2019-07-22 15:03:28 +00:00
|
|
|
BuildRequires: git
|
|
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2019-08-26 06:42:47 +00:00
|
|
|
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.
|
2019-07-22 15:03:28 +00:00
|
|
|
|
|
|
|
|
%prep
|
2023-10-09 14:21:07 +00:00
|
|
|
%autosetup -n asv-%{version}
|
2019-07-22 15:03:28 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="%{optflags}"
|
2023-10-09 14:21:07 +00:00
|
|
|
%pyproject_wheel
|
2019-07-22 15:03:28 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-10-09 14:21:07 +00:00
|
|
|
%pyproject_install
|
2020-05-28 07:33:16 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/asv
|
2019-07-22 15:03:28 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2023-10-09 14:21:07 +00:00
|
|
|
%python_expand rm %{buildroot}%{$python_sitearch}/asv/_rangemedian.cpp
|
2019-07-22 15:03:28 +00:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
#MVY: there are so MANY tests failing inside OBS - like test_continuous calling pip and building bad command line
|
|
|
|
|
exit 0
|
2021-05-18 07:06:43 +00:00
|
|
|
# % pytest
|
2019-07-22 15:03:28 +00:00
|
|
|
|
2025-06-16 14:21:20 +00:00
|
|
|
%pre
|
|
|
|
|
%python_libalternatives_reset_alternative asv
|
2020-05-28 07:33:16 +00:00
|
|
|
|
2019-07-22 15:03:28 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc CHANGES.rst README.rst
|
|
|
|
|
%license LICENSE.rst
|
2020-05-28 07:33:16 +00:00
|
|
|
%python_alternative %{_bindir}/asv
|
2023-10-09 14:21:07 +00:00
|
|
|
%{python_sitearch}/asv/
|
2023-10-24 12:09:06 +00:00
|
|
|
%{python_sitearch}/asv-%{version}*-info
|
2019-07-22 15:03:28 +00:00
|
|
|
|
|
|
|
|
%changelog
|