14
0
Files
python-mockito/python-mockito.spec
Dirk Mueller 0c77a3a5e6 - update to 1.5.0:
* @Oracking fixed `expect` to support a string as its first
    argument.  All other functions supported that already.
    assert arg.all_values == [123, 456]
- Do not build for Python 3.6, due to no NumPy.
  - Fine tune error messages on unexpected calls or verifications.
- Remove python-mockito.rpmlintrc; problem of execution bits have

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=21
2024-03-16 08:58:19 +00:00

62 lines
1.7 KiB
RPMSpec

#
# spec file for package python-mockito
#
# Copyright (c) 2024 SUSE LLC
#
# 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-%{**}}
%define skip_python36 1
Name: python-mockito
Version: 1.5.0
Release: 0
Summary: Spying framework
License: MIT
URL: https://github.com/kaste/mockito-python
# https://github.com/kaste/mockito-python/issues/36
Source: https://github.com/kaste/mockito-python/archive/%{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-python-%{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