Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-sugar for 
openSUSE:Factory checked in at 2026-01-21 14:27:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-sugar (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-sugar.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-sugar"

Wed Jan 21 14:27:40 2026 rev:13 rq:1328468 version:1.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-sugar/python-pytest-sugar.changes  
2025-09-15 19:56:03.343036404 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-sugar.new.1928/python-pytest-sugar.changes
        2026-01-21 14:27:42.956788023 +0100
@@ -1,0 +2,6 @@
+Wed Jan 21 10:40:25 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Make it compatible with pytest 9.0. Add upstream patch
+  drop-pytest6-support.patch, gh#Teemu/pytest-sugar@05a1e912fd9f
+
+-------------------------------------------------------------------

New:
----
  _scmsync.obsinfo
  build.specials.obscpio
  drop-pytest6-support.patch

----------(New B)----------
  New:- Make it compatible with pytest 9.0. Add upstream patch
  drop-pytest6-support.patch, gh#Teemu/pytest-sugar@05a1e912fd9f
----------(New E)----------

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

Other differences:
------------------
++++++ python-pytest-sugar.spec ++++++
--- /var/tmp/diff_new_pack.vxKdE9/_old  2026-01-21 14:27:43.708819365 +0100
+++ /var/tmp/diff_new_pack.vxKdE9/_new  2026-01-21 14:27:43.708819365 +0100
@@ -24,6 +24,8 @@
 License:        BSD-3-Clause
 URL:            https://github.com/Frozenball/pytest-sugar
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-sugar/pytest-sugar-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM: drop-pytest6-support.patch 
gh#Teemu/pytest-sugar@05a1e912fd9f
+Patch0:         drop-pytest6-support.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
@@ -40,7 +42,7 @@
 pytest-sugar is a plugin for py.test that shows failures and errors instantly 
and shows a progress bar.
 
 %prep
-%setup -q -n pytest-sugar-%{version}
+%autosetup -p1 -n pytest-sugar-%{version}
 
 %build
 %pyproject_wheel

++++++ _scmsync.obsinfo ++++++
mtime: 1768992084
commit: 9a3029b5c8ef944c36d9ebca6c835b8239f37ebc44b2b8135c072d489c4ebdf3
url: https://src.opensuse.org/python-pytest/python-pytest-sugar.git
revision: 9a3029b5c8ef944c36d9ebca6c835b8239f37ebc44b2b8135c072d489c4ebdf3
projectscmsync: https://src.opensuse.org/python-pytest/_ObsPrj.git

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-01-21 11:42:09.000000000 +0100
@@ -0,0 +1 @@
+.osc

++++++ drop-pytest6-support.patch ++++++
>From 05a1e912fd9f257f30709c7b56dfeef3079e1408 Mon Sep 17 00:00:00 2001
From: Hugo van Kemenade <[email protected]>
Date: Fri, 12 Dec 2025 14:58:47 +0200
Subject: [PATCH] Drop support for pytest 6

---
 .github/workflows/build-and-test.yaml | 4 ++--
 README.md                             | 2 +-
 pyproject.toml                        | 2 +-
 pytest_sugar.py                       | 6 +-----
 setup.py                              | 2 +-
 test_sugar.py                         | 8 ++------
 tox.ini                               | 2 +-
 7 files changed, 9 insertions(+), 17 deletions(-)

Index: pytest-sugar-1.1.1/pytest_sugar.py
===================================================================
--- pytest-sugar-1.1.1.orig/pytest_sugar.py
+++ pytest-sugar-1.1.1/pytest_sugar.py
@@ -287,12 +287,8 @@ class SugarTerminalReporter(TerminalRepo
             ),
             bold=True,
         )
-        if int(pytest.__version__.split(".")[0]) <= 6:
-            hook_call_kwargs = {"startdir": self.startpath}
-        else:
-            hook_call_kwargs = {"start_path": self.startpath}
         lines = self.config.hook.pytest_report_header(
-            config=self.config, **hook_call_kwargs
+            config=self.config, start_path=self.startpath
         )
         lines.reverse()
         for line in flatten(lines):
Index: pytest-sugar-1.1.1/setup.py
===================================================================
--- pytest-sugar-1.1.1.orig/setup.py
+++ pytest-sugar-1.1.1/setup.py
@@ -41,7 +41,7 @@ setup(
     zip_safe=False,
     include_package_data=True,
     platforms="any",
-    install_requires=["pytest>=6.2.0", "termcolor>=2.1.0"],
+    install_requires=["pytest>=7", "termcolor>=2.1.0"],
     extras_require={
         "dev": [
             "black",
Index: pytest-sugar-1.1.1/test_sugar.py
===================================================================
--- pytest-sugar-1.1.1.orig/test_sugar.py
+++ pytest-sugar-1.1.1/test_sugar.py
@@ -114,7 +114,7 @@ class TestTerminalReporter:
     def test_report_header(self, testdir):
         testdir.makeconftest(
             """
-            def pytest_report_header(startdir):
+            def pytest_report_header(start_path):
                 pass
             """
         )

Reply via email to