1
0

Accepting request 784630 from devel:languages:python:pytest

- Fix buidling without python2

OBS-URL: https://build.opensuse.org/request/show/784630
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-benchmark?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2020-03-26 23:22:41 +00:00 committed by Git OBS Bridge
commit b86524773e
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Mar 13 12:42:10 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix buidling without python2
-------------------------------------------------------------------
Mon Jan 13 14:13:23 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -17,6 +17,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-pytest-benchmark
Version: 3.2.3
Release: 0
@ -36,10 +37,12 @@ BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: git-core
%if %{with python2}
BuildRequires: python-mock
BuildRequires: python-pathlib2
BuildRequires: python-rpm-macros
BuildRequires: python-statistics
%endif
BuildRequires: python-rpm-macros
Requires: python-py-cpuinfo
Requires: python-pytest >= 3.8
Requires(post): update-alternatives