14
0
Files
python-mockito/python-mockito.spec
Tomáš Chvátal 56dca015d4 - Update to 1.1.1:
* Added forget_invocations function. Thanks to @maximkulkin
  * Fix: The context manager (with) has now a proper implementation
  * Fix: Calling patch with two arguments can now be used with with
  * Fix: Do not treat the placeholder arguments (Ellipsis, args, kwargs) as special on call time anymore. (T.i. they only have a meaning when stubbing or verifying.)
  * Enhancement: Changed some truthy or equality tests to identity (is) tests. This reduces edge-cases where some user object defines __eq__ or __bool__. (Hello _numpy_!)
- Run tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=12
2019-04-05 12:42:08 +00:00

61 lines
1.7 KiB
RPMSpec

#
# spec file for package python-mockito
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-mockito
Version: 1.1.1
Release: 0
Summary: Spying framework
License: MIT
Group: Development/Languages/Python
URL: https://github.com/kaste/mockito-python
Source: https://files.pythonhosted.org/packages/source/m/mockito/mockito-%{version}.tar.gz
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%ifpython2
Requires: python2-funcsigs
%endif
%python_subpackages
%description
Mockito is a spying framework originally based on the Java library with the same name.
%prep
%setup -q -n mockito-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc AUTHORS CHANGES.txt README.rst
%license LICENSE
%{python_sitelib}/*
%changelog