From 07f26a08e306603832f08c0f088fe6bdfda4a7fb99986bd5d8b3bfcf0d157770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 12 Dec 2017 08:14:10 +0000 Subject: [PATCH 1/2] 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 --- mockito-0.5.2.tar.gz | 3 -- mockito-1.0.12.tar.gz | 3 ++ python-mockito-0.5.2-setup.py.patch | 12 -------- python-mockito.changes | 25 ++++++++++++++++ python-mockito.spec | 45 +++++++++++++++-------------- 5 files changed, 51 insertions(+), 37 deletions(-) delete mode 100644 mockito-0.5.2.tar.gz create mode 100644 mockito-1.0.12.tar.gz delete mode 100644 python-mockito-0.5.2-setup.py.patch diff --git a/mockito-0.5.2.tar.gz b/mockito-0.5.2.tar.gz deleted file mode 100644 index 6afb1ac..0000000 --- a/mockito-0.5.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c0e363716a348fb99f185401733313ac041475b75d79110705df71029d418fbe -size 18681 diff --git a/mockito-1.0.12.tar.gz b/mockito-1.0.12.tar.gz new file mode 100644 index 0000000..a93bd31 --- /dev/null +++ b/mockito-1.0.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea264ebf1d3d0e8bef31f2d630dcd18fcc073dbc4a3b4050b80ac624f6e46788 +size 35406 diff --git a/python-mockito-0.5.2-setup.py.patch b/python-mockito-0.5.2-setup.py.patch deleted file mode 100644 index 5fae3dc..0000000 --- a/python-mockito-0.5.2-setup.py.patch +++ /dev/null @@ -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: diff --git a/python-mockito.changes b/python-mockito.changes index 690a163..f6c5b8a 100644 --- a/python-mockito.changes +++ b/python-mockito.changes @@ -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 diff --git a/python-mockito.spec b/python-mockito.spec index 56048f7..36edd6b 100644 --- a/python-mockito.spec +++ b/python-mockito.spec @@ -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 From 309261eb54f5eb6267fc811c3a271f8599bf310dc9772cc0ba9448ef7116e140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 12 Dec 2017 08:22:17 +0000 Subject: [PATCH 2/2] - Remove no longer needed patch python-mockito-0.5.2-setup.py.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mockito?expand=0&rev=8 --- python-mockito.changes | 1 + python-mockito.spec | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/python-mockito.changes b/python-mockito.changes index f6c5b8a..1381a45 100644 --- a/python-mockito.changes +++ b/python-mockito.changes @@ -22,6 +22,7 @@ Mon Dec 11 19:47:18 UTC 2017 - sebix+novell.com@sebix.at - Breaking change: Throw early when calling not expected methods in strict mode. * changes in version 0.5.3: - Remove hard coded distribute setup files. +- Remove no longer needed patch python-mockito-0.5.2-setup.py.patch ------------------------------------------------------------------- Sun Dec 8 16:15:34 UTC 2013 - p.drouand@gmail.com diff --git a/python-mockito.spec b/python-mockito.spec index 36edd6b..5e8746f 100644 --- a/python-mockito.spec +++ b/python-mockito.spec @@ -29,17 +29,15 @@ BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch %ifpython2 Requires: python2-funcsigs %endif -BuildArch: noarch - %python_subpackages %description Mockito is a spying framework originally based on the Java library with the same name. - %prep %setup -q -n mockito-%{version}