Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-regex for openSUSE:Factory 
checked in at 2024-06-07 15:01:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-regex (Old)
 and      /work/SRC/openSUSE:Factory/.python-regex.new.24587 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-regex"

Fri Jun  7 15:01:53 2024 rev:27 rq:1179137 version:2024.5.15

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-regex/python-regex.changes        
2024-05-03 00:10:41.057165892 +0200
+++ /work/SRC/openSUSE:Factory/.python-regex.new.24587/python-regex.changes     
2024-06-07 15:02:00.824815341 +0200
@@ -1,0 +2,7 @@
+Thu Jun  6 20:28:06 UTC 2024 - Dirk Müller <dmuel...@suse.com>
+
+- update to 2024.5.15:
+  * fix hangs with fuzzy and optionals
+  * Updated for Python 3.13.
+
+-------------------------------------------------------------------

Old:
----
  regex-2024.4.28.tar.gz

New:
----
  regex-2024.5.15.tar.gz

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

Other differences:
------------------
++++++ python-regex.spec ++++++
--- /var/tmp/diff_new_pack.Uvg2BE/_old  2024-06-07 15:02:01.396836180 +0200
+++ /var/tmp/diff_new_pack.Uvg2BE/_new  2024-06-07 15:02:01.400836325 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-regex
-Version:        2024.4.28
+Version:        2024.5.15
 Release:        0
 Summary:        Alternative regular expression module for Python
 License:        Apache-2.0

++++++ regex-2024.4.28.tar.gz -> regex-2024.5.15.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/regex-2024.4.28/PKG-INFO new/regex-2024.5.15/PKG-INFO
--- old/regex-2024.4.28/PKG-INFO        2024-04-28 21:12:39.034421400 +0200
+++ new/regex-2024.5.15/PKG-INFO        2024-05-15 17:54:17.204629700 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: regex
-Version: 2024.4.28
+Version: 2024.5.15
 Summary: Alternative regular expression module, to replace re.
 Home-page: https://github.com/mrabarnett/mrab-regex
 Author: Matthew Barnett
@@ -15,6 +15,7 @@
 Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: 3.11
 Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
 Classifier: Topic :: Scientific/Engineering :: Information Analysis
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Text Processing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/regex-2024.4.28/regex.egg-info/PKG-INFO 
new/regex-2024.5.15/regex.egg-info/PKG-INFO
--- old/regex-2024.4.28/regex.egg-info/PKG-INFO 2024-04-28 21:12:38.000000000 
+0200
+++ new/regex-2024.5.15/regex.egg-info/PKG-INFO 2024-05-15 17:54:17.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: regex
-Version: 2024.4.28
+Version: 2024.5.15
 Summary: Alternative regular expression module, to replace re.
 Home-page: https://github.com/mrabarnett/mrab-regex
 Author: Matthew Barnett
@@ -15,6 +15,7 @@
 Classifier: Programming Language :: Python :: 3.10
 Classifier: Programming Language :: Python :: 3.11
 Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
 Classifier: Topic :: Scientific/Engineering :: Information Analysis
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Text Processing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/regex-2024.4.28/regex_3/_regex.c 
new/regex-2024.5.15/regex_3/_regex.c
--- old/regex-2024.4.28/regex_3/_regex.c        2024-04-28 21:12:38.000000000 
+0200
+++ new/regex-2024.5.15/regex_3/_regex.c        2024-05-15 17:54:14.000000000 
+0200
@@ -50,6 +50,7 @@
 #include "Python.h"
 #include "structmember.h" /* offsetof */
 #include <ctype.h>
+#include <time.h>
 #include "_regex.h"
 #include "pyport.h"
 #include "pythread.h"
@@ -17458,7 +17459,7 @@
 
         /* Has an error occurred, or is it a partial match? */
         if (status < 0)
-            break;
+            goto error;
 
         if (status == RE_ERROR_FAILURE)
             break;
@@ -17478,11 +17479,11 @@
             clear_best_list(&best_list);
             if (!add_to_best_list(state, &best_list, state->match_pos,
               state->text_pos))
-                goto error;
+                goto mem_error;
 
             clear_best_fuzzy_changes(state, &best_changes_list);
             if (!add_best_fuzzy_changes(state, &best_changes_list))
