2012-11-20 09:44:23 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-cliff
|
|
|
|
|
#
|
2021-05-02 17:15:12 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2012-11-20 09:44:23 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
2013-03-12 10:32:52 +00:00
|
|
|
|
2019-03-04 08:09:40 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-11-20 09:44:23 +00:00
|
|
|
#
|
|
|
|
|
|
2013-03-12 10:32:52 +00:00
|
|
|
|
2012-11-20 09:44:23 +00:00
|
|
|
Name: python-cliff
|
2021-05-02 17:15:12 +00:00
|
|
|
Version: 3.7.0
|
2012-11-20 09:44:23 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Command Line Interface Formulation Framework
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Development/Languages/Python
|
2021-05-02 17:15:12 +00:00
|
|
|
URL: https://docs.openstack.org/cliff
|
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/c/cliff/cliff-3.7.0.tar.gz
|
2017-11-24 09:53:51 +00:00
|
|
|
BuildRequires: openstack-macros
|
|
|
|
|
BuildRequires: python3-PrettyTable
|
|
|
|
|
BuildRequires: python3-PyYAML
|
2020-02-18 09:34:42 +00:00
|
|
|
BuildRequires: python3-cmd2
|
|
|
|
|
BuildRequires: python3-docutils
|
2020-03-11 12:19:58 +00:00
|
|
|
BuildRequires: python3-fixtures
|
2017-11-24 09:53:51 +00:00
|
|
|
BuildRequires: python3-mock
|
|
|
|
|
BuildRequires: python3-pbr
|
2020-03-11 12:19:58 +00:00
|
|
|
BuildRequires: python3-pytest
|
2017-11-24 09:53:51 +00:00
|
|
|
BuildRequires: python3-python-subunit
|
|
|
|
|
BuildRequires: python3-stevedore
|
|
|
|
|
BuildRequires: python3-testscenarios
|
|
|
|
|
BuildRequires: python3-testtools
|
2020-03-11 12:19:58 +00:00
|
|
|
Requires: python3-PrettyTable
|
|
|
|
|
Requires: python3-PyYAML
|
|
|
|
|
Requires: python3-cmd2
|
|
|
|
|
Requires: python3-pyparsing
|
|
|
|
|
Requires: python3-six
|
|
|
|
|
Requires: python3-stevedore
|
2012-11-20 09:44:23 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
cliff is a framework for building command line programs. It uses
|
|
|
|
|
setuptools entry points to provide subcommands, output formatters, and
|
|
|
|
|
other extensions.
|
|
|
|
|
|
2020-03-11 12:19:58 +00:00
|
|
|
%package -n python3-cliff
|
|
|
|
|
Summary: Command Line Interface Formulation Framework
|
|
|
|
|
Requires: python3-PrettyTable
|
|
|
|
|
Requires: python3-PyYAML
|
|
|
|
|
Requires: python3-cmd2
|
|
|
|
|
Requires: python3-pyparsing
|
|
|
|
|
Requires: python3-six
|
|
|
|
|
Requires: python3-stevedore
|
|
|
|
|
|
|
|
|
|
%description -n python3-cliff
|
|
|
|
|
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 the Python 3.x module.
|
|
|
|
|
|
2017-11-24 09:53:51 +00:00
|
|
|
%package -n python-cliff-doc
|
|
|
|
|
Summary: %{summary} - Documentation
|
2012-11-20 09:44:23 +00:00
|
|
|
Group: Documentation/HTML
|
2020-02-18 09:34:42 +00:00
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
|
BuildRequires: python3-openstackdocstheme
|
2012-11-20 09:44:23 +00:00
|
|
|
|
2017-11-24 09:53:51 +00:00
|
|
|
%description -n python-cliff-doc
|
2014-09-15 15:41:24 +00:00
|
|
|
cliff is a framework for building command line programs. It uses
|
|
|
|
|
setuptools entry points to provide subcommands, output formatters, and
|
|
|
|
|
other extensions.
|
|
|
|
|
|
2012-11-20 09:44:23 +00:00
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-05-02 17:15:12 +00:00
|
|
|
%autosetup -p1 -n cliff-3.7.0
|
2017-11-24 09:53:51 +00:00
|
|
|
%py_req_cleanup
|
2012-11-20 09:44:23 +00:00
|
|
|
|
|
|
|
|
%build
|
2020-03-11 12:19:58 +00:00
|
|
|
%py3_build
|
2021-05-02 17:15:12 +00:00
|
|
|
PBR_VERSION=3.7.0 PYTHONPATH=. %sphinx_build -b html doc/source doc/build/html
|
2017-11-24 09:53:51 +00:00
|
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
2012-11-20 09:44:23 +00:00
|
|
|
|
|
|
|
|
%install
|
2020-03-11 12:19:58 +00:00
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# doesn't work with pytest atm
|
|
|
|
|
rm -v cliff/tests/test_commandmanager.py
|
|
|
|
|
python3 -m pytest cliff/tests
|
2012-11-20 09:44:23 +00:00
|
|
|
|
2020-03-11 12:19:58 +00:00
|
|
|
%files -n python3-cliff
|
2017-11-24 09:53:51 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%doc ChangeLog README.rst
|
2020-03-11 12:19:58 +00:00
|
|
|
%{python3_sitelib}/cliff
|
|
|
|
|
%{python3_sitelib}/*.egg-info
|
2012-11-20 09:44:23 +00:00
|
|
|
|
2017-11-24 09:53:51 +00:00
|
|
|
%files -n python-cliff-doc
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc doc/build/html
|
2012-11-20 09:44:23 +00:00
|
|
|
|
|
|
|
|
%changelog
|