15
0
forked from pool/python-behave

Accepting request 977800 from home:pgajdos:python

- test the package
- do not require python-mock for build
- added patches
  83906ba779
  66fcadb23b
  + python-behave-fix-tests.patch
  fix https://github.com/behave/behave/issues/1028
  + python-behave-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/977800
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-behave?expand=0&rev=9
This commit is contained in:
2022-05-17 18:53:43 +00:00
committed by Git OBS Bridge
parent 6217a931e8
commit 4d23f4902a
4 changed files with 260 additions and 3 deletions

View File

@@ -26,6 +26,11 @@ Group: Development/Languages/Python
URL: https://github.com/behave/behave
Source: https://files.pythonhosted.org/packages/source/b/behave/behave-%{version}.tar.gz
Patch1: no2to3.patch
# https://github.com/behave/behave/commit/83906ba779956af9437defcb8975debb18440e0d
# https://github.com/behave/behave/commit/66fcadb23bea79e60f370e66bf7588de2f1934e3
Patch2: python-behave-fix-tests.patch
# https://github.com/behave/behave/issues/1028
Patch3: python-behave-no-mock.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -55,7 +60,6 @@ Suggests: python-traceback2
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyHamcrest >= 1.8}
BuildRequires: %{python_module mock >= 1.1}
BuildRequires: %{python_module parse >= 1.8.2}
BuildRequires: %{python_module parse_type >= 0.4.2}
BuildRequires: %{python_module path.py >= 10.1}
@@ -73,8 +77,7 @@ non-technical or business participants in a software project.
code.
%prep
%setup -q -n behave-%{version}
%patch1 -p1
%autosetup -p1 -n behave-%{version}
%build
%python_build
@@ -85,6 +88,7 @@ code.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests
%post
%python_install_alternative behave