Accepting request 716814 from devel:languages:python

- Fix building with pytest4+

OBS-URL: https://build.opensuse.org/request/show/716814
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fields?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2019-07-30 11:01:12 +00:00 committed by Git OBS Bridge
commit 6854dc77bd
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 19 08:55:52 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Fix building with pytest4+
-------------------------------------------------------------------
Thu Mar 28 15:33:17 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -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