15
0
forked from pool/python-cliff

Accepting request 544429 from devel:languages:python

- update to version 2.9.1
  - doc: minor cleanup
  - trivial: Fix comments in sphinxext module
  - add actual column names to error msg
  - handle more varied top_level.txt files in distributions
  - Allow command hooks to make changes
  - Move comments up in [extras] section of setup.cfg
  - Update doc on Sphinx integration process
  - show the distribution providing the command in help output
  - Update and replace http with https for doc links
  - Make openstackdocstheme an optional doc dependency
  - Docs update for more-hooks
  - sphinxext: Correct issues with usage formatting
  - Fix regexp for detecting long options
  - Updates for stestr
  - Updated from global requirements
- Drop 0001-Make-openstackdocstheme-an-optional-doc-dependency.patch .
  Applied upstream
- Add _service and switch to openstack/rpm-packging spec template

OBS-URL: https://build.opensuse.org/request/show/544429
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cliff?expand=0&rev=30
This commit is contained in:
2017-11-24 09:53:51 +00:00
committed by Git OBS Bridge
parent d5e4debb57
commit 702de4853e
6 changed files with 98 additions and 159 deletions

View File

@@ -17,52 +17,62 @@
Name: python-cliff
Version: 2.8.0
Version: 2.9.1
Release: 0
Url: https://github.com/dreamhost/cliff
Summary: Command Line Interface Formulation Framework
License: Apache-2.0
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/c/cliff/cliff-%{version}.tar.gz
# PATCH-FEATURE-UPSTREAM 0001-Make-openstackdocstheme-an-optional-doc-dependency.patch -- https://review.openstack.org/491378
Patch1: 0001-Make-openstackdocstheme-an-optional-doc-dependency.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-argparse
Url: https://launchpad.net/python-cliff
Source0: https://files.pythonhosted.org/packages/source/c/cliff/cliff-2.9.1.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-devel
BuildRequires: python-setuptools
# Test requirements:
BuildRequires: python-PrettyTable
BuildRequires: python-Sphinx
BuildRequires: python-cmd2
BuildRequires: python-coverage >= 3.6
BuildRequires: python-httplib2 >= 0.7.5
BuildRequires: python-mock >= 2.0
BuildRequires: python-nose
BuildRequires: python-oslosphinx
BuildRequires: python-pbr
BuildRequires: python-pyparsing >= 2.1.0
BuildRequires: python-six
BuildRequires: python-stevedore
Requires: python-PrettyTable >= 0.7
Requires: python-PyYAML >= 3.10.0
Requires: python-cmd2 >= 0.6.7
Requires: python-pyparsing >= 2.1.0
Requires: python-six >= 1.9.0
Requires: python-stevedore >= 1.20.0
Requires: python-unicodecsv >= 0.8.0
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
BuildRequires: python3-unicodecsv
Requires: python-PrettyTable
Requires: python-PyYAML
Requires: python-cmd2
Requires: python-pyparsing
Requires: python-six
Requires: python-stevedore
Requires: python-unicodecsv
BuildArch: noarch
%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 doc
Summary: Command Line Interface Formulation Framework - Documentation
%package -n python-cliff-doc
Summary: %{summary} - Documentation
Group: Documentation/HTML
Requires: %{name} = %{version}
BuildRequires: python2-Sphinx
Provides: %{python_module cliff-doc = %{version}}
%description doc
%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.
@@ -70,28 +80,31 @@ other extensions.
This package contains documentation files for %{name}.
%prep
%setup -q -n cliff-%{version}
%patch1 -p1
%autosetup -p1 -n cliff-2.9.1
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
%py_req_cleanup
%build
python setup.py build
python setup.py build_sphinx
%python_build
%{__python2} setup.py build_sphinx
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%check
echo > test-requirements.txt
echo > requirements.txt
python setup.py test
%{python_expand rm -rf .testrepository
$python setup.py test
}
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python_sitelib}/*
%files %{python_files}
%license LICENSE
%doc ChangeLog README.rst
%{python_sitelib}/cliff
%{python_sitelib}/*.egg-info
%files doc
%defattr(-,root,root,-)
%doc doc/build/html demoapp
%files -n python-cliff-doc
%license LICENSE
%doc doc/build/html
%changelog