Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-lark for openSUSE:Factory 
checked in at 2024-01-15 22:10:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-lark (Old)
 and      /work/SRC/openSUSE:Factory/.python-lark.new.21961 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-lark"

Mon Jan 15 22:10:56 2024 rev:8 rq:1138493 version:1.1.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-lark/python-lark.changes  2023-12-21 
23:37:52.196910918 +0100
+++ /work/SRC/openSUSE:Factory/.python-lark.new.21961/python-lark.changes       
2024-01-15 22:11:00.316794908 +0100
@@ -1,0 +2,8 @@
+Sat Jan 13 20:25:08 UTC 2024 - Dirk Müller <[email protected]>
+
+- update to 1.1.9:
+  * Use MAXWIDTH instead of MAXREPEAT when available
+  * Fix nested list markdown syntax in how_to_use.md
+  * Run tests against Python 3.12
+
+-------------------------------------------------------------------

Old:
----
  lark-1.1.8.tar.gz

New:
----
  lark-1.1.9.tar.gz

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

Other differences:
------------------
++++++ python-lark.spec ++++++
--- /var/tmp/diff_new_pack.Izxrna/_old  2024-01-15 22:11:01.128824606 +0100
+++ /var/tmp/diff_new_pack.Izxrna/_new  2024-01-15 22:11:01.128824606 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-lark
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-lark
-Version:        1.1.8
+Version:        1.1.9
 Release:        0
 Summary:        A parsing library for Python
 License:        MIT

++++++ lark-1.1.8.tar.gz -> lark-1.1.9.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lark-1.1.8/.github/workflows/tests.yml 
new/lark-1.1.9/.github/workflows/tests.yml
--- old/lark-1.1.8/.github/workflows/tests.yml  2023-10-23 10:10:46.000000000 
+0200
+++ new/lark-1.1.9/.github/workflows/tests.yml  2024-01-10 09:30:23.000000000 
+0100
@@ -7,7 +7,7 @@
     runs-on: ubuntu-20.04   # See 
https://github.com/actions/setup-python/issues/544
     strategy:
       matrix:
-        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", 
"pypy-3.7"]
+        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", 
"pypy-3.7"]
 
     steps:
       - uses: actions/checkout@v3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lark-1.1.8/docs/how_to_use.md 
new/lark-1.1.9/docs/how_to_use.md
--- old/lark-1.1.8/docs/how_to_use.md   2023-10-23 10:10:46.000000000 +0200
+++ new/lark-1.1.9/docs/how_to_use.md   2024-01-10 09:30:23.000000000 +0100
@@ -12,7 +12,7 @@
 
 4. Use Lark's grammar features to [shape the tree](tree_construction.md): Get 
rid of superfluous rules by inlining them, and use aliases when specific cases 
need clarification.
 
-  - You can perform steps 1-4 repeatedly, gradually growing your grammar to 
include more sentences.
+   You can perform steps 1-4 repeatedly, gradually growing your grammar to 
include more sentences.
 
 5. Create a transformer to evaluate the parse-tree into a structure you'll be 
comfortable to work with. This may include evaluating literals, merging 
branches, or even converting the entire tree into your own set of AST classes.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lark-1.1.8/lark/__init__.py 
new/lark-1.1.9/lark/__init__.py
--- old/lark-1.1.8/lark/__init__.py     2023-10-23 10:10:46.000000000 +0200
+++ new/lark-1.1.9/lark/__init__.py     2024-01-10 09:30:23.000000000 +0100
@@ -14,7 +14,7 @@
 from .utils import logger
 from .visitors import Discard, Transformer, Transformer_NonRecursive, Visitor, 
v_args
 
-__version__: str = "1.1.8"
+__version__: str = "1.1.9"
 
 __all__ = (
     "GrammarError",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lark-1.1.8/lark/utils.py new/lark-1.1.9/lark/utils.py
--- old/lark-1.1.8/lark/utils.py        2023-10-23 10:10:46.000000000 +0200
+++ new/lark-1.1.9/lark/utils.py        2024-01-10 09:30:23.000000000 +0100
@@ -149,11 +149,14 @@
             # sre_parse does not support the new features in regex. To not 
completely fail in that case,
             # we manually test for the most important info (whether the empty 
string is matched)
             c = regex.compile(regexp_final)
+            # Python 3.11.7 introducded sre_parse.MAXWIDTH that is used 
instead of MAXREPEAT
+            # See lark-parser/lark#1376 and python/cpython#109859
+            MAXWIDTH = getattr(sre_parse, "MAXWIDTH", sre_constants.MAXREPEAT)
             if c.match('') is None:
                 # MAXREPEAT is a none pickable subclass of int, therefore 
needs to be converted to enable caching
-                return 1, int(sre_constants.MAXREPEAT)
+                return 1, int(MAXWIDTH)
             else:
-                return 0, int(sre_constants.MAXREPEAT)
+                return 0, int(MAXWIDTH)
 
 ###}
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lark-1.1.8/readthedocs.yml 
new/lark-1.1.9/readthedocs.yml
--- old/lark-1.1.8/readthedocs.yml      2023-10-23 10:10:46.000000000 +0200
+++ new/lark-1.1.9/readthedocs.yml      2024-01-10 09:30:23.000000000 +0100
@@ -2,8 +2,13 @@
 
 formats: all
 
+build:
+  os: ubuntu-22.04
+  tools:
+    python: "3.7"
+
 python:
-   version: 3.7
+   # version: 3.7
    install:
       - requirements: docs/requirements.txt
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lark-1.1.8/tox.ini new/lark-1.1.9/tox.ini
--- old/lark-1.1.8/tox.ini      2023-10-23 10:10:46.000000000 +0200
+++ new/lark-1.1.9/tox.ini      2024-01-10 09:30:23.000000000 +0100
@@ -1,5 +1,5 @@
 [tox]
-envlist = lint, type, py36, py37, py38, py39, py310, py311, pypy3
+envlist = lint, type, py36, py37, py38, py39, py310, py311, py312, pypy3
 skip_missing_interpreters = true
 
 [testenv]

Reply via email to