From 04eafcc7ef274988c1b11a3f246b46c9a9cecad5236c5d3e11ec75f5b90cfdfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 28 Mar 2019 15:33:41 +0000 Subject: [PATCH] - Remove pytest-benchmark dependency to avoid buildcycle OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fields?expand=0&rev=4 --- python-fields.changes | 5 +++++ python-fields.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-fields.changes b/python-fields.changes index e40e1d0..881763c 100644 --- a/python-fields.changes +++ b/python-fields.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 28 15:33:17 UTC 2019 - Tomáš Chvátal + +- Remove pytest-benchmark dependency to avoid buildcycle + ------------------------------------------------------------------- Wed Feb 13 09:58:09 UTC 2019 - Tomáš Chvátal diff --git a/python-fields.spec b/python-fields.spec index a402c7f..061bfb4 100644 --- a/python-fields.spec +++ b/python-fields.spec @@ -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