forked from pool/python-knack
- Update to 0.5.3:
* Removes an incorrect check when adding arguments. * Updates usages of yaml.load to use yaml.safe_load. * Fix issue with some scenarios (no args and --version) * Adds support for positional arguments with the .positional helper method on ArgumentsContext. * Removes the necessity for the type field in help.py. This information can be inferred from the class, so specifying it causes unnecessary crashes. * Adds support for examining the result of a command after a call to invoke. The raw object, error (if any) an exit code are accessible. * Fixes an issue with the default config directory. It use to be .cli and is now based on the CLI name. * Adds ability to specify line width for help text display. * Preserves logging verbosity and output format on the namespace for use by validators. * Adds ability to set config file name. * Fixes bug with argument deprecations. - Switch to github archive to run tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-knack?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
8ce8110ac4
commit
5ad6a803e8
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-knack
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -18,16 +18,26 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-knack
|
||||
Version: 0.4.3
|
||||
Version: 0.5.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
|
||||
URL: https://github.com/microsoft/knack
|
||||
Source: https://github.com/Microsoft/knack/archive/v%{version}.tar.gz
|
||||
BuildRequires: %{python_module PyYAML}
|
||||
BuildRequires: %{python_module argcomplete}
|
||||
BuildRequires: %{python_module colorama}
|
||||
BuildRequires: %{python_module jmespath}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pygments}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module tabulate}
|
||||
BuildRequires: %{python_module vcrpy}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-enum34
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-PyYAML
|
||||
Requires: python-argcomplete
|
||||
@@ -36,9 +46,10 @@ Requires: python-jmespath
|
||||
Requires: python-pygments
|
||||
Requires: python-six
|
||||
Requires: python-tabulate
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%ifpython2
|
||||
Requires: python-enum34
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -46,7 +57,6 @@ A Command-Line Interface framework
|
||||
|
||||
%prep
|
||||
%setup -q -n knack-%{version}
|
||||
cp %{SOURCE1} LICENSE
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -55,8 +65,10 @@ cp %{SOURCE1} LICENSE
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
Reference in New Issue
Block a user