commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2020-05-01 11:04:46 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new.2738 (New) Package is "python-mock" Fri May 1 11:04:46 2020 rev:26 rq:794560 version:4.0.2 Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2019-09-23 12:02:17.641956057 +0200 +++ /work/SRC/openSUSE:Factory/.python-mock.new.2738/python-mock.changes 2020-05-01 11:04:49.618734909 +0200 @@ -1,0 +2,92 @@ +Thu Apr 16 07:47:15 UTC 2020 - John Paul Adrian Glaubitz + +- Update to 4.0.2 + * Issue #39915: Ensure :attr:`unittest.mock.AsyncMock.await_args_list` has +call objects in the order of awaited arguments instead of using +:attr:`unittest.mock.Mock.call_args` which has the last value of the call. +Patch by Karthikeyan Singaravelan. +- from version 4.0.1 + * Remove the universal marker from the wheel. +- from version 4.0.0 + * No Changes from 4.0.0b1. +- from version 4.0.0b1 + * The release is a fresh cut of cpython's `4a686504`__. All changes to :mod:`mock` +from that commit and before are included in this release along with the +subsequent changes listed below. +__ https://github.com/python/cpython/commit/4a686504eb2bbf69adf78077458508a7ba131667 + * Issue #37972: Subscripts to the `unittest.mock.call` objects now receive +the same chaining mechanism as any other custom attributes, so that the +following usage no longer raises a `TypeError`: + +call().foo().__getitem__('bar') + +Patch by blhsing + * Issue #38839: Fix some unused functions in tests. Patch by Adam Johnson. + * Issue #39485: Fix a bug in :func:`unittest.mock.create_autospec` that +would complain about the wrong number of arguments for custom descriptors +defined in an extension module returning functions. + * Issue #39082: Allow AsyncMock to correctly patch static/class methods + * Issue #38093: Fixes AsyncMock so it doesn't crash when used with +AsyncContextManagers or AsyncIterators. + * Issue #38859: AsyncMock now returns StopAsyncIteration on the exaustion of +a side_effects iterable. Since PEP-479 its Impossible to raise a +StopIteration exception from a coroutine. + * Issue #38163: Child mocks will now detect their type as either synchronous +or asynchronous, asynchronous child mocks will be AsyncMocks and +synchronous child mocks will be either MagicMock or Mock (depending on +their parent type). + * Issue #38473: Use signature from inner mock for autospecced methods +attached with :func:`unittest.mock.attach_mock`. Patch by Karthikeyan +Singaravelan. + * Issue #38136: Changes AsyncMock call count and await count to be two +different counters. Now await count only counts when a coroutine has been +awaited, not when it has been called, and vice-versa. Update the +documentation around this. + * Issue #37555: Fix `NonCallableMock._call_matcher` returning tuple instead +of `_Call` object when `self._spec_signature` exists. Patch by Elizabeth +Uselton + * Issue #37251: Remove `__code__` check in AsyncMock that incorrectly +evaluated function specs as async objects but failed to evaluate classes +with `__await__` but no `__code__` attribute defined as async objects. + * Issue #38669: Raise :exc:`TypeError` when passing target as a string with +:meth:`unittest.mock.patch.object`. + * Issue #25597: Ensure, if ``wraps`` is supplied to +:class:`unittest.mock.MagicMock`, it is used to calculate return values +for the magic methods instead of using the default return values. Patch by +Karthikeyan Singaravelan. + * Issue #38108: Any synchronous magic methods on an AsyncMock now return a +MagicMock. Any asynchronous magic methods on a MagicMock now return an +AsyncMock. + * Issue #21478: Record calls to parent when autospecced object is attached +to a mock using :func:`unittest.mock.attach_mock`. Patch by Karthikeyan +Singaravelan. + * Issue #38857: AsyncMock fix for return values that are awaitable types. +This also covers side_effect iterable values that happend to be awaitable, +and wraps callables that return an awaitable type. Before these awaitables +were being awaited instead of being returned as is. + * Issue #38932: Mock fully resets child objects on reset_mock(). Patch by +Vegard Stikbakke + * Issue #37685: Fixed ``__eq__``, ``__lt__`` etc implementations in some +classes. They now return :data:`NotImplemented` for unsupported type of +the other operand. This allows the other operand to play role (for example +the equality comparison with :data:`~unittest.mock.ANY` will return +``True``). + * Issue #37212:
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2019-09-23 12:02:16 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new.7948 (New) Package is "python-mock" Mon Sep 23 12:02:16 2019 rev:25 rq:703239 version:3.0.5 Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2018-08-20 16:17:29.796659806 +0200 +++ /work/SRC/openSUSE:Factory/.python-mock.new.7948/python-mock.changes 2019-09-23 12:02:17.641956057 +0200 @@ -1,0 +2,7 @@ +Tue May 14 07:55:19 UTC 2019 - Ondřej Súkup + +- update to 3.0.5 +- drop remove_unittest2.patch + * more in CHANGELOG.rst + +--- Old: mock-2.0.0.tar.gz remove_unittest2.patch New: 3.0.5.tar.gz _multibuild Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.CeUEDX/_old 2019-09-23 12:02:18.233955959 +0200 +++ /var/tmp/diff_new_pack.CeUEDX/_new 2019-09-23 12:02:18.237955959 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-mock # -# 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 @@ -12,28 +12,39 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif %bcond_without python2 -Name: python-mock -Version:2.0.0 +Name: python-mock%{psuffix} +Version:3.0.5 Release:0 Summary:A Python Mocking and Patching Library for Testing License:BSD-2-Clause Group: Development/Languages/Python URL:http://www.voidspace.org.uk/python/mock/ -Source: https://files.pythonhosted.org/packages/source/m/mock/mock-%{version}.tar.gz -Patch0: remove_unittest2.patch -BuildRequires: %{python_module pbr} +# no tests in sdis +# Source: https://files.pythonhosted.org/packages/source/m/mock/mock-%{version}.tar.gz +Source: https://github.com/testing-cabal/mock/archive/%{version}.tar.gz BuildRequires: %{python_module setuptools >= 17.1} BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-pbr Requires: python-six >= 1.9 +%if %{with test} +BuildRequires: %{python_module pytest} +%endif BuildArch: noarch %if %{with python2} BuildRequires: python-funcsigs @@ -52,23 +63,26 @@ %prep %setup -q -n mock-%{version} -# remove test runner which causes test failure all by itself -rm mock/tests/__main__.py -%patch0 -p1 %build %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif %check -%python_exec setup.py test +%if %{with test} +%pytest +%endif +%if !%{with test} %files %{python_files} %license LICENSE.txt -%doc README.rst +%doc README.rst CHANGELOG.rst %{python_sitelib}/* +%endif %changelog ++ mock-2.0.0.tar.gz -> 3.0.5.tar.gz ++ 6376 lines of diff (skipped) ++ _multibuild ++ test
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2018-08-20 16:17:27 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is "python-mock" Mon Aug 20 16:17:27 2018 rev:24 rq:628988 version:2.0.0 Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2018-01-16 09:35:26.525146383 +0100 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2018-08-20 16:17:29.796659806 +0200 @@ -1,0 +2,7 @@ +Mon Aug 13 13:06:03 UTC 2018 - mc...@suse.com + +- Remove dependency on unittest2 + Add remove_unittest2.patch to facilitate that + Remove unnecessary now unittest2-fallback.patch + +--- Old: unittest2-fallback.patch New: remove_unittest2.patch Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.8uzx1R/_old 2018-08-20 16:17:30.828661259 +0200 +++ /var/tmp/diff_new_pack.8uzx1R/_new 2018-08-20 16:17:30.832661264 +0200 @@ -16,33 +16,31 @@ # -%bcond_without python2 %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-mock Version:2.0.0 Release:0 -Url:http://www.voidspace.org.uk/python/mock/ Summary:A Python Mocking and Patching Library for Testing License:BSD-2-Clause Group: Development/Languages/Python -Source: https://pypi.io/packages/source/m/mock/mock-%{version}.tar.gz -Patch0: unittest2-fallback.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build +URL:http://www.voidspace.org.uk/python/mock/ +Source: https://files.pythonhosted.org/packages/source/m/mock/mock-%{version}.tar.gz +Patch0: remove_unittest2.patch BuildRequires: %{python_module pbr} BuildRequires: %{python_module setuptools >= 17.1} BuildRequires: %{python_module six} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-pbr +Requires: python-six >= 1.9 +BuildArch: noarch %if %{with python2} BuildRequires: python-funcsigs -BuildRequires: python-unittest2 %endif %ifpython2 Requires: python-funcsigs >= 1 %endif -Requires: python-pbr -Requires: python-six >= 1.9 -BuildArch: noarch - %python_subpackages %description @@ -63,13 +61,14 @@ %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec setup.py test -%files %python_files -%defattr(-,root,root,-) -%doc README.rst LICENSE.txt +%files %{python_files} +%license LICENSE.txt +%doc README.rst %{python_sitelib}/* %changelog ++ remove_unittest2.patch ++ --- a/docs/conf.py +++ b/docs/conf.py @@ -33,7 +33,7 @@ import os import sys import mock from mock import * # yeah, I know :-/ -import unittest2 +import unittest import __main__ if os.getcwd() not in sys.path: --- a/mock/tests/support.py +++ b/mock/tests/support.py @@ -1,8 +1,6 @@ import sys info = sys.version_info -import unittest2 - try: callable = callable --- a/mock/tests/testcallable.py +++ b/mock/tests/testcallable.py @@ -2,7 +2,7 @@ # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ -import unittest2 as unittest +import unittest from mock.tests.support import is_instance, X, SomeClass from mock import ( --- a/mock/tests/testhelpers.py +++ b/mock/tests/testhelpers.py @@ -3,7 +3,7 @@ # http://www.voidspace.org.uk/python/mock/ import six -import unittest2 as unittest +import unittest from mock import ( call, create_autospec, MagicMock, --- a/mock/tests/testmagicmethods.py +++ b/mock/tests/testmagicmethods.py @@ -16,7 +16,7 @@ import sys import textwrap import six -import unittest2 as unittest +import unittest from mock import Mock, MagicMock from mock.mock import _magics @@ -405,7 +405,7 @@ class TestMockingMagicMethods(unittest.T mock = MagicMock() def set_setattr(): mock.__setattr__ = lambda self, name: None -self.assertRaisesRegex(AttributeError, +six.assertRaisesRegex(self, AttributeError, "Attempting to set unsupported magic method '__setattr__'.", set_setattr ) --- a/mock/tests/testmock.py +++ b/mock/tests/testmock.py @@ -8,7 +8,7 @@ import sys import tempfile import six -import unittest2 as unittest +import unittest import mock from mock import ( @@ -207,7 +207,7 @@ class MockTest(unittest.TestCase): mock = create_autospec(f) mock.side_effect = ValueError('Bazinga!') -self.assertRaisesRegex(ValueError, 'Bazinga!',
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2018-01-16 09:35:25 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is "python-mock" Tue Jan 16 09:35:25 2018 rev:23 rq:561664 version:2.0.0 Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2017-11-04 10:24:36.477106279 +0100 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2018-01-16 09:35:26.525146383 +0100 @@ -1,0 +2,5 @@ +Thu Jan 4 14:36:33 UTC 2018 - tchva...@suse.com + +- Condition python2 build to ensure we can build py3 only package + +--- Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.nPvVQj/_old 2018-01-16 09:35:27.053121680 +0100 +++ /var/tmp/diff_new_pack.nPvVQj/_new 2018-01-16 09:35:27.053121680 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-mock # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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,6 +16,7 @@ # +%bcond_without python2 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-mock Version:2.0.0 @@ -31,10 +32,10 @@ BuildRequires: %{python_module setuptools >= 17.1} BuildRequires: %{python_module six} BuildRequires: python-rpm-macros -# SECTION Python2-only requirements +%if %{with python2} BuildRequires: python-funcsigs BuildRequires: python-unittest2 -# /SECTION +%endif %ifpython2 Requires: python-funcsigs >= 1 %endif
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2017-11-04 10:23:21 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is "python-mock" Sat Nov 4 10:23:21 2017 rev:22 rq:521007 version:2.0.0 Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2017-02-27 18:39:52.685300715 +0100 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2017-11-04 10:24:36.477106279 +0100 @@ -1,0 +2,5 @@ +Tue Sep 5 07:44:18 UTC 2017 - dmuel...@suse.com + +- adjust requires for singlespec'ified python-funcsigs + +--- Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.Wthb5X/_old 2017-11-04 10:24:36.993087502 +0100 +++ /var/tmp/diff_new_pack.Wthb5X/_new 2017-11-04 10:24:36.997087357 +0100 @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python Name: python-mock Version:2.0.0 Release:0 @@ -37,7 +36,7 @@ BuildRequires: python-unittest2 # /SECTION %ifpython2 -Requires: %{oldpython}-funcsigs >= 1 +Requires: python-funcsigs >= 1 %endif Requires: python-pbr Requires: python-six >= 1.9
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2017-02-27 18:39:51 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is "python-mock" Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2016-10-14 03:37:53.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2017-02-27 18:39:52.685300715 +0100 @@ -1,0 +2,10 @@ +Thu Oct 6 16:19:38 UTC 2016 - jmate...@suse.com + +- update for multipython build +- remove test runner because it performs dark magic that + causes a failure in test suite +- implement fallback to python's own unittest instead of unittest2 + if we're on Python 3 (to avoid dependencies on funcsigs and unittest2) + (unittest2-fallback.patch) + +--- New: unittest2-fallback.patch Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.pQSvpj/_old 2017-02-27 18:39:53.381202406 +0100 +++ /var/tmp/diff_new_pack.pQSvpj/_new 2017-02-27 18:39:53.385201841 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-mock # -# Copyright (c) 2016 SUSE LINUX 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,6 +16,8 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-mock Version:2.0.0 Release:0 @@ -24,24 +26,24 @@ License:BSD-2-Clause Group: Development/Languages/Python Source: https://pypi.io/packages/source/m/mock/mock-%{version}.tar.gz +Patch0: unittest2-fallback.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module setuptools >= 17.1} +BuildRequires: %{python_module six} +BuildRequires: python-rpm-macros +# SECTION Python2-only requirements BuildRequires: python-funcsigs -BuildRequires: python-pbr -BuildRequires: python-setuptools >= 17.1 -BuildRequires: python-six -Requires: python-funcsigs >= 1 -Requires: python-pbr -Requires: python-six >= 1.9 -%if 0%{?suse_version} && 0%{?suse_version} < 1140 -BuildRequires: python-ordereddict BuildRequires: python-unittest2 +# /SECTION +%ifpython2 +Requires: %{oldpython}-funcsigs >= 1 %endif -%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 +Requires: python-pbr +Requires: python-six >= 1.9 BuildArch: noarch -%endif + +%python_subpackages %description mock is a Python module that provides a core Mock class. It removes the need @@ -52,17 +54,20 @@ %prep %setup -q -n mock-%{version} +# remove test runner which causes test failure all by itself +rm mock/tests/__main__.py +%patch0 -p1 %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install %check -python setup.py test +%python_exec setup.py test -%files +%files %python_files %defattr(-,root,root,-) %doc README.rst LICENSE.txt %{python_sitelib}/* ++ unittest2-fallback.patch ++ Index: mock-2.0.0/mock/tests/support.py === --- mock-2.0.0.orig/mock/tests/support.py +++ mock-2.0.0/mock/tests/support.py @@ -1,7 +1,6 @@ import sys info = sys.version_info -import unittest2 try: Index: mock-2.0.0/mock/tests/testcallable.py === --- mock-2.0.0.orig/mock/tests/testcallable.py +++ mock-2.0.0/mock/tests/testcallable.py @@ -2,7 +2,11 @@ # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ -import unittest2 as unittest +try: +import unittest2 as unittest +except ImportError: +import unittest + from mock.tests.support import is_instance, X, SomeClass from mock import ( Index: mock-2.0.0/mock/tests/testhelpers.py === --- mock-2.0.0.orig/mock/tests/testhelpers.py +++ mock-2.0.0/mock/tests/testhelpers.py @@ -3,7 +3,10 @@ # http://www.voidspace.org.uk/python/mock/ import six -import unittest2 as unittest +try: +import unittest2 as unittest +except ImportError: +import unittest from mock import ( call, create_autospec,
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2016-10-14 03:37:52 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is "python-mock" Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2016-06-29 15:02:43.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2016-10-14 03:37:53.0 +0200 @@ -1,0 +2,5 @@ +Thu Oct 6 05:56:11 UTC 2016 - tbecht...@suse.com + +- Fix pytohn-funcsigs Requires + +--- Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.tidjhH/_old 2016-10-14 03:37:54.0 +0200 +++ /var/tmp/diff_new_pack.tidjhH/_new 2016-10-14 03:37:54.0 +0200 @@ -30,7 +30,7 @@ BuildRequires: python-pbr BuildRequires: python-setuptools >= 17.1 BuildRequires: python-six -Requires: python-funcsigs +Requires: python-funcsigs >= 1 Requires: python-pbr Requires: python-six >= 1.9 %if 0%{?suse_version} && 0%{?suse_version} < 1140
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2016-06-29 15:02:42 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is "python-mock" Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2016-01-15 10:38:56.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2016-06-29 15:02:43.0 +0200 @@ -1,0 +2,26 @@ +Thu Jun 2 07:33:30 UTC 2016 - tbecht...@suse.com + +- update to 2.0.0: + * Fix #338: depend on a fixed version of funcsigs + * More 3.2 support dropping cleanup + * Update sync point + * Add Mock.assert_called() + * Issue25347 - Format the error message output of mock's assert_has_calls method + * Issue #22138: Fix mock.patch behavior when patching descriptors. Restore original values after patching + * Issue #24857: Comparing call_args to a long sequence now correctly returns a boolean result instead of raising an exception + * Issue #23004: mock_open() now reads binary data correctly when the type of read_data is bytes + * Add version info in the docs + * Update six to a version with raises_from + * Fix #328 - handle unicode __repr__ on Python 2.x + * Drop support for Python 3.2 + * Fix typo in docs/index.txt + * Fix README.rst checking + * Be clearer about Python version compat + * Issue #295: use a setup_requires dependency + * Improve grouping of imports in tests + * Use six to detect python2/3 in main module + * Use six to detect python2/3 in test modules +- adjust Requires +- use pypi.io as Source url + +--- Old: mock-1.3.0.tar.gz New: mock-2.0.0.tar.gz Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.lBkvpU/_old 2016-06-29 15:02:44.0 +0200 +++ /var/tmp/diff_new_pack.lBkvpU/_new 2016-06-29 15:02:44.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-mock # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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,13 +17,13 @@ Name: python-mock -Version:1.3.0 +Version:2.0.0 Release:0 Url:http://www.voidspace.org.uk/python/mock/ Summary:A Python Mocking and Patching Library for Testing License:BSD-2-Clause Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/m/mock/mock-%{version}.tar.gz +Source: https://pypi.io/packages/source/m/mock/mock-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-funcsigs @@ -32,8 +32,9 @@ BuildRequires: python-six Requires: python-funcsigs Requires: python-pbr -Requires: python-six >= 1.7 +Requires: python-six >= 1.9 %if 0%{?suse_version} && 0%{?suse_version} < 1140 +BuildRequires: python-ordereddict BuildRequires: python-unittest2 %endif %if 0%{?suse_version} && 0%{?suse_version} <= 1110 ++ mock-1.3.0.tar.gz -> mock-2.0.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mock-1.3.0/.travis.yml new/mock-2.0.0/.travis.yml --- old/mock-1.3.0/.travis.yml 2015-07-15 02:00:29.0 +0200 +++ new/mock-2.0.0/.travis.yml 2016-03-21 01:09:59.0 +0100 @@ -3,7 +3,6 @@ python: - "2.6" - "2.7" - - "3.2" - "3.3" - "3.4" - pypy @@ -23,4 +22,4 @@ script: - unit2 - if [ -z "$SKIP_DOCS" ]; then python setup.py build_sphinx; fi - - rst2html.py README.rst README.html + - rst2html.py --strict README.rst README.html diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mock-1.3.0/AUTHORS new/mock-2.0.0/AUTHORS --- old/mock-1.3.0/AUTHORS 2015-07-24 01:17:08.0 +0200 +++ new/mock-2.0.0/AUTHORS 2016-04-06 03:38:11.0 +0200 @@ -2,10 +2,13 @@ Antoine PitrouBerker Peksag Darragh Bailey +Frankie Robertson +Joachim Jablon Konrad Delong Kumar McMillan Kushal Das Larry Hastings +Michael Fladischer Michael Foord Michael Foord Michael Foord @@ -13,10 +16,13 @@ R David Murray
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2016-01-15 10:38:55 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is "python-mock" Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2015-10-28 17:28:17.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2016-01-15 10:38:56.0 +0100 @@ -1,0 +2,6 @@ +Fri Jan 8 17:54:59 CET 2016 - fr...@b1-systems.de + +- BuildRequires python-setuptools >= 17.1 If you have a lower + version the build will fail. + +--- Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.Nao5Rg/_old 2016-01-15 10:38:57.0 +0100 +++ /var/tmp/diff_new_pack.Nao5Rg/_new 2016-01-15 10:38:57.0 +0100 @@ -28,7 +28,7 @@ BuildRequires: python-devel BuildRequires: python-funcsigs BuildRequires: python-pbr -BuildRequires: python-setuptools +BuildRequires: python-setuptools >= 17.1 BuildRequires: python-six Requires: python-funcsigs Requires: python-pbr
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2015-10-28 17:28:16 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is "python-mock" Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2015-08-07 00:20:09.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2015-10-28 17:28:17.0 +0100 @@ -1,0 +2,6 @@ +Mon Oct 26 10:08:30 UTC 2015 - toddrme2...@gmail.com + +- BuildRequires python-funcsigs. It was already in Requires, + but is also needed at build time for unit tests. + +--- Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.aiO2B2/_old 2015-10-28 17:28:17.0 +0100 +++ /var/tmp/diff_new_pack.aiO2B2/_new 2015-10-28 17:28:17.0 +0100 @@ -26,6 +26,7 @@ Source: http://pypi.python.org/packages/source/m/mock/mock-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel +BuildRequires: python-funcsigs BuildRequires: python-pbr BuildRequires: python-setuptools BuildRequires: python-six
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2015-08-07 00:20:08 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is python-mock Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2014-02-26 06:55:13.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2015-08-07 00:20:09.0 +0200 @@ -1,0 +2,88 @@ +Mon Jul 27 11:30:53 UTC 2015 - seife+...@b1-systems.com + +- python-mock now requires python-pbr + +--- +Mon Jul 27 07:02:44 UTC 2015 - dmuel...@suse.com + +- update to 1.3.0: + * Update sync point + * Issue #21750: Further fixup to be styled like other mock APIs + * Typo fix in mock.patch + * Revert Issue #21750: mock_open.read_data can now be read from each instance, as it + * Add 2.6 back to classifiers + * Record sync point + * Issue #21750: mock_open.read_data can now be read from each instance, as it could in Python 3.3 + * Issue #18622: unittest.mock.mock_open().reset_mock would recurse infinitely + * Folk should test 2.6 locally too + * Closes #279: setuptools.version is too new + * Support python 2.6 + * Update sync point and sync docs + * Issue #23661: unittest.mock side_effects can now be exceptions again + * Abort installation if the installer is using setuptools17.1 + * Closes #269: setup_requires pbr 1.3 + * Closes #257: version the dependency on six + * Rename README.txt to README.rst + * Make reproducing travis behaviour somewhat easier + * Cleanup version number handling + * Overhaul docs + * Update docs + * Remove stale MANIFEST.in, ignore pbr outputs + * Convert to a package, use pbr, update metadata + * Bump versions + * Officially drop 2.6 support + * Issue #23310: Fix MagicMock's initializer to work with __methods__. Behavior equivalent to m.configure_mock(). Patch by Kasia Jachim + * Issue #23568: Add rdivmod support to MagicMock() objects + * Issue #23581: Add matmul support to MagicMock + * Issue #23326: Removed __ne__ implementations. Since fixing default __ne__ implementation in issue #21408 they are redundant + * Issue #22823: Use set literals instead of creating a set from a list. Fixed an output of sets in examples + * Closes #21270 : We now override tuple methods in mock.call objects + * Suppress a couple more DeprecationWarnings in the test suite + * Closes #21256: Printout of keyword args in deterministic order in mock calls + * Removes unused varargs and varkwargs from assert_not_called() + * Closes Issue 21262: New method assert_not_called for Mock + * Closes Issue 21238: New keyword argument `unsafe` to Mock + * Closes issue 21239. unittest.mock.patch.stopall() did not work deterministically when the same name was patched multiple times + * Closes Issue 21222 + * Closes issue 17660. You no longer need to explicitly pass create=True when patching builtin names + * Issue 17826. Setting an iterable side_effect on a mock created by create_autospec now works + * Issue 20968. unittest.mock.MagicMock now supports division + * Issue #20189: Four additional builtin types (PyTypeObject, PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes + * Issue #19594: Use specific asserts in unittest tests + * Remove shadowed test + * Adjust comment + * Issue #19013: add a __main__ to unittest.test.testmock to ease CLI invocation + * Issue #19013: add unittest.main() epilogs to unittest.mock's own test modules + * Process DEFAULT values in mock side_effect that returns iterator + * Closes issue 17467. Add readline and readlines support to unittest.mock.mock_open + * Issue #17047: remove doubled words added in 3.3 as reported by Serhiy Storchaka and Matthew Barnett + * Issue #17015: When it has a spec, a Mock object now inspects its signature when matching calls, so that arguments can be matched positionally or by name + * Closes issue 15323. Improve failure message of Mock.assert_called_once_with + * Close #14857: fix regression in references to PEP 3135 implicit __class__ closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue + * Remove incorrect comment + * Closes issue 14634. unittest.mock.create_autospec now supports keyword only arguments + * unittest.mock: removed another bit of Python 2 only code + * Adding unittest.mock documentation + * unittest.mock: remove another piece of Python 2 specific code + * Remove more Python 2 code from unittest.mock (obsolete function attributes) + * Support subclassing
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2014-02-26 06:55:09 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is python-mock Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2014-02-13 15:10:47.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2014-02-26 06:55:13.0 +0100 @@ -1,0 +2,11 @@ +Tue Feb 18 13:37:33 CET 2014 - r...@suse.de + +- added LICENSE.txt as doc file + +--- +Wed Feb 12 19:06:24 UTC 2014 - cfarr...@suse.com + +- license update: BSD-2-Clause + See the License.txt file + +--- @@ -11 +22 @@ - newer than Python 2.7.x + newer than Python 2.7.x (bnc#863813) Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.q5QYNr/_old 2014-02-26 06:55:14.0 +0100 +++ /var/tmp/diff_new_pack.q5QYNr/_new 2014-02-26 06:55:14.0 +0100 @@ -21,7 +21,7 @@ Release:0 Url:http://www.voidspace.org.uk/python/mock/ Summary:A Python Mocking and Patching Library for Testing -License:BSD-3-Clause +License:BSD-2-Clause Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/m/mock/mock-%{version}.tar.gz # PATCH-FIX-UPSTREAM speili...@suse.com -- http://code.google.com/p/mock/issues/detail?id=194 @@ -61,7 +61,7 @@ %files %defattr(-,root,root,-) -%doc README.txt html +%doc README.txt LICENSE.txt html %{python_sitelib}/* %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2014-02-13 15:10:46 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is python-mock Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2013-10-25 11:22:08.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2014-02-13 15:10:47.0 +0100 @@ -1,0 +2,12 @@ +Wed Feb 12 10:30:21 UTC 2014 - speili...@suse.com + +- Replace python27x.diff with mock-unittest2py27.patch +- Rather use setup.py test + +--- +Mon Feb 10 17:01:11 UTC 2014 - dmuel...@suse.com + +- add python27x.diff: Avoid dependency on unittest2 for anything + newer than Python 2.7.x + +--- New: mock-unittest2py27.patch Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.q1Owdo/_old 2014-02-13 15:10:48.0 +0100 +++ /var/tmp/diff_new_pack.q1Owdo/_new 2014-02-13 15:10:48.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-mock # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,10 +24,14 @@ License:BSD-3-Clause Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/m/mock/mock-%{version}.tar.gz +# PATCH-FIX-UPSTREAM speili...@suse.com -- http://code.google.com/p/mock/issues/detail?id=194 +Patch0: mock-unittest2py27.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-setuptools +%if 0%{?suse_version} 0%{?suse_version} 1140 BuildRequires: python-unittest2 +%endif %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 @@ -43,6 +47,7 @@ %prep %setup -q -n mock-%{version} +%patch0 -p1 rm -rf html/.doctrees # Remove junk %build @@ -52,7 +57,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %check -unit2 discover +python setup.py test %files %defattr(-,root,root,-) ++ mock-unittest2py27.patch ++ # HG changeset patch # User Sascha Peilicke sasch...@gmx.de # Date 1392200447 -3600 # Wed Feb 12 11:20:47 2014 +0100 # Node ID 3f15152f49e49e745d63e066b23b482454c67fc9 # Parent d356250e275daa62b2972521885f42fa639341e6 Fix unittest2 check for Python-2.7 The features of unittest2 are available from py2.7+ or py3.2+. Fix the test accordingly. While at it, simplify other related tests. diff -r d356250e275d -r 3f15152f49e4 setup.py --- a/setup.py Tue Apr 09 14:53:33 2013 +0100 +++ b/setup.py Wed Feb 12 11:20:47 2014 +0100 @@ -7,6 +7,7 @@ from mock import __version__ import os +import sys NAME = 'mock' @@ -66,7 +67,11 @@ except ImportError: from distutils.core import setup else: -params['tests_require'] = ['unittest2'] -params['test_suite'] = 'unittest2.collector' +info = sys.version_info[:3] +if info = (3, 2, 0) or (info[0] == 2 and info = (2, 7, 0)): +params['test_suite'] = 'tests' +else: +params['tests_require'] = ['unittest2'] +params['test_suite'] = 'unittest2.collector' setup(**params) diff -r d356250e275d -r 3f15152f49e4 tests/support.py --- a/tests/support.py Tue Apr 09 14:53:33 2013 +0100 +++ b/tests/support.py Wed Feb 12 11:20:47 2014 +0100 @@ -1,8 +1,11 @@ import sys -info = sys.version_info -if info[:3] = (3, 2, 0): -# for Python 3.2 ordinary unittest is fine +info = sys.version_info[:3] +inPy3k = info[0] == 3 +with_available = info = (2, 5, 0) + +if info = (3, 2, 0) or (info[0] == 2 and info = (2, 7, 0)): +# for Python 3.2+ or 2.7+ ordinary unittest is fine import unittest as unittest2 else: import unittest2 @@ -15,10 +18,6 @@ return hasattr(obj, '__call__') -inPy3k = sys.version_info[0] == 3 -with_available = sys.version_info[:2] = (2, 5) - - def is_instance(obj, klass): Version of is_instance that doesn't access __class__ return issubclass(type(obj), klass) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2013-10-25 11:22:07 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is python-mock Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2013-01-17 10:02:39.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2013-10-25 11:22:08.0 +0200 @@ -1,0 +2,5 @@ +Thu Oct 24 11:08:50 UTC 2013 - speili...@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +--- Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.7A2yqJ/_old 2013-10-25 11:22:08.0 +0200 +++ /var/tmp/diff_new_pack.7A2yqJ/_new 2013-10-25 11:22:08.0 +0200 @@ -26,7 +26,7 @@ Source: http://pypi.python.org/packages/source/m/mock/mock-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel -BuildRequires: python-distribute +BuildRequires: python-setuptools BuildRequires: python-unittest2 %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())} -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2013-06-19 16:39:51 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is python-mock Changes: Old: python3-mock.changes python3-mock.spec Other differences: -- -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2013-01-17 10:02:38 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is python-mock, Maintainer is r...@suse.com Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2012-11-25 13:50:36.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2013-01-17 10:02:39.0 +0100 @@ -1,0 +2,5 @@ +Fri Jan 11 15:12:13 UTC 2013 - p.drou...@gmail.com + +- Initial python3 support + +--- New Changes file: --- /dev/null 2013-01-09 19:40:42.352580873 +0100 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python3-mock.changes 2013-01-17 10:02:39.0 +0100 @@ -0,0 +1,5 @@ +--- +Fri Jan 11 15:12:29 UTC 2013 - p.drou...@gmail.com + +- Initial python3 support + New: python3-mock.changes python3-mock.spec Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.La8spH/_old 2013-01-17 10:02:40.0 +0100 +++ /var/tmp/diff_new_pack.La8spH/_new 2013-01-17 10:02:40.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-mock # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed ++ python3-mock.spec ++ # # spec file for package python3-mock # # Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/ # Name: python3-mock Version:1.0.1 Release:0 Url:http://www.voidspace.org.uk/python/mock/ Summary:A Python Mocking and Patching Library for Testing License:BSD-3-Clause Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/m/mock/mock-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python3 BuildRequires: python3-devel BuildRequires: python3-distribute BuildRequires: python3-unittest2 BuildArch: noarch %description mock is a Python module that provides a core Mock class. It removes the need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set needed attributes in the normal way. %prep %setup -q -n mock-%{version} rm -rf html/.doctrees # Remove junk %build python3 setup.py build %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} %check unit2-python%{py3_ver} discover %files %defattr(-,root,root,-) %doc README.txt html %{python3_sitelib}/* %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-mock for openSUSE:Factory
Hello community, here is the log from the commit of package python-mock for openSUSE:Factory checked in at 2012-03-11 20:04:59 Comparing /work/SRC/openSUSE:Factory/python-mock (Old) and /work/SRC/openSUSE:Factory/.python-mock.new (New) Package is python-mock, Maintainer is r...@suse.com Changes: --- /work/SRC/openSUSE:Factory/python-mock/python-mock.changes 2011-09-23 12:42:59.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2012-03-11 20:05:01.0 +0100 @@ -1,0 +2,6 @@ +Sat Mar 10 16:54:44 UTC 2012 - sasc...@gmx.de + +- Update to version 0.8.0: + - See docs/changelog.txt for details + +--- Old: mock-0.7.2.tar.gz New: mock-0.8.0.tar.gz Other differences: -- ++ python-mock.spec ++ --- /var/tmp/diff_new_pack.DD2fnp/_old 2012-03-11 20:05:02.0 +0100 +++ /var/tmp/diff_new_pack.DD2fnp/_new 2012-03-11 20:05:02.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-mock # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products 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,10 +16,9 @@ # - Name: python-mock -Version:0.7.2 -Release:1 +Version:0.8.0 +Release:0 Url:http://www.voidspace.org.uk/python/mock/ Summary:A Python Mocking and Patching Library for Testing License:BSD-3-Clause @@ -29,13 +28,11 @@ BuildRequires: python-devel BuildRequires: python-distribute BuildRequires: python-unittest2 -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} 1110 +%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 %endif -%endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c from distutils.sysconfig import get_python_lib; print get_python_lib())} %description mock is a Python module that provides a core Mock class. It removes the need ++ mock-0.7.2.tar.gz - mock-0.8.0.tar.gz ++ 25878 lines of diff (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org