- Add patches to work with new pytest:

* pytest4.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-spec?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal
2019-08-22 09:01:39 +00:00
committed by Git OBS Bridge
parent 39af746861
commit b544588926
3 changed files with 31 additions and 2 deletions

View File

@@ -21,11 +21,12 @@ Name: python-pytest-spec
Version: 1.1.0
Release: 0
Summary: Plugin to display pytest execution output like a specification
License: GPL-2.0
License: GPL-2.0-only
Group: Development/Languages/Python
URL: https://github.com/pchomik/pytest-spec
Source: https://files.pythonhosted.org/packages/source/p/pytest-spec/pytest-spec-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/pchomik/pytest-spec/master/LICENSE.txt
Patch0: pytest4.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -42,6 +43,7 @@ pytest plugin to display test execution output like a specification.
%prep
%setup -q -n pytest-spec-%{version}
%patch0 -p1
cp %{SOURCE1} .
%build
@@ -52,7 +54,7 @@ cp %{SOURCE1} .
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m pytest
%pytest
%files %{python_files}
%doc README.rst