Hello community, here is the log from the commit of package python-funcsigs for openSUSE:Factory checked in at 2018-08-20 16:16:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-funcsigs (Old) and /work/SRC/openSUSE:Factory/.python-funcsigs.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-funcsigs" Mon Aug 20 16:16:36 2018 rev:5 rq:628868 version:1.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-funcsigs/python-funcsigs.changes 2017-09-12 19:38:52.454438364 +0200 +++ /work/SRC/openSUSE:Factory/.python-funcsigs.new/python-funcsigs.changes 2018-08-20 16:16:38.308587403 +0200 @@ -1,0 +2,6 @@ +Mon Aug 13 08:18:00 UTC 2018 - mc...@suse.com + +- Remove dependency on unittest2 (SUSE only) + Add remove_unittest2.patch to faciliate that. + +------------------------------------------------------------------- New: ---- remove_unittest2.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-funcsigs.spec ++++++ --- /var/tmp/diff_new_pack.2Lvlrn/_old 2018-08-20 16:16:40.336590253 +0200 +++ /var/tmp/diff_new_pack.2Lvlrn/_new 2018-08-20 16:16:40.344590264 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-funcsigs # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,13 +22,14 @@ Summary: Python function signatures from PEP362 License: Apache-2.0 Group: Development/Languages/Python -Url: http://funcsigs.readthedocs.org +URL: http://funcsigs.readthedocs.org Source: https://files.pythonhosted.org/packages/source/f/funcsigs/funcsigs-%{version}.tar.gz +# PATCH-FEATURE-OPENSUSE mc...@suse.com -- remove unittest2 dependency +Patch0: remove_unittest2.patch BuildRequires: fdupes BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-unittest2 BuildRequires: python-rpm-macros +BuildRequires: python-setuptools Provides: python2-funcsigs = %{version} BuildArch: noarch @@ -38,6 +39,7 @@ %prep %setup -q -n funcsigs-%{version} +%patch0 -p1 %build %python2_build @@ -50,8 +52,8 @@ python2 setup.py test %files -%defattr(-,root,root,-) -%doc CHANGELOG LICENSE README.rst +%license LICENSE +%doc CHANGELOG README.rst %{python2_sitelib}/* %changelog ++++++ remove_unittest2.patch ++++++ --- a/setup.py +++ b/setup.py @@ -47,6 +47,5 @@ setup( 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Software Development :: Libraries :: Python Modules' ], - tests_require = ['unittest2'], - test_suite = 'unittest2.collector', + test_suite = 'tests', ) --- a/tests/test_formatannotation.py +++ b/tests/test_formatannotation.py @@ -1,6 +1,6 @@ import funcsigs -import unittest2 as unittest +import unittest class TestFormatAnnotation(unittest.TestCase): def test_string (self): --- a/tests/test_funcsigs.py +++ b/tests/test_funcsigs.py @@ -1,4 +1,4 @@ -import unittest2 as unittest +import unittest import doctest import sys --- a/tests/test_inspect.py +++ b/tests/test_inspect.py @@ -4,10 +4,13 @@ import collections import functools import sys -import unittest2 as unittest +import unittest import funcsigs as inspect +if not hasattr(unittest, 'assertRaisesRegex'): + setattr(unittest.TestCase, 'assertRaisesRegex', + unittest.TestCase.assertRaisesRegexp) class TestSignatureObject(unittest.TestCase): @staticmethod