15
0
forked from pool/python-fire

Accepting request 878440 from devel:languages:python

- Update to 0.4.0:
  * Support for Python 3.8 and Python 3.9
  * Argument types and defaults appear in help text
  * Support for asyncio coroutines
  * Support for modules and Python files with python -m fire
  * Keyword argument info from rst docstrings appears in help text
  * Bug fix for missing parts of multiline argument descriptions from
    Google and Numpy style docstrings.
  * Support functions even when they override getattr in non-standard ways.
- Drop patch subpoint-usage-test.patch, which is no longer required.

OBS-URL: https://build.opensuse.org/request/show/878440
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-fire?expand=0&rev=10
This commit is contained in:
2021-03-12 12:33:30 +00:00
committed by Git OBS Bridge
5 changed files with 19 additions and 26 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9736a16227c3d469e5d2d296bce5b4d8fa8d7851e953bda327a455fc2994307f
size 81162

3
fire-0.4.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c5e2b8763699d1142393a46d0e3e790c5eb2f0706082df8f647878842c216a62
size 87684

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Fri Mar 12 04:41:30 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.4.0:
* Support for Python 3.8 and Python 3.9
* Argument types and defaults appear in help text
* Support for asyncio coroutines
* Support for modules and Python files with python -m fire
* Keyword argument info from rst docstrings appears in help text
* Bug fix for missing parts of multiline argument descriptions from
Google and Numpy style docstrings.
* Support functions even when they override getattr in non-standard ways.
- Drop patch subpoint-usage-test.patch, which is no longer required.
-------------------------------------------------------------------
Thu Sep 17 11:09:09 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-fire
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,14 +18,12 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-fire
Version: 0.3.1
Version: 0.4.0
Release: 0
Summary: A library for automatically generating command line interfaces
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: subpoint-usage-test.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros

View File

@@ -1,19 +0,0 @@
--- 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__':