diff --git a/LICENSE b/LICENSE deleted file mode 100644 index f2ea5a6..0000000 --- a/LICENSE +++ /dev/null @@ -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 diff --git a/knack-0.4.3.tar.gz b/knack-0.4.3.tar.gz deleted file mode 100644 index a7a55aa..0000000 --- a/knack-0.4.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b84459fbf6c8e1cd2f23afb871496e7450e91473aa262326656c61c98b9b8ab1 -size 35589 diff --git a/python-knack.changes b/python-knack.changes index 229b3e8..09c6ae7 100644 --- a/python-knack.changes +++ b/python-knack.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Thu Mar 28 15:07:06 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-knack.spec b/python-knack.spec index be7a538..9b65c90 100644 --- a/python-knack.spec +++ b/python-knack.spec @@ -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}/* diff --git a/v0.5.3.tar.gz b/v0.5.3.tar.gz new file mode 100644 index 0000000..f3e9476 --- /dev/null +++ b/v0.5.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15ea5249ee7988a5c418b27469658bf911012ea4f9258c7ea67f6a4a06f59bad +size 68440