Files
python-sphinxcontrib-httpdo…/python-sphinxcontrib-httpdomain.spec

74 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-sphinxcontrib-httpdomain
#
# Copyright (c) 2021 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-%{**}}
%global skip_python2 1
Name: python-sphinxcontrib-httpdomain
Version: 1.7.0
Release: 0
Summary: Sphinx domain for HTTP APIs
License: BSD-2-Clause
URL: https://github.com/sphinx-contrib/httpdomain
Source: https://github.com/sphinx-contrib/httpdomain/archive/%{version}.tar.gz
BuildRequires: %{python_module Flask >= 0.11}
BuildRequires: %{python_module Sphinx >= 1.5}
BuildRequires: %{python_module bottle >= 0.11.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module tornado5}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 1.5
Requires: python-six
Requires: python-tornado5
BuildArch: noarch
%python_subpackages
%description
This contrib extension, sphinxcontrib.httpdomain provides a Sphinx
domain for describing RESTful HTTP APIs.
You can find the documentation from the following URL:
http://packages.python.org/sphinxcontrib-httpdomain/
%prep
%setup -q -n httpdomain-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest test
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/sphinxcontrib/autohttp/
Accepting request 527175 from home:TheBlackCat:branches:devel:languages:python - - Use new python-sphinxcontrib package to provide namespace directory. ------------------------------------------------------------------ - Specify files to guarantee namespace package doesn't conflict with python(2|3)-Sphinx - add newer-sphinx.patch. Needed to make httpdomain working with Sphinx >= 1.6 . - convert to singlespec - update to 1.5.0 - update to version 1.4.0 * Added 429 Too Many Requests as a valid http:statuscode. [pull request #81 by DDBReloaded] * Became to not resolve references if they can’t be resolved. [pull request #87 by Ken Robbins] * Became to preserve endpoint ordering when :endpoints: option is given. [pull request #88 by Dan Callaghan] * Added status codes for WebDAV. [pull request #92 by Ewen Cheslack-Postava] * Added CORS headers. [pull request #96 by Tomi Pieviläinen] * Now sphinxcontrib.autohttp.flask supports multiple paths for endpoints using same HTTP method. [pull request #97 by Christian Felder] - update to version 1.3.0: * jsonparameter/jsonparam/json became deprecated and split into reqjsonobj/reqjson/<jsonobj/<json and reqjsonarr/<jsonarr. [issue #55, pull request #72 by Alexander Shorin] * Support synopsis (short description in HTTP index), deprecation and noindex options for resources. [issue #55, pull request #72 by Alexander Shorin] * Stabilize order of index items. [issue #55, pull request #72 by Alexander Shorin] * Added :rst:directive:`http:any` directive and http:any role for ANY method. [issue #55, pull request #72 by Alexander Shorin] * Added :rst:directive:`http:copy` directive and http:copy role for COPY method. [issue #55, pull request #72 by Alexander Shorin] * Added http:header role that also creates reference to the related specification. [issue #55, pull request #72 by Alexander Shorin] * http:statuscode role became to provide references to specification sections. [issue #55, pull request #72 by Alexander Shorin] * Fixed Python 3 incompatibility of autohttp.tornado. [pull request #61 by Dave Shawley] - update to 1.2.1: * Six support - update to 1.2.0: * Add tornado support - update to 1.1.9: * Add sphinx.ext.autodoc-style HTTP API reference builder (from Bottle) - update to 1.1.8: * Added better support for docstrings in flask.views.MethodView * Added jsonparameter along side form and query parameters. * Fixed issue with undefined Value and umethod variables. * Now http Pygments lexer can Handle continuous header lines well. * Added undoc-blueprints flag option to autoflask directive. * Fixed issue #29, a bug that autoflask directive raised UnicodeDecodeError when it contains non-ASCII characters. * Added endpoints flag option to autoflask directive. - Initial version OBS-URL: https://build.opensuse.org/request/show/527175 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinxcontrib-httpdomain?expand=0&rev=18
2017-09-18 22:47:40 +00:00
%{python_sitelib}/sphinxcontrib/httpdomain.py*
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__
%{python_sitelib}/sphinxcontrib_httpdomain-%{version}-py*-nspkg.pth
%{python_sitelib}/sphinxcontrib_httpdomain-%{version}-py*.egg-info
%changelog