forked from pool/python-knack
- New upstream release
+ Version 0.4.3
+ Fixes issue where values were sometimes ignored when using
deprecated options regardless of which option was given.
- from version 0.4.2
+ Bug fixes: [output]: disable number parse on table mode PR #88
- from version 0.4.1
+ Version 0.4.0 introduced deprecation to Knack. This
release fixes a bug related to that.
* Ensures that the action kwarg is only set if the item is
deprecated. Previously it would set it to "None" which
would then override a pre-existing action like store_true.
+ Version 0.4.0 also added the concept of the command group table
to the CommandsLoader class. This release corrects an issue
related to that:
* The command group table would only be filled by calls to create
CommandGroup classes. This resulted in some gaps in the command
group table.
- from version 0.4.0
+ Add mechanism to deprecate commands, command groups,
arguments and argument options.
+ Improve help display support for Unicode.
- from version 0.3.3
+ expose a callback to let client side perform extra logics (#80)
+ output: don't skip false value on auto-tabulating (#83)
OBS-URL: https://build.opensuse.org/request/show/639938
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-knack?expand=0&rev=5
66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-knack
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-knack
|
|
Version: 0.4.3
|
|
Release: 0
|
|
Summary: A Command-Line Interface framework
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: https://pypi.python.org/pypi/knack
|
|
Source: https://files.pythonhosted.org/packages/source/k/knack/knack-%{version}.tar.gz
|
|
Source1: LICENSE
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-PyYAML
|
|
Requires: python-argcomplete
|
|
Requires: python-colorama
|
|
Requires: python-jmespath
|
|
Requires: python-pygments
|
|
Requires: python-six
|
|
Requires: python-tabulate
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Command-Line Interface framework
|
|
|
|
%prep
|
|
%setup -q -n knack-%{version}
|
|
cp %{SOURCE1} LICENSE
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|