- Remove pytest-benchmark dependency to avoid buildcycle

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fields?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal 2019-03-28 15:33:41 +00:00 committed by Git OBS Bridge
parent 050cb0dd53
commit 04eafcc7ef
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 28 15:33:17 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Remove pytest-benchmark dependency to avoid buildcycle
-------------------------------------------------------------------
Wed Feb 13 09:58:09 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -28,7 +28,6 @@ Source: https://files.pythonhosted.org/packages/source/f/fields/fields-%
BuildRequires: %{python_module attr}
BuildRequires: %{python_module characteristic}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@ -47,6 +46,10 @@ Features:
%prep
%setup -q -n fields-%{version}
# do not do benchmark tests, in virtual they don't make much sense and we
# avoid cycle with pytest-benchmark
sed -i -e '/--benchmark-disable/d' setup.cfg
rm tests/test_perf.py
%build
%python_build
@ -56,7 +59,7 @@ Features:
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} tests/
%pytest
%files %{python_files}
%license LICENSE