Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-html5lib for openSUSE:Factory 
checked in at 2025-12-02 13:18:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-html5lib (Old)
 and      /work/SRC/openSUSE:Factory/.python-html5lib.new.14147 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-html5lib"

Tue Dec  2 13:18:21 2025 rev:29 rq:1320257 version:1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-html5lib/python-html5lib.changes  
2025-11-05 16:19:44.485702417 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-html5lib.new.14147/python-html5lib.changes   
    2025-12-02 13:18:32.066767794 +0100
@@ -1,0 +2,7 @@
+Wed Nov 26 23:48:39 UTC 2025 - Steve Kowalik <[email protected]>
+
+- Add patch pytest9.patch:
+  * Balanced on top of the other 2 pytest patches, support pytest 9 changes.
+- Use autosetup macro.
+
+-------------------------------------------------------------------

New:
----
  pytest9.patch

----------(New B)----------
  New:
- Add patch pytest9.patch:
  * Balanced on top of the other 2 pytest patches, support pytest 9 changes.
----------(New E)----------

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

Other differences:
------------------
++++++ python-html5lib.spec ++++++
--- /var/tmp/diff_new_pack.PPcO0L/_old  2025-12-02 13:18:33.050809109 +0100
+++ /var/tmp/diff_new_pack.PPcO0L/_new  2025-12-02 13:18:33.054809277 +0100
@@ -32,11 +32,13 @@
 Patch2:         pytest74.patch
 # PATCH-FIX-UPSTREAM gh#html5lib/html5lib-python#589
 Patch3:         support-python314.patch
+# PATCH-FIX-UPSTREAM Based on gh#html5lib/html5lib-python#590
+Patch4:         pytest9.patch
 BuildRequires:  %{python_module Genshi}
 BuildRequires:  %{python_module lxml}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pip}
-BuildRequires:  %{python_module pytest >= 4.0}
+BuildRequires:  %{python_module pytest >= 7}
 BuildRequires:  %{python_module pytest-expect}
 BuildRequires:  %{python_module setuptools >= 18.5}
 BuildRequires:  %{python_module six >= 1.9}
@@ -62,8 +64,7 @@
 simple custom format
 
 %prep
-%setup -q -n html5lib-%{version}
-%autopatch -p1
+%autosetup -p1 -n html5lib-%{version}
 
 %build
 %pyproject_wheel
@@ -79,5 +80,5 @@
 %license LICENSE
 %doc CHANGES.rst README.rst
 %{python_sitelib}/html5lib/
-%{python_sitelib}/html5lib-%{version}*-info
+%{python_sitelib}/html5lib-%{version}.dist-info
 

++++++ pytest9.patch ++++++
>From b502a5e2b3048a996ada4c4246aafad99d3dd14c Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Thu, 27 Nov 2025 10:44:40 +1100
Subject: [PATCH] Support pytest 9 changes

The old py.path arguments to the hook functions have been removed as of
pytest 9, switch to the shiny new pathlib ones.
---
 html5lib/tests/conftest.py | 18 +++++++++---------
 requirements-test.txt      |  2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)

Index: html5lib-1.1/html5lib/tests/conftest.py
===================================================================
--- html5lib-1.1.orig/html5lib/tests/conftest.py
+++ html5lib-1.1/html5lib/tests/conftest.py
@@ -90,22 +90,22 @@ def pytest_configure(config):
         pytest.exit("\n".join(msgs))
 
 
-def pytest_collect_file(path, parent):
-    dir = os.path.abspath(path.dirname)
+def pytest_collect_file(file_path, parent):
+    dir = file_path.parent
     dir_and_parents = set()
     while dir not in dir_and_parents:
         dir_and_parents.add(dir)
-        dir = os.path.dirname(dir)
+        dir = dir.parent
 
     if _tree_construction in dir_and_parents:
-        if path.ext == ".dat":
-            return TreeConstructionFile.from_parent(parent, fspath=path)
+        if file_path.suffix == ".dat":
+            return TreeConstructionFile.from_parent(parent, path=file_path)
     elif _tokenizer in dir_and_parents:
-        if path.ext == ".test":
-            return TokenizerFile.from_parent(parent, fspath=path)
+        if file_path.suffix == ".test":
+            return TokenizerFile.from_parent(parent, path=file_path)
     elif _sanitizer_testdata in dir_and_parents:
-        if path.ext == ".dat":
-            return SanitizerFile.from_parent(parent, fspath=path)
+        if file_path.suffix == ".dat":
+            return SanitizerFile.from_parent(parent, path=file_path)
 
 
 # Tiny wrapper to allow .from_parent constructors on older pytest for PY27
Index: html5lib-1.1/requirements-test.txt
===================================================================
--- html5lib-1.1.orig/requirements-test.txt
+++ html5lib-1.1/requirements-test.txt
@@ -3,7 +3,7 @@
 tox>=3.15.1,<4
 flake8>=3.8.1,<3.9
 pytest>=4.6.10,<5 ; python_version < '3'
-pytest>=5.4.2,<7 ; python_version >= '3'
+pytest>=7,<10 ; python_version >= '3'
 coverage>=5.1,<6
 pytest-expect>=1.1.0,<2
 mock>=3.0.5,<4 ; python_version < '3.6'

Reply via email to