From e5df20b0b9c76bbe1aa4d265dbcb924cc13b1783b15e5cde31e89f245497d8c6 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 9 Oct 2023 14:21:07 +0000 Subject: [PATCH] Accepting request 1116457 from home:pgajdos:python - python-six is not required OBS-URL: https://build.opensuse.org/request/show/1116457 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asv?expand=0&rev=16 --- python-asv.changes | 5 +++++ python-asv.spec | 20 +++++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/python-asv.changes b/python-asv.changes index 2ff3852..0b41534 100644 --- a/python-asv.changes +++ b/python-asv.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 9 12:44:15 UTC 2023 - pgajdos@suse.com + +- python-six is not required + ------------------------------------------------------------------- Mon Oct 2 07:17:02 UTC 2023 - Dirk Müller diff --git a/python-asv.spec b/python-asv.spec index cbfbd8d..40393d5 100644 --- a/python-asv.spec +++ b/python-asv.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-asv Version: 0.6.1 Release: 0 @@ -26,18 +25,22 @@ 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 pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: python-rpm-macros -Requires: python-six >= 1.4 +Requires: python-json5 +Requires: python-tabulate Requires(post): update-alternatives Requires(postun):update-alternatives Suggests: python-python-hglib >= 1.5 # SECTION test requirements +BuildRequires: %{python_module json5} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module six >= 1.4} +BuildRequires: %{python_module tabulate} BuildRequires: git # /SECTION %python_subpackages @@ -52,16 +55,18 @@ interactive web frontend that requires only a basic static webserver to host. %prep -%setup -q -n asv-%{version} +%autosetup -n asv-%{version} %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/asv %python_expand %fdupes %{buildroot}%{$python_sitearch} +%python_expand rm -r %{buildroot}%{$python_sitearch}/{benchmarks,test} +%python_expand rm %{buildroot}%{$python_sitearch}/asv/_rangemedian.cpp %check #MVY: there are so MANY tests failing inside OBS - like test_continuous calling pip and building bad command line @@ -78,6 +83,7 @@ exit 0 %doc CHANGES.rst README.rst %license LICENSE.rst %python_alternative %{_bindir}/asv -%{python_sitearch}/* +%{python_sitearch}/asv/ +%{python_sitearch}/asv-*info %changelog