Hello community, here is the log from the commit of package python-fire for openSUSE:Factory checked in at 2019-10-16 09:18:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-fire (Old) and /work/SRC/openSUSE:Factory/.python-fire.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-fire" Wed Oct 16 09:18:58 2019 rev:7 rq:738722 version:0.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-fire/python-fire.changes 2019-09-13 15:04:19.233269463 +0200 +++ /work/SRC/openSUSE:Factory/.python-fire.new.2352/python-fire.changes 2019-10-16 09:18:58.770896314 +0200 @@ -1,0 +2,6 @@ +Tue Oct 15 03:36:44 UTC 2019 - Steve Kowalik <[email protected]> + +- Add subpoint-usage-test.patch, which will change the subpoint usage string + if running under Python 3.8. + +------------------------------------------------------------------- New: ---- subpoint-usage-test.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-fire.spec ++++++ --- /var/tmp/diff_new_pack.yQZGmn/_old 2019-10-16 09:18:59.334894860 +0200 +++ /var/tmp/diff_new_pack.yQZGmn/_new 2019-10-16 09:18:59.338894850 +0200 @@ -25,6 +25,7 @@ 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: subpoint-usage-test.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -47,6 +48,7 @@ %prep %setup -q -n fire-%{version} +%autopatch -p1 %build %python_build ++++++ subpoint-usage-test.patch ++++++ --- fire-0.2.1/fire/helptext_test.py~ 2019-10-15 12:58:44.707467291 +1100 +++ fire-0.2.1/fire/helptext_test.py 2019-10-15 13:00:24.971635944 +1100 @@ -20,6 +20,7 @@ import os import textwrap +import sys from fire import formatting from fire import helptext @@ -430,6 +431,8 @@ t = trace.FireTrace(component, name='SubPoint') usage_output = helptext.UsageText(component, trace=t, verbose=False) expected_output = 'Usage: SubPoint --x=X --y=Y' + if sys.hexversion > 0x03080000: + expected_output = 'Usage: SubPoint <group> | --x=X --y=Y' self.assertIn(expected_output, usage_output) if __name__ == '__main__':
