Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-zope.testbrowser for 
openSUSE:Factory checked in at 2021-10-13 18:06:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zope.testbrowser (Old)
 and      /work/SRC/openSUSE:Factory/.python-zope.testbrowser.new.2443 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-zope.testbrowser"

Wed Oct 13 18:06:28 2021 rev:13 rq:925088 version:5.5.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-zope.testbrowser/python-zope.testbrowser.changes
  2020-01-21 21:03:26.724935098 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-zope.testbrowser.new.2443/python-zope.testbrowser.changes
        2021-10-13 18:11:19.387767092 +0200
@@ -1,0 +2,10 @@
+Wed Oct 13 12:10:13 UTC 2021 - Matej Cepl <[email protected]>
+
+- Make tests verbose
+
+-------------------------------------------------------------------
+Tue Oct  5 12:40:02 UTC 2021 - [email protected]
+
+- %check: use %pyunittest rpm macro
+
+-------------------------------------------------------------------

New:
----
  _multibuild

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-zope.testbrowser.spec ++++++
--- /var/tmp/diff_new_pack.HRM0QT/_old  2021-10-13 18:11:19.767767687 +0200
+++ /var/tmp/diff_new_pack.HRM0QT/_new  2021-10-13 18:11:19.767767687 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package python-zope.testbrowser
+# spec file
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,15 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name:           python-zope.testbrowser
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name:           python-zope.testbrowser%{psuffix}
 Version:        5.5.1
 Release:        0
 Summary:        Programmable browser for functional black-box tests
@@ -42,10 +50,10 @@
 Suggests:       python-zope.testing
 BuildArch:      noarch
 # SECTION test requirements
+%if %{with test}
 BuildRequires:  %{python_module WSGIProxy2}
 BuildRequires:  %{python_module WebTest >= 2.0.30}
 BuildRequires:  %{python_module beautifulsoup4}
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pytz > dev}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
@@ -53,7 +61,9 @@
 BuildRequires:  %{python_module zope.cachedescriptors}
 BuildRequires:  %{python_module zope.interface}
 BuildRequires:  %{python_module zope.schema}
+BuildRequires:  %{python_module zope.testbrowser}
 BuildRequires:  %{python_module zope.testing}
+%endif
 # /SECTION
 %python_subpackages
 
@@ -68,18 +78,29 @@
 %patch0 -p1
 
 %build
+%if !%{with test}
+sed -i 's:import mock:import unittest.mock as mock:' 
src/zope/testbrowser/tests/test_wsgi.py
 %python_build
+%endif
 
 %install
+%if !%{with test}
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
 %check
-%python_exec setup.py test
+%if %{with test}
+cd src
+%pyunittest -v zope/testbrowser/tests/test_*.py
+# TODO doctests
+%endif
 
 %files %{python_files}
+%if !%{with test}
 %doc CHANGES.rst README.rst
 %license LICENSE.rst
 %{python_sitelib}/*
+%endif
 
 %changelog

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
</multibuild>

Reply via email to