Hello community,

here is the log from the commit of package beets for openSUSE:Factory checked 
in at 2019-02-11 21:28:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/beets (Old)
 and      /work/SRC/openSUSE:Factory/.beets.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "beets"

Mon Feb 11 21:28:01 2019 rev:4 rq:673156 version:1.4.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/beets/beets.changes      2018-06-04 
13:23:44.353963873 +0200
+++ /work/SRC/openSUSE:Factory/.beets.new.28833/beets.changes   2019-02-11 
21:28:01.814994951 +0100
@@ -1,0 +2,5 @@
+Sat Feb  9 20:11:03 UTC 2019 - Jaime Marquínez Ferrándiz 
<[email protected]>
+
+- Add fix_python_3_7_compatibility.patch: fix compatibility with python 3.7
+
+-------------------------------------------------------------------

New:
----
  fix_python_3_7_compatibility.patch

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

Other differences:
------------------
++++++ beets.spec ++++++
--- /var/tmp/diff_new_pack.J5Ta6Y/_old  2019-02-11 21:28:02.522994568 +0100
+++ /var/tmp/diff_new_pack.J5Ta6Y/_new  2019-02-11 21:28:02.530994564 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package beets
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -29,6 +29,8 @@
 Patch1:         fix_test_command_line_option_relative_to_working_dir.diff
 # PATCH-FIX-UPSTREAM fix-pathlib-requirement.diff [email protected] - Don't 
require pathlib for tests in python >= 3.4.0
 Patch2:         fix-pathlib-requirement.diff
+# Fix compatibility with python 3.7, should be included in the next version
+Patch3:         fix_python_3_7_compatibility.patch
 BuildRequires:  python3-PyYAML
 BuildRequires:  python3-Unidecode
 BuildRequires:  python3-devel
@@ -111,6 +113,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 python3 setup.py build

++++++ fix_python_3_7_compatibility.patch ++++++
>From 15d44f02a391764da1ce1f239caef819f08beed8 Mon Sep 17 00:00:00 2001
From: Adrian Sampson <[email protected]>
Date: Sun, 22 Jul 2018 12:34:19 -0400
Subject: [PATCH] Fix Python 3.7 compatibility (#2978)

---
 beets/autotag/hooks.py | 8 +++++++-
 docs/changelog.rst     | 2 ++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/beets/autotag/hooks.py b/beets/autotag/hooks.py
index 3615a9333..1c62a54c5 100644
--- a/beets/autotag/hooks.py
+++ b/beets/autotag/hooks.py
@@ -31,6 +31,12 @@
 
 log = logging.getLogger('beets')
 
+# The name of the type for patterns in re changed in Python 3.7.
+try:
+    Pattern = re._pattern_type
+except AttributeError:
+    Pattern = re.Pattern
+
 
 # Classes used to represent candidate options.
 
@@ -433,7 +439,7 @@ def _eq(self, value1, value2):
         be a compiled regular expression, in which case it will be
         matched against `value2`.
         """
-        if isinstance(value1, re._pattern_type):
+        if isinstance(value1, Pattern):
             return bool(value1.match(value2))
         return value1 == value2

Reply via email to