Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-testscenarios for 
openSUSE:Factory checked in at 2025-05-03 20:57:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-testscenarios (Old)
 and      /work/SRC/openSUSE:Factory/.python-testscenarios.new.30101 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-testscenarios"

Sat May  3 20:57:56 2025 rev:10 rq:1273923 version:0.5.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-testscenarios/python-testscenarios.changes    
    2023-04-22 21:58:42.352587058 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-testscenarios.new.30101/python-testscenarios.changes
     2025-05-03 20:58:00.831201079 +0200
@@ -1,0 +2,6 @@
+Fri May  2 07:13:53 UTC 2025 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Sprinkle in multibuild to break a cycle.
+- Switch to pyproject macros.
+
+-------------------------------------------------------------------

New:
----
  _multibuild

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

Other differences:
------------------
++++++ python-testscenarios.spec ++++++
--- /var/tmp/diff_new_pack.JtS0lu/_old  2025-05-03 20:58:01.499229239 +0200
+++ /var/tmp/diff_new_pack.JtS0lu/_new  2025-05-03 20:58:01.499229239 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-testscenarios
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,16 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
 %{?sle15_python_module_pythons}
-Name:           python-testscenarios
+Name:           python-testscenarios%{psuffix}
 Version:        0.5.0
 Release:        0
 Summary:        A pyunit extension for dependency injection
@@ -26,10 +33,12 @@
 URL:            https://launchpad.net/testscenarios
 Source:         
https://files.pythonhosted.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz
 BuildRequires:  %{python_module pbr >= 0.11}
-# Tests cause a dependency loop
-#BuildRequires:  %%{python_module extras}
-#BuildRequires:  %%{python_module nose}
-#BuildRequires:  %%{python_module testtools}
+BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module wheel}
+%if %{with test}
+BuildRequires:  %{python_module extras}
+BuildRequires:  %{python_module testscenarios = %{version}}
+%endif
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-pbr >= 0.11
@@ -48,21 +57,28 @@
 %setup -q -n testscenarios-%{version}
 
 %build
-%python_build
+%if !%{with test}
+%pyproject_wheel
+%endif
 
 %install
-%python_install
+%if !%{with test}
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
-# Tests introduce dependency loop with python-testtools
-#%%check
-#%%{python_expand PYTHONPATH=%%{buildroot}%{$python_sitelib}
-#  $python -m testtools.run testscenarios.test_suite
-#}
+%check
+%if %{with test}
+%{python_expand PYTHONPATH=%%{buildroot}%{$python_sitelib}
+  $python -m testtools.run testscenarios.test_suite
+}
+%endif
 
+%if !%{with test}
 %files %{python_files}
 %license COPYING
 %doc Apache-2.0 BSD GOALS HACKING NEWS README
 %{python_sitelib}/testscenarios
-%{python_sitelib}/testscenarios-%{version}-py%{python_version}.egg-info
+%{python_sitelib}/testscenarios-%{version}.dist-info
+%endif
 

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

Reply via email to