14
0
forked from pool/python-knack
Files
python-knack/python-knack.spec
Matej Cepl 0f67e1d19a Accepting request 790954 from home:glaubitz:branches:devel:languages:python
- Update to 0.7.0rc1
  * Allow disabling color (#171)
  * Support yaml and yamlc output (#173)
  * Drop support for python 2 and 3.5 (#174)
  * Support --only-show-errors to disable warnings (#179)
  * Add experimental tag (#180)
- Add patch to skip two tests that currently fail on openSUSE
  * k_skip-broken-tests.patch

OBS-URL: https://build.opensuse.org/request/show/790954
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-knack?expand=0&rev=20
2020-04-02 21:04:12 +00:00

79 lines
2.2 KiB
RPMSpec

#
# spec file for package python-knack
#
# Copyright (c) 2020 SUSE LLC
#
# 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.7.0rc1
Release: 0
Summary: A Command-Line Interface framework
License: MIT
Group: Development/Languages/Python
URL: https://github.com/microsoft/knack
Source: https://files.pythonhosted.org/packages/source/k/knack/knack-%{version}.tar.gz
Patch: k_skip-broken-tests.patch
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
Requires: python-colorama
Requires: python-jmespath
Requires: python-pygments
Requires: python-six
Requires: python-tabulate
BuildArch: noarch
%ifpython2
Requires: python-enum34
%endif
%python_subpackages
%description
A Command-Line Interface framework
%prep
%setup -q -n knack-%{version}
%patch0 -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%changelog