diff --git a/python-311.patch b/python-311.patch deleted file mode 100644 index caacf14..0000000 --- a/python-311.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 527e42f582849b3c1f73d5d525ae11d9ef21e0df Mon Sep 17 00:00:00 2001 -From: Dmitry Shachnev -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) - diff --git a/python-pytils.changes b/python-pytils.changes index c54da57..fbdc33e 100644 --- a/python-pytils.changes +++ b/python-pytils.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Tue Apr 22 07:30:27 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.4.3 + * Fix invalid escape sequence in numeral.choose_plural.py + * RegExp syntax error + * Remove redundant (?u) inline flags + * The u prefix for strings is no longer necessary in Python >= 3.0 +- from version 0.4.2 + * (identical to version 0.4.3) +- Drop python-311.patch, merged upstream +- Switch build system from setuptools to pyproject.toml + * Add python-pip and python-wheel to BuildRequires + * Replace %python_build with %pyproject_wheel + * Replace %python_install with %pyproject_install +- Update BuildRequires from pyproject.toml +- Use Python 3.11 on SLE-15 by default + ------------------------------------------------------------------- Tue Feb 21 09:48:12 UTC 2023 - Daniel Garcia diff --git a/python-pytils.spec b/python-pytils.spec index 2dbdfe5..9f1b27e 100644 --- a/python-pytils.spec +++ b/python-pytils.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytils # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,19 @@ # +%{?sle15_python_module_pythons} Name: python-pytils -Version: 0.4.1 +Version: 0.4.3 Release: 0 Summary: A Russian-specific string utility module License: MIT 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 pip} +BuildRequires: %{python_module poetry-core} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -41,10 +43,10 @@ transliteration, etc.) %autosetup -p1 -n pytils-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check diff --git a/pytils-0.4.1.tar.gz b/pytils-0.4.1.tar.gz deleted file mode 100644 index dbf6db8..0000000 --- a/pytils-0.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa109b1bc0ec4bdb7c9768520110348d8aeb0706600e6cf641272e6850e26eab -size 99144 diff --git a/pytils-0.4.3.tar.gz b/pytils-0.4.3.tar.gz new file mode 100644 index 0000000..a1b015e --- /dev/null +++ b/pytils-0.4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4828464cdb54b344843cfc5a7ed5cf5c605cb7e72e46a58b6ed2885568f301e5 +size 101364