Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytils for openSUSE:Factory checked in at 2023-02-21 15:36:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytils (Old) and /work/SRC/openSUSE:Factory/.python-pytils.new.22824 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytils" Tue Feb 21 15:36:29 2023 rev:4 rq:1066953 version:0.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytils/python-pytils.changes 2022-10-08 01:25:37.578284880 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytils.new.22824/python-pytils.changes 2023-02-21 15:36:45.412533486 +0100 @@ -1,0 +2,6 @@ +Tue Feb 21 09:48:12 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Add python-311.patch to support python 3.11 + gh#last-partizan/pytils#50 + +------------------------------------------------------------------- New: ---- python-311.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytils.spec ++++++ --- /var/tmp/diff_new_pack.auQCJH/_old 2023-02-21 15:36:47.080543072 +0100 +++ /var/tmp/diff_new_pack.auQCJH/_new 2023-02-21 15:36:47.084543094 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pytils # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytils Version: 0.4.1 Release: 0 @@ -25,6 +24,8 @@ Group: Development/Languages/Python URL: https://github.com/y10h/pytils Source: https://files.pythonhosted.org/packages/source/p/pytils/pytils-%{version}.tar.gz +# PATCH-FIX-UPSTREAM python-311.patch, gh#last-partizan/pytils#50 +Patch0: python-311.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -37,7 +38,7 @@ transliteration, etc.) %prep -%setup -q -n pytils-%{version} +%autosetup -p1 -n pytils-%{version} %build %python_build @@ -53,6 +54,7 @@ %files %{python_files} %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pytils +%{python_sitelib}/pytils-%{version}*-info %changelog ++++++ python-311.patch ++++++ >From 527e42f582849b3c1f73d5d525ae11d9ef21e0df Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev <mity...@gmail.com> Date: Tue, 13 Dec 2022 15:44:05 +0300 Subject: [PATCH] Remove redundant (?u) inline flags They are not needed because we pass re.UNICODE anyway. Also, inline flags not at the start of the expression are invalid starting with Python 3.11. --- pytils/typo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Index: pytils-0.4.1/pytils/typo.py =================================================================== --- pytils-0.4.1.orig/pytils/typo.py +++ pytils-0.4.1/pytils/typo.py @@ -149,13 +149,13 @@ def rl_quotes(x): # оÑкÑÑваÑÑие кавÑÑки ÑÑавÑÑÑÑ Ð¾Ð±ÑÑно вплоÑнÑÑ Ðº ÑÐ»Ð¾Ð²Ñ Ñлева # а закÑÑваÑÑие -- вплоÑнÑÑ ÑпÑава # оÑкÑÑваÑÑие ÑÑÑÑкие кавÑÑки-ÑлоÑки - (re.compile(r'((?:^|\s))(")((?u))', re.UNICODE), '\\1\xab\\3'), + (re.compile(r'((?:^|\s))(")', re.UNICODE), '\\1\xab'), # закÑÑваÑÑие ÑÑÑÑкие кавÑÑки-ÑлоÑки - (re.compile(r'(\S)(")((?u))', re.UNICODE), '\\1\xbb\\3'), + (re.compile(r'(\S)(")', re.UNICODE), '\\1\xbb'), # оÑкÑÑваÑÑие кавÑÑки-лапки, вмеÑÑо одинаÑнÑÑ ÐºÐ°Ð²ÑÑек - (re.compile(r'((?:^|\s))(\')((?u))', re.UNICODE), '\\1\u201c\\3'), + (re.compile(r'((?:^|\s))(\')', re.UNICODE), '\\1\u201c'), # закÑÑваÑÑие кавÑÑки-лапки - (re.compile(r'(\S)(\')((?u))', re.UNICODE), '\\1\u201d\\3'), + (re.compile(r'(\S)(\')', re.UNICODE), '\\1\u201d'), ) return _sub_patterns(patterns, x)