From 169ec4317c2edab7782adcc0e557533e69fe0361db79949f6bc41df22e6c3a64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 2 May 2020 12:49:16 +0000 Subject: [PATCH] Accepting request 799636 from home:alois:branches:devel:languages:python - Update to version 2.0.1 * Drop python 3.4 support * Fix errors when regex module is available * Cleanup chain matching code - Drop fix-for-regex-2020.1.7.patch (merged upstream) OBS-URL: https://build.opensuse.org/request/show/799636 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rebulk?expand=0&rev=24 --- fix-for-regex-2020.1.7.patch | 21 --------------------- python-rebulk.changes | 9 +++++++++ python-rebulk.spec | 6 ++---- rebulk-2.0.0.tar.gz | 3 --- rebulk-2.0.1.tar.gz | 3 +++ 5 files changed, 14 insertions(+), 28 deletions(-) delete mode 100644 fix-for-regex-2020.1.7.patch delete mode 100644 rebulk-2.0.0.tar.gz create mode 100644 rebulk-2.0.1.tar.gz diff --git a/fix-for-regex-2020.1.7.patch b/fix-for-regex-2020.1.7.patch deleted file mode 100644 index 4c2224b..0000000 --- a/fix-for-regex-2020.1.7.patch +++ /dev/null @@ -1,21 +0,0 @@ -From: Antonio Larrosa -Subject: Fix for incompatible changes in python-regex 2020.1.7 - -See the comments on https://github.com/Toilal/rebulk/issues/20 - -This fixes also https://github.com/pymedusa/Medusa/issues/7743 -and https://github.com/Diaoul/subliminal/issues/992 - -Index: rebulk-2.0.0/rebulk/loose.py -=================================================================== ---- rebulk-2.0.0.orig/rebulk/loose.py -+++ rebulk-2.0.0/rebulk/loose.py -@@ -56,7 +56,7 @@ def call(function, *args, **kwargs): - :rtype: object - """ - func = constructor_args if isclass(function) else function_args -- call_args, call_kwargs = func(function, *args, **kwargs) -+ call_args, call_kwargs = func(function, *args, ignore_unused=True, **kwargs) - return function(*call_args, **call_kwargs) - - diff --git a/python-rebulk.changes b/python-rebulk.changes index e823d4a..0e3ae6e 100644 --- a/python-rebulk.changes +++ b/python-rebulk.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat May 2 07:49:27 UTC 2020 - Luigi Baldoni + +- Update to version 2.0.1 + * Drop python 3.4 support + * Fix errors when regex module is available + * Cleanup chain matching code +- Drop fix-for-regex-2020.1.7.patch (merged upstream) + ------------------------------------------------------------------- Tue Apr 21 09:54:25 UTC 2020 - Antonio Larrosa diff --git a/python-rebulk.spec b/python-rebulk.spec index 7aed114..ebf31a0 100644 --- a/python-rebulk.spec +++ b/python-rebulk.spec @@ -18,13 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-rebulk -Version: 2.0.0 +Version: 2.0.1 Release: 0 Summary: Library for defining bulk search patterns to perform advanced string matching License: MIT URL: https://github.com/Toilal/rebulk Source0: https://files.pythonhosted.org/packages/source/r/rebulk/rebulk-%{version}.tar.gz -Patch0: fix-for-regex-2020.1.7.patch BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -43,8 +42,7 @@ It includes some features like Patterns, Match, Rule that allow building a custom and complex string matcher. %prep -%setup -q -n rebulk-%{version} -%patch0 -p1 +%autosetup -n rebulk-%{version} # Remove shebang from non-executable files for i in {'builder','chain','debug','formatters','__init__','introspector','loose','match','pattern','processors','rebulk','remodule','rules','toposort','utils','validators','__version__'}; do diff --git a/rebulk-2.0.0.tar.gz b/rebulk-2.0.0.tar.gz deleted file mode 100644 index bcb1087..0000000 --- a/rebulk-2.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1b0d526859ef3e8647f37c606d7ae7c32259e370b3f1519e4219a3ba72740aec -size 257112 diff --git a/rebulk-2.0.1.tar.gz b/rebulk-2.0.1.tar.gz new file mode 100644 index 0000000..9694320 --- /dev/null +++ b/rebulk-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:320ded3cc456347d828f95e9aa5f8bab77ac01943cad024c06012069fe19690a +size 258115