diff --git a/fix-issue-164.patch b/fix-issue-164.patch new file mode 100644 index 0000000..e176d7d --- /dev/null +++ b/fix-issue-164.patch @@ -0,0 +1,57 @@ +From 2cc070bb50577ec45fae640b56e02c69feb6f82c Mon Sep 17 00:00:00 2001 +From: Andrew Au +Date: Fri, 22 Feb 2019 16:23:03 -0800 +Subject: [PATCH] Fix issue 164 + +--- + fire/helputils_test.py | 1 - + fire/inspectutils.py | 10 ++++++---- + fire/inspectutils_test.py | 2 -- + 3 files changed, 6 insertions(+), 7 deletions(-) + +diff --git a/fire/helputils_test.py b/fire/helputils_test.py +index 0557122..c3d5055 100644 +--- a/fire/helputils_test.py ++++ b/fire/helputils_test.py +@@ -88,7 +88,6 @@ def testHelpStringBuiltin(self): + helpstring = helputils.HelpString('test'.upper) + self.assertIn('Type: builtin_function_or_method', helpstring) + self.assertIn('String form: + +- Add fix-issue-164.patch patch to fix gh#google/python-fire#164 + and we can run whole test suite. + ------------------------------------------------------------------- Thu Feb 7 21:02:37 CET 2019 - Matej Cepl diff --git a/python-fire.spec b/python-fire.spec index f483901..b8afac3 100644 --- a/python-fire.spec +++ b/python-fire.spec @@ -25,6 +25,7 @@ License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/google/python-fire Source: https://files.pythonhosted.org/packages/source/f/fire/fire-%{version}.tar.gz +Patch0: fix-issue-164.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -45,6 +46,7 @@ interfaces (CLIs) from a Python object. %prep %setup -q -n fire-%{version} +%autopatch -p1 %build %python_build @@ -54,8 +56,7 @@ interfaces (CLIs) from a Python object. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# gh#google/python-fire#164 -%python_expand pytest-%{$python_bin_suffix} -k 'not (testFireKeywordArgs or testFireObjectWithDict or testHelpStringBuiltin or testGetFullArgSpecFromBuiltin)' fire +%python_expand pytest-%{$python_bin_suffix} -v fire %files %{python_files} %license LICENSE