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