forked from pool/python-mockito
Accepting request 556077 from home:sebix:branches:devel:languages:python
- update to version 1.0.12 OBS-URL: https://build.opensuse.org/request/show/556077 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=7
This commit is contained in:
committed by
Git OBS Bridge
parent
3bde18a439
commit
07f26a08e3
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c0e363716a348fb99f185401733313ac041475b75d79110705df71029d418fbe
|
||||
size 18681
|
||||
3
mockito-1.0.12.tar.gz
Normal file
3
mockito-1.0.12.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ea264ebf1d3d0e8bef31f2d630dcd18fcc073dbc4a3b4050b80ac624f6e46788
|
||||
size 35406
|
||||
@@ -1,12 +0,0 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -1,9 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
# coding: utf-8
|
||||
|
||||
-from distribute_setup import use_setuptools
|
||||
-use_setuptools()
|
||||
-
|
||||
try:
|
||||
from setuptools import setup
|
||||
except ImportError:
|
||||
@@ -1,3 +1,28 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 11 19:47:18 UTC 2017 - sebix+novell.com@sebix.at
|
||||
|
||||
- update to version 1.0.12
|
||||
* see CHANGES.txt for a detailed changelog
|
||||
* changes in version 1.0.12:
|
||||
- Better error messages for failed verifications.
|
||||
* changes in version 1.0.7 - 1.0.10
|
||||
- ``verifyZeroInteractions`` implemented. This is actually a *breaking change*, because ``verifyZeroInteractions`` was an alias for ``verifyNoMoreInteractions`` (sic!).
|
||||
- All `verify*` functions now warn you if you pass in an object which was never stubbed.
|
||||
* changes in version 1.0.0 - 1.0.5
|
||||
- mockito's strict mode is far more strict than before
|
||||
- ``mock``, ``when``, ``verify`` return mostly empty objects. It is unlikely to have a method_name clash.
|
||||
- ``Mock()`` is now an implementation detail; it is **not** exported anymore. Use ``mock()``.
|
||||
* changes in version 0.7.1:
|
||||
- bugfixes
|
||||
* changes in version 0.7.0:
|
||||
- bugfixes
|
||||
* changes in version 0.6.1:
|
||||
- Added ``thenAnswer(callable)``. The callable will be called to compute the answer the stubbed method will return. For that it will receive the arguments of the caller.
|
||||
* changes in version 0.6.0:
|
||||
- Breaking change: Throw early when calling not expected methods in strict mode.
|
||||
* changes in version 0.5.3:
|
||||
- Remove hard coded distribute setup files.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 8 16:15:34 UTC 2013 - p.drouand@gmail.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-mockito
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 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
|
||||
@@ -16,42 +16,43 @@
|
||||
#
|
||||
|
||||
|
||||
%define mod_name mockito
|
||||
|
||||
Name: python-%{mod_name}
|
||||
Version: 0.5.2
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-mockito
|
||||
Version: 1.0.12
|
||||
Release: 0
|
||||
Url: http://code.google.com/p/mockito-python
|
||||
Summary: Spying framework
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.python.org/packages/source/m/mockito/%{mod_name}-%{version}.tar.gz
|
||||
Patch0: python-mockito-0.5.2-setup.py.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-setuptools
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
Url: http://mockito-python.readthedocs.io/en/latest/
|
||||
Source: https://files.pythonhosted.org/packages/source/m/mockito/mockito-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%ifpython2
|
||||
Requires: python2-funcsigs
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Mockito is a spying framework based on Java library with the same name.
|
||||
Mockito is a spying framework originally based on the Java library with the same name.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n mockito-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%files %{python_files}
|
||||
%doc AUTHORS CHANGES.txt README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user