Hello community,

here is the log from the commit of package python-shortuuid for 
openSUSE:Factory checked in at 2018-09-28 08:52:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-shortuuid (Old)
 and      /work/SRC/openSUSE:Factory/.python-shortuuid.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-shortuuid"

Fri Sep 28 08:52:57 2018 rev:2 rq:638354 version:0.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-shortuuid/python-shortuuid.changes        
2018-06-02 11:58:07.990829961 +0200
+++ /work/SRC/openSUSE:Factory/.python-shortuuid.new/python-shortuuid.changes   
2018-09-28 08:52:58.381766196 +0200
@@ -1,0 +2,7 @@
+Wed Sep 26 09:13:16 UTC 2018 - Tomáš Chvátal <tchva...@suse.com>
+
+- Add patch to not depend on pep8 linter, also reported upstream
+  to fix properly:
+  * shortuuid-no-pep8.patch
+
+-------------------------------------------------------------------

New:
----
  shortuuid-no-pep8.patch

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

Other differences:
------------------
++++++ python-shortuuid.spec ++++++
--- /var/tmp/diff_new_pack.gO7cLV/_old  2018-09-28 08:52:58.853765511 +0200
+++ /var/tmp/diff_new_pack.gO7cLV/_new  2018-09-28 08:52:58.857765506 +0200
@@ -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/
 #
 
 
@@ -23,17 +23,14 @@
 Summary:        A generator library for concise, unambiguous and URL-safe UUIDs
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
-Url:            https://github.com/stochastic-technologies/shortuuid/
+URL:            https://github.com/stochastic-technologies/shortuuid/
 Source:         
https://files.pythonhosted.org/packages/source/s/shortuuid/shortuuid-%{version}.tar.gz
-BuildRequires:  %{python_module devel}
+# https://github.com/skorokithakis/shortuuid/issues/38
+Patch0:         shortuuid-no-pep8.patch
 BuildRequires:  %{python_module setuptools}
-BuildRequires:  python-rpm-macros
-# SECTION test requirements
-BuildRequires:  %{python_module pep8}
-# /SECTION
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -43,6 +40,7 @@
 
 %prep
 %setup -q -n shortuuid-%{version}
+%patch0 -p1
 
 %build
 %python_build

++++++ shortuuid-no-pep8.patch ++++++
Index: shortuuid-0.5.0/setup.py
===================================================================
--- shortuuid-0.5.0.orig/setup.py
+++ shortuuid-0.5.0/setup.py
@@ -32,5 +32,4 @@ setup(
     classifiers=classifiers,
     packages=["shortuuid"],
     test_suite='shortuuid.tests',
-    tests_require=['pep8'],
 )
Index: shortuuid-0.5.0/shortuuid/tests.py
===================================================================
--- shortuuid-0.5.0.orig/shortuuid/tests.py
+++ shortuuid-0.5.0/shortuuid/tests.py
@@ -2,7 +2,6 @@ import os
 import string
 import sys
 import unittest
-import pep8
 from collections import defaultdict
 
 from uuid import UUID, uuid4
@@ -125,16 +124,6 @@ class ClassShortUUIDTest(unittest.TestCa
         su4 = ShortUUID()
         self.assertEqual(su4.encoded_length(num_bytes=8), 11)
 
-    def test_pep8(self):
-        pep8style = pep8.StyleGuide([['statistics', True],
-                                     ['show-sources', True],
-                                     ['repeat', True],
-                                     ['paths', [os.path.dirname(
-                                         os.path.abspath(__file__))]]],
-                                    parse_argv=False)
-        report = pep8style.check_files()
-        assert report.total_errors == 0
-
 
 class ShortUUIDPaddingTest(unittest.TestCase):
     def test_padding(self):

Reply via email to