Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-parsel for openSUSE:Factory 
checked in at 2026-11-16 15:14:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-parsel (Old)
 and      /work/SRC/openSUSE:Factory/.python-parsel.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-parsel"

Mon Nov 16 15:14:31 2026 rev:18 rq:1397816 version:1.12.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-parsel/python-parsel.changes      
2026-09-29 17:55:37.190802811 +0200
+++ /work/SRC/openSUSE:Factory/.python-parsel.new.1251/python-parsel.changes    
2026-11-16 15:14:34.529615779 +0100
@@ -1,0 +2,6 @@
+Mon Nov 16 02:01:40 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-cssselect-1.6.0.patch:
+  * Support changes required by cssselect 1.6.0+.
+
+-------------------------------------------------------------------

New:
----
  support-cssselect-1.6.0.patch

----------(New B)----------
  New:
- Add patch support-cssselect-1.6.0.patch:
  * Support changes required by cssselect 1.6.0+.
----------(New E)----------

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

Other differences:
------------------
++++++ python-parsel.spec ++++++
--- /var/tmp/diff_new_pack.k2EPrB/_old  2026-11-16 15:14:35.974676718 +0100
+++ /var/tmp/diff_new_pack.k2EPrB/_new  2026-11-16 15:14:35.976676803 +0100
@@ -24,6 +24,8 @@
 License:        BSD-3-Clause
 URL:            https://github.com/scrapy/parsel
 Source:         
https://files.pythonhosted.org/packages/source/p/parsel/parsel-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Support cssselect 1.6.0+
+Patch0:         support-cssselect-1.6.0.patch
 BuildRequires:  %{python_module base >= 3.10}
 BuildRequires:  %{python_module hatchling >= 1.27}
 BuildRequires:  %{python_module pip}

++++++ support-cssselect-1.6.0.patch ++++++
--- a/docs/usage.rst
+++ b/docs/usage.rst
@@ -1278,9 +1278,9 @@ On those occasions, use the function 
:func:`~parsel.css2xpath`:
 
     >>> from parsel import css2xpath
     >>> css2xpath('h1.title')
-    "descendant-or-self::h1[@class and contains(concat(' ', 
normalize-space(@class), ' '), ' title ')]"
+    "descendant-or-self::h1[@class and contains(@class, 'title') and 
contains(concat(' ', normalize-space(@class), ' '), ' title ')]"
     >>> css2xpath('.profile-data') + '//h2'
-    "descendant-or-self::*[@class and contains(concat(' ', 
normalize-space(@class), ' '), ' profile-data ')]//h2"
+    "descendant-or-self::*[@class and contains(@class, 'profile-data') and 
contains(concat(' ', normalize-space(@class), ' '), ' profile-data ')]//h2"
 
 As you can see from the examples above, it returns the translated CSS query
 into an XPath expression as a string, which you can use as-is or combine to
--- a/tests/test_selector_csstranslator.py
+++ b/tests/test_selector_csstranslator.py
@@ -200,8 +200,8 @@ class TestGenericTranslator:
 
 def test_css2xpath() -> None:
     expected_xpath = (
-        "descendant-or-self::*[@class and contains("
-        "concat(' ', normalize-space(@class), ' '), ' some-class ')]"
+        "descendant-or-self::*[@class and contains(@class, 'some-class') "
+        "and contains(concat(' ', normalize-space(@class), ' '), ' some-class 
')]"
     )
     assert css2xpath(".some-class") == expected_xpath

Reply via email to