Hello community,

here is the log from the commit of package python-rebulk for openSUSE:Leap:15.2 
checked in at 2020-04-25 19:07:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-rebulk (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-rebulk.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-rebulk"

Sat Apr 25 19:07:29 2020 rev:13 rq:797233 version:2.0.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-rebulk/python-rebulk.changes    
2020-01-15 15:52:35.355568530 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-rebulk.new.2738/python-rebulk.changes  
2020-04-25 19:07:58.935969488 +0200
@@ -1,0 +2,9 @@
+Tue Apr 21 09:54:25 UTC 2020 - Antonio Larrosa <[email protected]>
+
+- Add patch to fix an incompatible change introduced in
+  python-regex 2020.1.7, where unused arguments now raise an
+  exception:
+  * fix-for-regex-2020.1.7.patch
+- Use %pytest in %check section
+
+-------------------------------------------------------------------

New:
----
  fix-for-regex-2020.1.7.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-rebulk.spec ++++++
--- /var/tmp/diff_new_pack.26KFTn/_old  2020-04-25 19:08:01.835975723 +0200
+++ /var/tmp/diff_new_pack.26KFTn/_new  2020-04-25 19:08:01.835975723 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-rebulk
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,12 +24,14 @@
 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}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildArch:      noarch
+Recommends:     python-regex
 %python_subpackages
 
 %description
@@ -42,6 +44,8 @@
 
 %prep
 %setup -q -n rebulk-%{version}
+%patch0 -p1
+
 # 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
 sed -i -e "1d" "rebulk/$i.py"
@@ -59,9 +63,7 @@
 
 %check
 export PYTHONDONTWRITEBYTECODE=1
-%{python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}
-py.test-%{$python_version} rebulk/test/
-}
+%pytest rebulk/test/
 
 %files %{python_files}
 %doc README.rst

++++++ fix-for-regex-2020.1.7.patch ++++++
From: Antonio Larrosa <[email protected]>
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)
 
 

Reply via email to