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.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-mock.new/python-mock.changes 2014-02-13 15:10:47.000000000 +0100
@@ -1,0 +2,12 @@
+Wed Feb 12 10:30:21 UTC 2014 - speilicke@suse.com
+
+- Replace python27x.diff with mock-unittest2py27.patch
+- Rather use "setup.py test"
+
+-------------------------------------------------------------------
+Mon Feb 10 17:01:11 UTC 2014 - dmueller@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.000000000 +0100
+++ /var/tmp/diff_new_pack.q1Owdo/_new 2014-02-13 15:10:48.000000000 +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 speilicke@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