15
0
Files
python-cli-helpers/python-cli-helpers.spec

88 lines
2.9 KiB
RPMSpec

#
# spec file for package python-cli-helpers
#
# 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
# 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-cli-helpers
Version: 1.1.0
Release: 0
License: BSD-3-Clause
Summary: Helpers for building command-line apps
Url: https://github.com/dbcli/cli_helpers
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/c/cli-helpers/cli_helpers-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module pytest >= 3.0.7}
BuildRequires: %{python_module mock >= 2.0.0}
# Package dependencies
BuildRequires: %{python_module configobj >= 5.0.5}
BuildRequires: %{python_module tabulate >= 0.8.2}
BuildRequires: %{python_module terminaltables >= 3.0.0}
BuildRequires: %{python_module Pygments >= 1.6}
BuildRequires: %{python_module wcwidth}
%ifpython2
BuildRequires: python2-backports.csv >= 1.0.0
%endif
# /SECTION
BuildRequires: fdupes
BuildArch: noarch
Requires: python-configobj >= 5.0.5
Requires: python-tabulate >= 0.8.2
Requires: python-terminaltables >= 3.0.0
Requires: python-wcwidth
Requires: python-Pygments >= 1.6
%ifpython2
Requires: python2-backports.csv >= 1.0.0
%endif
%python_subpackages
%description
CLI Helpers is a Python package that makes it easy to perform common tasks when
building command-line apps. It's a helper library for command-line interfaces.
Libraries like `Click <http://click.pocoo.org/5/>`_ and
`Python Prompt Toolkit <https://python-prompt-toolkit.readthedocs.io/en/latest/>`_
are amazing tools that help you create quality apps. CLI Helpers complements
these libraries by wrapping up common tasks in simple interfaces.
CLI Helpers is not focused on your app's design pattern or framework -- you can
use it on its own or in combination with other libraries. It's lightweight and
easy to extend.
%prep
%setup -q -n cli_helpers-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m pytest
%files %{python_files}
%license LICENSE
%doc README.rst AUTHORS CHANGELOG docs
%{python_sitelib}/*
%changelog