Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-MarkupSafe for 
openSUSE:Factory checked in at 2025-02-20 16:28:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-MarkupSafe (Old)
 and      /work/SRC/openSUSE:Factory/.python-MarkupSafe.new.1873 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-MarkupSafe"

Thu Feb 20 16:28:59 2025 rev:32 rq:1247287 version:2.1.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-MarkupSafe/python-MarkupSafe.changes      
2024-12-06 14:25:29.658243838 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-MarkupSafe.new.1873/python-MarkupSafe.changes
    2025-02-20 16:30:10.896439625 +0100
@@ -1,0 +2,6 @@
+Thu Feb 20 08:14:24 UTC 2025 - Dirk Müller <dmuel...@suse.com>
+
+- split test dependencies into a multibuild to break cycle
+  with pytest
+
+-------------------------------------------------------------------

New:
----
  _multibuild

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

Other differences:
------------------
++++++ python-MarkupSafe.spec ++++++
--- /var/tmp/diff_new_pack.x5ifOR/_old  2025-02-20 16:30:11.564467583 +0100
+++ /var/tmp/diff_new_pack.x5ifOR/_new  2025-02-20 16:30:11.568467750 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-MarkupSafe
 #
-# Copyright (c) 2024 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 @@
 #
 
 
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -%{flavor}
 %bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
 %{?sle15_python_module_pythons}
-Name:           python-MarkupSafe
+Name:           python-MarkupSafe%{psuffix}
 Version:        2.1.5
 Release:        0
 Summary:        Implements a XML/HTML/XHTML Markup safe string for Python
@@ -28,11 +35,13 @@
 Source:         
https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-base >= 3.6
 %if %{with test}
+BuildRequires:  %{python_module MarkupSafe >= %{version}}
 BuildRequires:  %{python_module pytest}
 %endif
 %python_subpackages
@@ -48,22 +57,28 @@
 sed -i -e '/^python_requires =/s/3\.7/3\.6/' setup.cfg
 
 %build
+%if !%{with test}
 export CFLAGS="%{optflags}"
 %pyproject_wheel
+%endif
 
 %install
+%if !%{with test}
 %pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 %python_expand rm %{buildroot}%{$python_sitearch}/markupsafe/_speedups.c
+%endif
 
 %if %{with test}
 %check
 %pytest_arch
 %endif
 
+%if !%{with test}
 %files %{python_files}
 %license LICENSE.rst
 %doc README.rst docs/
 %{python_sitearch}/markupsafe/
 %{python_sitearch}/MarkupSafe-%{version}.dist-info
+%endif
 

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

Reply via email to