Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-exrex for openSUSE:Factory checked in at 2023-03-12 16:24:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-exrex (Old) and /work/SRC/openSUSE:Factory/.python-exrex.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-exrex" Sun Mar 12 16:24:59 2023 rev:7 rq:1070998 version:0.11.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-exrex/python-exrex.changes 2023-02-28 12:49:19.092733011 +0100 +++ /work/SRC/openSUSE:Factory/.python-exrex.new.31432/python-exrex.changes 2023-03-12 16:26:53.729464857 +0100 @@ -1,0 +2,10 @@ +Sun Mar 12 08:36:45 UTC 2023 - Sebastian Wagner <se...@sebix.at> + +- Update to version 0.11.0: + - Add support for \w and \W + - fix utf-8 + - Fix: Import error sre_parse: sre_parse module was moved in py3.11 +- remove obsolete fix-setup-encoding.patch +- remove obsolete fix-python-3.11.patch + +------------------------------------------------------------------- Old: ---- exrex-0.10.5+git119.tar.gz fix-python-3.11.patch fix-setup-encoding.patch New: ---- exrex-0.11.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-exrex.spec ++++++ --- /var/tmp/diff_new_pack.mJ5PpM/_old 2023-03-12 16:26:54.185466865 +0100 +++ /var/tmp/diff_new_pack.mJ5PpM/_new 2023-03-12 16:26:54.189466882 +0100 @@ -16,21 +16,16 @@ # -%define revision fd1e21ffc7c16fd5637a5c440224766417e840f9 -%define skip_python2 1 Name: python-exrex -Version: 0.10.5+git119 +Version: 0.11.0 Release: 0 Summary: Irregular methods for regular expressions License: AGPL-3.0-or-later Group: Development/Languages/Python URL: https://github.com/asciimoo/exrex #Source: https://files.pythonhosted.org/packages/source/e/exrex/exrex-%%{version}.tar.gz -Source: https://github.com/asciimoo/exrex/archive/%{revision}.tar.gz#/exrex-%{version}.tar.gz -# PATCH-FIX-UPSTREAM fix-setup-encoding.patch -Patch0: https://github.com/asciimoo/exrex/pull/53.patch#/fix-setup-encoding.patch -# PATCH-FIX-UPSTREAM fix-python-3.11.patch -Patch1: https://github.com/asciimoo/exrex/pull/65.patch#/fix-python-3.11.patch +# pypi has no tests +Source: https://github.com/asciimoo/exrex/archive/v%{version}.tar.gz#/exrex-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -44,10 +39,8 @@ A command line tool and python module that generates all or random matching strings to a given regular expression and more. %prep -%setup -q -n exrex-%{revision} +%setup -q -n exrex-%{version} sed -i '1s/^#!.*//' exrex.py -%patch0 -p1 -%patch1 -p1 %build %python_build @@ -71,7 +64,7 @@ %files %{python_files} %{python_sitelib}/exrex* %{python_sitelib}/__pycache__/exrex.* -%{python_sitelib}/exrex-0.10.6*-info +%{python_sitelib}/exrex-%{version}*-info %license COPYING %doc README.md doc/ %python_alternative %{_bindir}/exrex ++++++ exrex-0.10.5+git119.tar.gz -> exrex-0.11.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/exrex-fd1e21ffc7c16fd5637a5c440224766417e840f9/exrex.py new/exrex-0.11.0/exrex.py --- old/exrex-fd1e21ffc7c16fd5637a5c440224766417e840f9/exrex.py 2020-01-03 00:49:51.000000000 +0100 +++ new/exrex-0.11.0/exrex.py 2023-03-08 00:06:21.000000000 +0100 @@ -22,7 +22,11 @@ from future_builtins import map, range except: pass -from re import match, sre_parse, U +from re import match, U +try: + import re._parser as sre_parse +except ImportError: # Python < 3.11 + from re import sre_parse from itertools import tee from random import choice, randint from types import GeneratorType diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/exrex-fd1e21ffc7c16fd5637a5c440224766417e840f9/setup.py new/exrex-0.11.0/setup.py --- old/exrex-fd1e21ffc7c16fd5637a5c440224766417e840f9/setup.py 2020-01-03 00:49:51.000000000 +0100 +++ new/exrex-0.11.0/setup.py 2023-03-08 00:06:21.000000000 +0100 @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import io import os import sys @@ -11,7 +12,7 @@ URL = 'https://github.com/asciimoo/exrex' EMAIL = 'ascii...@gmail.com' AUTHOR = 'Adam Tauber' -VERSION = '0.10.6' +VERSION = '0.11.0' # What packages are required for this module to be executed? REQUIRED = [ @@ -77,7 +78,7 @@ self.status('Pushing git tagsâ¦') os.system('git tag v{0}'.format(about['__version__'])) os.system('git push --tags') - + sys.exit() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/exrex-fd1e21ffc7c16fd5637a5c440224766417e840f9/tests.py new/exrex-0.11.0/tests.py --- old/exrex-fd1e21ffc7c16fd5637a5c440224766417e840f9/tests.py 2020-01-03 00:49:51.000000000 +0100 +++ new/exrex-0.11.0/tests.py 2023-03-08 00:06:21.000000000 +0100 @@ -20,8 +20,12 @@ from exrex import generate, count, getone, CATEGORIES, simplify import re -import sre_parse +try: + import re._parser as sre_parse +except ImportError: # Python < 3.11 + from re import sre_parse from sys import exit, version_info + IS_PY3 = version_info[0] == 3 RS = {