diff --git a/python-fields.changes b/python-fields.changes index 881763c..6a351b9 100644 --- a/python-fields.changes +++ b/python-fields.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 19 08:55:52 UTC 2019 - Tomáš Chvátal + +- Fix building with pytest4+ + ------------------------------------------------------------------- Thu Mar 28 15:33:17 UTC 2019 - Tomáš Chvátal diff --git a/python-fields.spec b/python-fields.spec index 061bfb4..a5d7c18 100644 --- a/python-fields.spec +++ b/python-fields.spec @@ -25,9 +25,6 @@ License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/ionelmc/python-fields Source: https://files.pythonhosted.org/packages/source/f/fields/fields-%{version}.tar.gz -BuildRequires: %{python_module attr} -BuildRequires: %{python_module characteristic} -BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -49,6 +46,9 @@ Features: # 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 +# do not run doctests, needless dependencies pulled in that way +sed -i -e '/doctest/d' setup.cfg +sed -i -e 's/\[pytest\]/\[tools:pytest\]/g' setup.cfg rm tests/test_perf.py %build