forked from pool/python-argh
Accepting request 655400 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/655400 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argh?expand=0&rev=13
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 5 01:53:34 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Trim rhetorics from descriptions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:45:39 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Remove superfluous devel dependency for noarch package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 24 17:32:13 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-argh
|
||||
#
|
||||
# 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
|
||||
@@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@@ -22,14 +22,13 @@
|
||||
Name: python-argh
|
||||
Version: 0.26.1
|
||||
Release: 0
|
||||
Summary: A simple argparse wrapper
|
||||
License: LGPL-3.0+
|
||||
Summary: An argparse wrapper
|
||||
License: LGPL-3.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/neithere/argh/
|
||||
Source: https://files.pythonhosted.org/packages/source/a/argh/argh-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE python-argh-0.26.1-fix-testsuite.patch -- so that tests can run on OBS
|
||||
Patch0: python-argh-0.26.1-fix-testsuite.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -43,18 +42,14 @@ BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Agrh, argparse!
|
||||
This Python module provides a wrapper for argparse with support for hierarchical
|
||||
commands that can be bound to modules or classes.
|
||||
|
||||
Did you ever say "argh" trying to remember the details of optparse or argparse
|
||||
API? If yes, this package may be useful for you. It provides a very simple
|
||||
wrapper for argparse with support for hierarchical commands that can be bound
|
||||
to modules or classes. Argparse can do it; argh makes it easy.
|
||||
|
||||
Here's a list of features that argh adds to argparse:
|
||||
Features that argh adds to argparse:
|
||||
|
||||
* mark a function as a CLI command and specify its arguments before the parser
|
||||
is instantiated;
|
||||
* nesed commands made easy: no messing with subparsers (though they are of
|
||||
* nested commands made easy: no messing with subparsers (though they are of
|
||||
course used under the hood);
|
||||
* infer agrument type from the default value;
|
||||
* infer command name from function name;
|
||||
@@ -62,8 +57,8 @@ Here's a list of features that argh adds to argparse:
|
||||
* enable passing unwrapped arguments to certain functions instead of a
|
||||
argparse.Namespace object.
|
||||
|
||||
Argh is fully compatible with argparse. You can mix argh-agnostic and
|
||||
argh-aware code. Just keep in mind that argh.dispatch does some extra
|
||||
Argh is fully compatible with argparse. argh-agnostic and argh-aware code
|
||||
can be mixed. Keep in mind that argh.dispatch does some extra
|
||||
work that a custom dispatcher may not do.
|
||||
|
||||
%prep
|
||||
|
||||
Reference in New Issue
Block a user