Hello community, here is the log from the commit of package python-csvkit for openSUSE:Factory checked in at 2018-08-12 20:55:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-csvkit (Old) and /work/SRC/openSUSE:Factory/.python-csvkit.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-csvkit" Sun Aug 12 20:55:13 2018 rev:3 rq:628662 version:1.0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes 2018-07-31 16:00:58.283706564 +0200 +++ /work/SRC/openSUSE:Factory/.python-csvkit.new/python-csvkit.changes 2018-08-12 20:55:22.901468322 +0200 @@ -1,0 +2,6 @@ +Fri Aug 10 15:37:29 UTC 2018 - mc...@suse.com + +- Remove unnecessary unittest2 dependency + (Patch remove-unittest2.patch makes necessary changes) + +------------------------------------------------------------------- New: ---- remove-unittest2.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-csvkit.spec ++++++ --- /var/tmp/diff_new_pack.MDugN4/_old 2018-08-12 20:55:23.541469621 +0200 +++ /var/tmp/diff_new_pack.MDugN4/_new 2018-08-12 20:55:23.541469621 +0200 @@ -25,6 +25,7 @@ Group: Development/Languages/Python Url: https://github.com/wireservice/csvkit Source: https://files.pythonhosted.org/packages/source/c/csvkit/csvkit-%{version}.tar.gz +Patch0: remove-unittest2.patch BuildRequires: %{python_module SQLAlchemy >= 0.9.3} BuildRequires: %{python_module Sphinx >= 1.0.7} BuildRequires: %{python_module aenum} @@ -47,7 +48,6 @@ BuildRequires: %{python_module coverage >= 3.5.1b1} BuildRequires: %{python_module nose >= 1.1.2} BuildRequires: python-mock >= 1.3.0 -BuildRequires: python-unittest2 >= 1.1.0 # /SECTION BuildArch: noarch @@ -60,6 +60,7 @@ %prep %setup -q -n csvkit-%{version} +%autopatch -p1 # find and remove unneeded shebangs find csvkit -name "*.py" | xargs sed -i '1 {/^#!/ d}' ++++++ remove-unittest2.patch ++++++ --- a/tests/test_utilities/test_csvjson.py +++ b/tests/test_utilities/test_csvjson.py @@ -3,6 +3,7 @@ import json import sys +import unittest import six @@ -14,6 +15,11 @@ except ImportError: from csvkit.utilities.csvjson import CSVJSON, launch_new_instance from tests.utils import CSVKitTestCase, EmptyFileTests +if not hasattr(unittest.TestCase, 'assertRegex'): + setattr(unittest.TestCase, 'assertRegex', unittest.TestCase.assertRegexpMatches) + +if not hasattr(unittest.TestCase, 'assertRaisesRegex'): + setattr(unittest.TestCase, 'assertRaisesRegex', unittest.TestCase.assertRaisesRegexp) class TestCSVJSON(CSVKitTestCase, EmptyFileTests): Utility = CSVJSON --- a/tests/test_utilities/test_csvstat.py +++ b/tests/test_utilities/test_csvstat.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import sys +import unittest import agate @@ -12,6 +13,8 @@ except ImportError: from csvkit.utilities.csvstat import CSVStat, launch_new_instance from tests.utils import CSVKitTestCase, ColumnsTests, EmptyFileTests, NamesTests +if not hasattr(unittest.TestCase, 'assertRegex'): + setattr(unittest.TestCase, 'assertRegex', unittest.TestCase.assertRegexpMatches) class TestCSVStat(CSVKitTestCase, ColumnsTests, EmptyFileTests, NamesTests): Utility = CSVStat