From 2f5a6b9565c7473674b48abcf54a5390f6bbbd6aa15e425f2ac96baf9d4f733e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 1 Mar 2019 09:14:30 +0000 Subject: [PATCH] Accepting request 680396 from home:jayvdb:noflake8 - Remove unnecessary build dependencies on code style linters, by using upstream provided `setup.py test --no-quality`, discarding 0001-pycodestyle-fix-new-warnings.patch OBS-URL: https://build.opensuse.org/request/show/680396 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutagen?expand=0&rev=44 --- 0001-pycodestyle-fix-new-warnings.patch | 24 ------------------------ python-mutagen.changes | 7 +++++++ python-mutagen.spec | 7 +------ 3 files changed, 8 insertions(+), 30 deletions(-) delete mode 100644 0001-pycodestyle-fix-new-warnings.patch diff --git a/0001-pycodestyle-fix-new-warnings.patch b/0001-pycodestyle-fix-new-warnings.patch deleted file mode 100644 index a19aae5..0000000 --- a/0001-pycodestyle-fix-new-warnings.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 0ee86ef9d7e06639a388d0638732810b79998608 Mon Sep 17 00:00:00 2001 -From: Christoph Reiter -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). diff --git a/python-mutagen.changes b/python-mutagen.changes index 79daf2e..85cfe77 100644 --- a/python-mutagen.changes +++ b/python-mutagen.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Mar 1 09:02:30 UTC 2019 - John Vandenberg + +- 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 diff --git a/python-mutagen.spec b/python-mutagen.spec index af29c1c..75e2566 100644 --- a/python-mutagen.spec +++ b/python-mutagen.spec @@ -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)