14
0

Accepting request 680397 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/680397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mutagen?expand=0&rev=34
This commit is contained in:
2019-03-04 08:10:19 +00:00
committed by Git OBS Bridge
3 changed files with 8 additions and 30 deletions

View File

@@ -1,24 +0,0 @@
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,10 @@
-------------------------------------------------------------------
Fri Mar 1 09:02:30 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Remove unnecessary build dependencies on code style linters,
by using upstream provided `setup.py test --no-quality`,
discarding 0001-pycodestyle-fix-new-warnings.patch
-------------------------------------------------------------------
Tue Feb 5 08:39:55 UTC 2019 - Antonio Larrosa <alarrosa@suse.com>

View File

@@ -27,11 +27,7 @@ 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}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -51,7 +47,6 @@ 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' {} ';'
@@ -76,7 +71,7 @@ done
%check
export LANG=en_US.UTF-8
#export PATH="$PATH:%%{buildroot}%%{_bindir}"
%python_exec setup.py test
%python_exec setup.py test --no-quality
%files %{python_files}
%defattr(-, root, root, 0755)