Hello community,

here is the log from the commit of package python-extras for openSUSE:Factory 
checked in at 2020-06-21 18:50:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-extras (Old)
 and      /work/SRC/openSUSE:Factory/.python-extras.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-extras"

Sun Jun 21 18:50:05 2020 rev:14 rq:813481 version:1.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-extras/python-extras.changes      
2019-11-04 17:10:22.468515480 +0100
+++ /work/SRC/openSUSE:Factory/.python-extras.new.3606/python-extras.changes    
2020-06-21 19:04:36.536656815 +0200
@@ -1,0 +2,6 @@
+Wed Jun 10 09:07:14 UTC 2020 - Marketa Calabkova <[email protected]>
+
+- replace nose
+- enable testing by default with multibuild
+
+-------------------------------------------------------------------

New:
----
  _multibuild

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

Other differences:
------------------
++++++ python-extras.spec ++++++
--- /var/tmp/diff_new_pack.2poYkd/_old  2020-06-21 19:04:36.952658165 +0200
+++ /var/tmp/diff_new_pack.2poYkd/_new  2020-06-21 19:04:36.956658178 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-extras
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,10 +17,16 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-# A build cycle exists between python-extras and python-testtools. Thus, only
-# enable testing with a build conditional (off by default):
-%bcond_with tests
-Name:           python-extras
+# A build cycle exists between python-extras and python-testtools.
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name:           python-extras%{psuffix}
 Version:        1.0.0
 Release:        0
 Summary:        Extra bits for Python
@@ -34,8 +40,7 @@
 #!BuildIgnore:  python-extras
 BuildArch:      noarch
 # Test requirements:
-%if %{with tests}
-BuildRequires:  %{python_module nose}
+%if %{with test}
 BuildRequires:  %{python_module testtools}
 %endif
 %python_subpackages
@@ -52,18 +57,22 @@
 %python_build
 
 %install
+%if !%{with test}
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
-%if %{with tests}
+%if %{with test}
 %check
-%python_exec %{_bindir}/nosetests
+%python_exec -m unittest discover
 %endif
 
+%if !%{with test}
 %files %{python_files}
 %license LICENSE
 %doc NEWS README.rst
 %{python_sitelib}/extras
 %{python_sitelib}/extras-%{version}-py%{python_version}.egg-info/
+%endif
 
 %changelog

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

Reply via email to