forked from pool/python-cliff
- update to version 2.11.0 - Move doc requirements to doc/requirements.txt - Alias exit to cmd2's quit command to exit interactive shell - doc: Remove blank lines between term and definition - remove -s alias for --sort-columns - Replace legacy tips jobs with shiny new versions - Update .gitignore - Updated from global requirements - sphinxext: Support cliff application - Remove tox_install.sh and just pass -c in tox - do not require installing demo app to build docs - Remove empty files - add support for legacy command name translation - doc: Cleanup of demoapp doc - Generate demoapp CLI refernece - Fix codec error when format=csv - Use in-tree cliffdemo app for docs build - add bandit to pep8 job - Use assertIsNone(...) instead of assertIs(None,...) - Fix PEP8 in gate - Add ability to sort data by columns for list commands OBS-URL: https://build.opensuse.org/request/show/576370 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cliff?expand=0&rev=31
112 lines
3.3 KiB
RPMSpec
112 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package python-cliff
|
|
#
|
|
# Copyright (c) 2018 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-cliff
|
|
Version: 2.11.0
|
|
Release: 0
|
|
Summary: Command Line Interface Formulation Framework
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
Url: https://launchpad.net/python-cliff
|
|
Source0: https://files.pythonhosted.org/packages/source/c/cliff/cliff-2.11.0.tar.gz
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: python-devel
|
|
BuildRequires: python2-PrettyTable
|
|
BuildRequires: python2-PyYAML
|
|
BuildRequires: python2-cmd2
|
|
BuildRequires: python2-mock
|
|
BuildRequires: python2-pbr
|
|
BuildRequires: python2-python-subunit
|
|
BuildRequires: python2-setuptools
|
|
BuildRequires: python2-stevedore
|
|
BuildRequires: python2-testrepository
|
|
BuildRequires: python2-testscenarios
|
|
BuildRequires: python2-testtools
|
|
BuildRequires: python2-unicodecsv
|
|
BuildRequires: python3-PrettyTable
|
|
BuildRequires: python3-PyYAML
|
|
BuildRequires: python3-cmd2
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-mock
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-python-subunit
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-stevedore
|
|
BuildRequires: python3-testrepository
|
|
BuildRequires: python3-testscenarios
|
|
BuildRequires: python3-testtools
|
|
Requires: python-PrettyTable
|
|
Requires: python-PyYAML
|
|
Requires: python-cmd2
|
|
Requires: python-pyparsing
|
|
Requires: python-six
|
|
Requires: python-stevedore
|
|
BuildArch: noarch
|
|
%ifpython2
|
|
Requires: python-unicodecsv
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
cliff is a framework for building command line programs. It uses
|
|
setuptools entry points to provide subcommands, output formatters, and
|
|
other extensions.
|
|
|
|
%package -n python-cliff-doc
|
|
Summary: %{summary} - Documentation
|
|
Group: Documentation/HTML
|
|
BuildRequires: python2-Sphinx
|
|
Provides: %{python_module cliff-doc = %{version}}
|
|
|
|
%description -n python-cliff-doc
|
|
cliff is a framework for building command line programs. It uses
|
|
setuptools entry points to provide subcommands, output formatters, and
|
|
other extensions.
|
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
%prep
|
|
%autosetup -p1 -n cliff-2.11.0
|
|
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
|
|
%py_req_cleanup
|
|
|
|
%build
|
|
%python_build
|
|
%{__python2} setup.py build_sphinx
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
%install
|
|
%python_install
|
|
|
|
%check
|
|
%{python_expand rm -rf .testrepository
|
|
$python setup.py test
|
|
}
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc ChangeLog README.rst
|
|
%{python_sitelib}/cliff
|
|
%{python_sitelib}/*.egg-info
|
|
|
|
%files -n python-cliff-doc
|
|
%license LICENSE
|
|
%doc doc/build/html
|
|
|
|
%changelog
|