-                goto error;
+                goto mem_error;
         } else if (state->total_errors == fewest_errors) {
             /* This match was as good as the previous matches. Remember this
              * one.
@@ -17490,7 +17491,7 @@
             add_to_best_list(state, &best_list, state->match_pos,
               state->text_pos);
             if (!add_best_fuzzy_changes(state, &best_changes_list))
-                goto error;
+                goto mem_error;
         }
 
         start_pos = state->match_pos;
@@ -17556,6 +17557,9 @@
                         init_match(state);
                         status = basic_match(state, FALSE);
 
+                        if (status < 0)
+                            goto error;
+
                         if (status == RE_ERROR_SUCCESS) {
                             BOOL better = FALSE;
 
@@ -17574,12 +17578,12 @@
                                 save_fuzzy_counts(state, best_fuzzy_counts);
                                 if (!save_fuzzy_changes(state,
                                   &best_fuzzy_changes))
-                                    goto error;
+                                    goto mem_error;
 
                                 best_groups = save_captures(state,
                                   best_groups);
                                 if (!best_groups)
-                                    goto error;
+                                    goto mem_error;
 
                                 best_match_pos = state->match_pos;
                                 best_text_pos = state->text_pos;
@@ -17644,6 +17648,9 @@
                 init_match(state);
                 status = basic_match(state, search);
 
+                if (status < 0)
+                    goto error;
+
                 list = &best_changes_list.lists[0];
                 state->fuzzy_changes.count = list->count;
                 Py_MEMCPY(state->fuzzy_changes.items, list->items,
@@ -17663,10 +17670,13 @@
 
     return status;
 
+mem_error:
+    status = RE_ERROR_MEMORY;
+
 error:
     fini_best_list(state, &best_list);
     fini_best_changes_list(state, &best_changes_list);
-    return RE_ERROR_MEMORY;
+    return status;
 }
 
 /* Performs a match or search from the current text position for an enhanced
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/regex-2024.4.28/regex_3/regex.py 
new/regex-2024.5.15/regex_3/regex.py
--- old/regex-2024.4.28/regex_3/regex.py        2024-04-28 21:12:38.000000000 
+0200
+++ new/regex-2024.5.15/regex_3/regex.py        2024-05-15 17:54:14.000000000 
+0200
@@ -241,7 +241,7 @@
   "VERSION1", "X", "VERBOSE", "W", "WORD", "error", "Regex", "__version__",
   "__doc__", "RegexFlag"]
 
-__version__ = "2.5.142"
+__version__ = "2.5.145"
 
 # --------------------------------------------------------------------
 # Public interface.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/regex-2024.4.28/setup.py new/regex-2024.5.15/setup.py
--- old/regex-2024.4.28/setup.py        2024-04-28 21:12:38.000000000 +0200
+++ new/regex-2024.5.15/setup.py        2024-05-15 17:54:14.000000000 +0200
@@ -1,4 +1,5 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
 from setuptools import setup, Extension
 from os.path import join
 
@@ -7,7 +8,7 @@
 
 setup(
     name='regex',
-    version='2024.4.28',
+    version='2024.5.15',
     description='Alternative regular expression module, to replace re.',
     long_description=long_description,
     long_description_content_type='text/x-rst',
@@ -26,6 +27,7 @@
         'Programming Language :: Python :: 3.10',
         'Programming Language :: Python :: 3.11',
         'Programming Language :: Python :: 3.12',
+        'Programming Language :: Python :: 3.13',
         'Topic :: Scientific/Engineering :: Information Analysis',
         'Topic :: Software Development :: Libraries :: Python Modules',
         'Topic :: Text Processing',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/regex-2024.4.28/tools/build_regex_unicode.py 
new/regex-2024.5.15/tools/build_regex_unicode.py
--- old/regex-2024.4.28/tools/build_regex_unicode.py    2024-04-28 
21:12:38.000000000 +0200
+++ new/regex-2024.5.15/tools/build_regex_unicode.py    2024-05-15 
17:54:14.000000000 +0200
@@ -1,4 +1,4 @@
-#! python3.11
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #
 # This Python script parses the Unicode data files in the UCD.zip file and

Reply via email to