forked from pool/python-knack
Accepting request 689399 from devel:languages:python
- 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/request/show/689399 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-knack?expand=0&rev=5
This commit is contained in:
21
LICENSE
21
LICENSE
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b84459fbf6c8e1cd2f23afb871496e7450e91473aa262326656c61c98b9b8ab1
|
||||
size 35589
|
||||
@@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 15:07:06 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:49:51 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -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}/*
|
||||
|
||||
3
v0.5.3.tar.gz
Normal file
3
v0.5.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:15ea5249ee7988a5c418b27469658bf911012ea4f9258c7ea67f6a4a06f59bad
|
||||
size 68440
|
||||
Reference in New Issue
Block a user