14
0
forked from pool/python-rebulk

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
This commit is contained in:
Tomáš Chvátal
2020-05-02 12:49:16 +00:00
committed by Git OBS Bridge
parent fc2e0043b0
commit 169ec4317c
5 changed files with 14 additions and 28 deletions

View File

@@ -1,21 +0,0 @@
From: Antonio Larrosa <alarrosa@suse.com>
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)

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Sat May 2 07:49:27 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
- 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 <alarrosa@suse.com>

View File

@@ -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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1b0d526859ef3e8647f37c606d7ae7c32259e370b3f1519e4219a3ba72740aec
size 257112

3
rebulk-2.0.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:320ded3cc456347d828f95e9aa5f8bab77ac01943cad024c06012069fe19690a
size 258115