Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-watchfiles for 
openSUSE:Factory checked in at 2026-06-30 15:14:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-watchfiles (Old)
 and      /work/SRC/openSUSE:Factory/.python-watchfiles.new.11887 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-watchfiles"

Tue Jun 30 15:14:06 2026 rev:8 rq:1362612 version:1.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-watchfiles/python-watchfiles.changes      
2025-11-06 18:19:08.274493711 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-watchfiles.new.11887/python-watchfiles.changes
   2026-06-30 15:14:30.174214262 +0200
@@ -1,0 +2,6 @@
+Thu Jun 18 10:55:34 UTC 2026 - Jordi Massaguer <[email protected]>
+
+- Split test package and use multibuild, so that the test package
+  can be excluded from the build. 
+
+-------------------------------------------------------------------

New:
----
  _multibuild

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

Other differences:
------------------
++++++ python-watchfiles.spec ++++++
--- /var/tmp/diff_new_pack.ZNu7GD/_old  2026-06-30 15:14:31.766268306 +0200
+++ /var/tmp/diff_new_pack.ZNu7GD/_new  2026-06-30 15:14:31.790269120 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-watchfiles
 #
-# Copyright (c) 2025 SUSE LLC and contributors
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -14,15 +14,25 @@
 
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
-
+### MULTIBUILD FLAVOR HANDLING ###
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+##################################
 
 %if 0%{?suse_version} > 1500
 %bcond_without libalternatives
 %else
 %bcond_with libalternatives
 %endif
+
 %{?sle15_python_module_pythons}
-Name:           python-watchfiles
+Name:           python-watchfiles%{psuffix}
 Version:        1.1.1
 Release:        0
 Summary:        File watching and code reload in python
@@ -46,13 +56,19 @@
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 %endif
-# SECTION test
+
+# SECTION test requirements
+%if %{with test}
 BuildRequires:  %{python_module dirty-equals}
 BuildRequires:  %{python_module pytest-mock}
 BuildRequires:  %{python_module pytest-pretty}
 BuildRequires:  %{python_module pytest-timeout}
 BuildRequires:  %{python_module pytest}
+# The test flavor requires the main package built by the primary run
+BuildRequires:  %{python_module watchfiles = %{version}}
+%endif
 # /SECTION
+
 %python_subpackages
 
 %description
@@ -66,17 +82,28 @@
 sed -i 's/version = "0.0.0"/version = "%{version}"/' Cargo.toml
 
 %build
+# Only build the wheel if we are not in the test flavor
+%if !%{with test}
 %pyproject_wheel
+%endif
 
 %install
+# Only install binaries and handle alternatives if we are not in the test 
flavor
+%if !%{with test}
 %pyproject_install
 %python_clone -a %{buildroot}%{_bindir}/watchfiles
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
+%endif
 
+# Check block is only executed for the test flavor
+%if %{with test}
 %check
+# Move source out of the way to ensure we test the installed package
 mv watchfiles watchfiles.movedaway
 %pytest_arch
+%endif
 
+%if !%{with test}
 %post
 %python_install_alternative watchfiles
 
@@ -92,4 +119,5 @@
 %python_alternative %{_bindir}/watchfiles
 %{python_sitearch}/watchfiles
 %{python_sitearch}/watchfiles-%{version}*-info
+%endif
 

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

Reply via email to