14
0

Accepting request 671890 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/671890
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mutagen?expand=0&rev=33
This commit is contained in:
Stephan Kulow
2019-02-08 12:46:41 +00:00
committed by Git OBS Bridge
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
From 0ee86ef9d7e06639a388d0638732810b79998608 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Tue, 29 Jan 2019 18:47:16 +0100
Subject: [PATCH] pycodestyle: fix new warnings
---
mutagen/id3/_id3v1.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mutagen/id3/_id3v1.py b/mutagen/id3/_id3v1.py
index cd303a6..40aded2 100644
--- a/mutagen/id3/_id3v1.py
+++ b/mutagen/id3/_id3v1.py
@@ -147,8 +147,8 @@ def fix(data):
elif frame_class["TDRC"]:
frames["TDRC"] = frame_class["TDRC"](encoding=0, text=year)
if comment and frame_class["COMM"]:
- frames["COMM"] = frame_class["COMM"](
- encoding=0, lang="eng", desc="ID3v1 Comment", text=comment)
+ frames["COMM"] = frame_class["COMM"](
+ encoding=0, lang="eng", desc="ID3v1 Comment", text=comment)
# Don't read a track number if it looks like the comment was
# padded with spaces instead of nulls (thanks, WinAmp).

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 5 08:39:55 UTC 2019 - Antonio Larrosa <alarrosa@suse.com>
- Add 0001-pycodestyle-fix-new-warnings.patch from upstream to fix a
pep8 error in the tests that makes the package fail to build.
-------------------------------------------------------------------
Fri Dec 28 03:28:33 UTC 2018 - sean@suspend.net

View File

@@ -27,6 +27,8 @@ URL: https://pypi.python.org/pypi/mutagen
Source: https://files.pythonhosted.org/packages/source/m/mutagen/mutagen-%{version}.tar.gz
# PATCH-FIX-OPENSUSE reduce-test-length.diff alarrosa@suse.com -- Reduce the number of iterations so tests don't take so long to finish
Patch0: reduce-test-length.diff
# PATCH-FIX-UPSTREAM 0001-pycodestyle-fix-new-warnings.patch alarrosa@suse.com -- Fix pep8 test
Patch1: 0001-pycodestyle-fix-new-warnings.patch
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pycodestyle}
BuildRequires: %{python_module pyflakes}
@@ -49,6 +51,7 @@ Ogg streams on an individual packet/page level.
%prep
%setup -q -n mutagen-%{version}
%patch0 -p1
%patch1 -p1
# remove shebangs from library files
find mutagen/ -name "*.py" -exec sed -i -e '/^#!\s\?\/usr\/bin\/\(env\s\)\?python$/d' {} ';'