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 <[email protected]>
+
+- 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 ++++++
<multibuild>
  <package>test</package>
</multibuild>

Reply via email to