forked from pool/python-PyHamcrest
- Add patch to fix build with new pytest:
* pytest4.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyHamcrest?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
ab89c71a17
commit
e00fe5d35e
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-PyHamcrest
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -28,9 +28,10 @@ URL: https://github.com/hamcrest/PyHamcrest
|
||||
#Source: https://files.pythonhosted.org/packages/source/P/PyHamcrest/PyHamcrest-%%{version}.tar.gz
|
||||
Source: https://github.com/hamcrest/PyHamcrest/archive/V%{version}.tar.gz
|
||||
Patch0: 0001-Add-boolean-matchers.patch
|
||||
Patch1: pytest4.patch
|
||||
BuildRequires: %{python_module hypothesis >= 1.11}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six >= 1.4}
|
||||
BuildRequires: fdupes
|
||||
@@ -48,7 +49,8 @@ allowing you to declaratively define “match” rules.
|
||||
|
||||
%prep
|
||||
%setup -q -n PyHamcrest-%{version}
|
||||
%patch0 -p1
|
||||
%autopatch -p1
|
||||
rm pytest.ini
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -58,7 +60,7 @@ allowing you to declaratively define “match” rules.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/hamcrest
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
|
Reference in New Issue
Block a user