Hello community, here is the log from the commit of package python-case for openSUSE:Factory checked in at 2018-08-24 17:04:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-case (Old) and /work/SRC/openSUSE:Factory/.python-case.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-case" Fri Aug 24 17:04:12 2018 rev:2 rq:629000 version:1.5.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-case/python-case.changes 2017-04-12 18:19:29.426177665 +0200 +++ /work/SRC/openSUSE:Factory/.python-case.new/python-case.changes 2018-08-24 17:04:13.338079810 +0200 @@ -1,0 +2,6 @@ +Mon Aug 13 14:07:19 UTC 2018 - [email protected] + +- Remove dependency on unittest2 + Add remove_unittest2.patch to facilitate that + +------------------------------------------------------------------- New: ---- remove_unittest2.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-case.spec ++++++ --- /var/tmp/diff_new_pack.bilytu/_old 2018-08-24 17:04:13.778080332 +0200 +++ /var/tmp/diff_new_pack.bilytu/_new 2018-08-24 17:04:13.782080337 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-case # -# 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 @@ -23,25 +23,21 @@ Summary: Python unittest Utilities License: BSD-3-Clause Group: Development/Languages/Python -Url: http://github.com/celery/case -Source: https://pypi.io/packages/source/c/case/case-%{version}.tar.gz +URL: http://github.com/celery/case +Source: https://files.pythonhosted.org/packages/source/c/case/case-%{version}.tar.gz +Patch: remove_unittest2.patch BuildRequires: %{python_module coverage} BuildRequires: %{python_module mock} BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} +BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python2-unittest2 Requires: python-mock >= 2.0 Requires: python-nose >= 1.3.7 Requires: python-setuptools Requires: python-six -%ifpython2 -Requires: python-unittest2 >= 0.5.1 -%endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description @@ -49,19 +45,21 @@ %prep %setup -q -n case-%{version} +%autopatch -p1 %build %python_build %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec setup.py test -%files %python_files -%defattr(-,root,root,-) -%doc Changelog LICENSE README.rst +%files %{python_files} +%license LICENSE +%doc Changelog README.rst %{python_sitelib}/* %changelog ++++++ remove_unittest2.patch ++++++ --- a/requirements/py2.txt +++ b/requirements/py2.txt @@ -1,2 +1 @@ -r deps/mock.txt -unittest2>=0.5.1 --- a/case/case.py +++ b/case/case.py @@ -4,21 +4,15 @@ import re import sys import types import warnings +import unittest from contextlib import contextmanager from functools import partial +from unittest.util import safe_repr, unorderable_list_difference from six import string_types, itervalues as values, iteritems as items from . import mock -try: - import unittest # noqa - unittest.skip - from unittest.util import safe_repr, unorderable_list_difference -except AttributeError: - import unittest2 as unittest # noqa - from unittest2.util import safe_repr, unorderable_list_difference # noqa - __all__ = ['Case']
