15
0

- Update to 0.10.3:

- fix compatibility with py.test 4.1
  - minor documentation fixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flexmock?expand=0&rev=8
This commit is contained in:
Tomáš Chvátal
2019-03-12 15:41:28 +00:00
committed by Git OBS Bridge
parent b9e22110f0
commit 3bec86b792
4 changed files with 14 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-flexmock
#
# 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
@@ -17,23 +17,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-flexmock
Version: 0.10.2
Version: 0.10.3
Release: 0
Summary: Testing library for creating mocks, stubs and fakes
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/bkabrda/flexmock
Source: https://files.pythonhosted.org/packages/source/f/flexmock/flexmock-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
%endif
%python_subpackages
%description
@@ -53,11 +49,8 @@ a number of Python-only features.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
export PYTHONPATH="."
%python_exec tests/flexmock_unittest_test.py
%endif
%pytest
%files %{python_files}
%license LICENSE