From 1f5b7fb58722db0337dc976388976a46bbf18cb557cd99cd96c281a7623b8f15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 19 Jul 2019 08:56:11 +0000 Subject: [PATCH] - Fix building with pytest4+ OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fields?expand=0&rev=6 --- python-fields.changes | 5 +++++ python-fields.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) 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