Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-fire for openSUSE:Factory checked in at 2022-03-17 17:01:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-fire (Old) and /work/SRC/openSUSE:Factory/.python-fire.new.25692 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fire" Thu Mar 17 17:01:30 2022 rev:11 rq:962274 version:0.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-fire/python-fire.changes 2021-03-12 13:33:34.170346856 +0100 +++ /work/SRC/openSUSE:Factory/.python-fire.new.25692/python-fire.changes 2022-03-17 17:01:38.381691847 +0100 @@ -1,0 +2,8 @@ +Wed Mar 16 12:52:10 UTC 2022 - pgaj...@suse.com + +- do not require python-mock for build +- added patches + fix https://github.com/google/python-fire/pull/265/files + + python-fire-no-mock.patch + +------------------------------------------------------------------- New: ---- python-fire-no-mock.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-fire.spec ++++++ --- /var/tmp/diff_new_pack.NIqdMH/_old 2022-03-17 17:01:38.945692278 +0100 +++ /var/tmp/diff_new_pack.NIqdMH/_new 2022-03-17 17:01:38.953692285 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-fire # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-fire Version: 0.4.0 Release: 0 @@ -24,6 +25,8 @@ License: Apache-2.0 URL: https://github.com/google/python-fire Source: https://files.pythonhosted.org/packages/source/f/fire/fire-%{version}.tar.gz +# https://github.com/google/python-fire/pull/265/files +Patch0: python-fire-no-mock.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -33,7 +36,6 @@ # SECTION test requirements BuildRequires: %{python_module Levenshtein} BuildRequires: %{python_module hypothesis} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} BuildRequires: %{python_module termcolor} ++++++ python-fire-no-mock.patch ++++++ Index: fire-0.4.0/fire/core_test.py =================================================================== --- fire-0.4.0.orig/fire/core_test.py 2020-04-03 19:14:51.000000000 +0200 +++ fire-0.4.0/fire/core_test.py 2022-03-16 13:48:27.568077390 +0100 @@ -22,7 +22,11 @@ from fire import core from fire import test_components as tc from fire import testutils from fire import trace -import mock + +try: + import mock # python 2.x +except ModuleNotFoundError: + from unittest import mock # python 3.x import six Index: fire-0.4.0/fire/fire_import_test.py =================================================================== --- fire-0.4.0.orig/fire/fire_import_test.py 2022-03-16 13:48:27.568077390 +0100 +++ fire-0.4.0/fire/fire_import_test.py 2022-03-16 13:51:27.561140579 +0100 @@ -18,7 +18,11 @@ import sys import fire from fire import testutils -import mock + +try: + import mock # python 2.x +except ModuleNotFoundError: + from unittest import mock # python 3.x class FireImportTest(testutils.BaseTestCase): Index: fire-0.4.0/fire/fire_test.py =================================================================== --- fire-0.4.0.orig/fire/fire_test.py 2020-12-17 01:20:39.000000000 +0100 +++ fire-0.4.0/fire/fire_test.py 2022-03-16 13:48:27.568077390 +0100 @@ -25,7 +25,10 @@ import fire from fire import test_components as tc from fire import testutils -import mock +try: + import mock # python 2.x +except ModuleNotFoundError: + from unittest import mock # python 3.x import six Index: fire-0.4.0/fire/interact_test.py =================================================================== --- fire-0.4.0.orig/fire/interact_test.py 2022-03-16 13:48:27.568077390 +0100 +++ fire-0.4.0/fire/interact_test.py 2022-03-16 13:50:36.080836493 +0100 @@ -21,8 +21,10 @@ from __future__ import print_function from fire import interact from fire import testutils -import mock - +try: + import mock # python 2.x +except ModuleNotFoundError: + from unittest import mock # python 3.x try: import IPython # pylint: disable=unused-import, g-import-not-at-top Index: fire-0.4.0/fire/testutils.py =================================================================== --- fire-0.4.0.orig/fire/testutils.py 2020-12-17 01:20:39.000000000 +0100 +++ fire-0.4.0/fire/testutils.py 2022-03-16 13:48:27.568077390 +0100 @@ -28,7 +28,10 @@ import unittest from fire import core from fire import trace -import mock +try: + import mock # python 2.x +except ModuleNotFoundError: + from unittest import mock # python 3.x import six