Accepting request 947122 from home:marxin:branches:devel:languages:python

- Update to version 4.4.0:
  * #10007: Use ``importlib_metadata`` for python-3.9 or older
  * #10007: Drop ``setuptools``
  * #9075: autodoc: Add a config variable :confval:`autodoc_typehints_format`
    to suppress the leading module names of typehints of function signatures (ex.
    ``io.StringIO`` -> ``StringIO``)
  * #9831: Autosummary now documents only the members specified in a module's
    ``__all__`` attribute if :confval:`autosummary_ignore_module_all` is set to
    ``False``. The default behaviour is unchanged. Autogen also now supports
    this behavior with the ``--respect-module-all`` switch.
  * #9555: autosummary: Improve error messages on failure to load target object
  * #9800: extlinks: Emit warning if a hardcoded link is replaceable
    by an extlink, suggesting a replacement.
  * #9961: html: Support nested <kbd> HTML elements in other HTML builders
  * #10013: html: Allow to change the loading method of JS via ``loading_method``
    parameter for :meth:`Sphinx.add_js_file()`
  * #9551: html search: "Hide Search Matches" link removes "highlight" parameter
    from URL
  * #9815: html theme: Wrap sidebar components in div to allow customizing their
    layout via CSS
  * #9827: i18n: Sort items in glossary by translated terms
  * #9899: py domain: Allows to specify cross-reference specifier (``.`` and
    ``~``) as ``:type:`` option
  * #9894: linkcheck: add option ``linkcheck_exclude_documents`` to disable link
    checking in matched documents.
  * #9793: sphinx-build: Allow to use the parallel build feature in macOS on macOS
    and Python3.8+
  * #10055: sphinx-build: Create directories when ``-w`` option given
  * #9993: std domain: Allow to refer an inline target (ex. ``_`target name```)
    via :rst:role:`ref` role

OBS-URL: https://build.opensuse.org/request/show/947122
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=200
This commit is contained in:
2022-01-18 21:35:10 +00:00
committed by Git OBS Bridge
parent 7a18265b69
commit aade5fec8c
10 changed files with 34 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -28,7 +28,7 @@
%endif
%define skip_python2 1
Name: python-Sphinx%{psuffix}
Version: 4.3.2
Version: 4.4.0
Release: 0
Summary: Python documentation generator
License: BSD-2-Clause
@@ -39,7 +39,7 @@ Source1: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%
# Provide intersphinx inventory offline
Source2: https://docs.python.org/3/objects.inv#/python3.inv
Source3: https://requests.readthedocs.io/en/master/objects.inv#/requests.inv
Source99: python-Sphinx-rpmlintrc
Source4: https://docs.readthedocs.io/en/stable/objects.inv#/readthedocs.inv
BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -236,12 +236,14 @@ mkdir build.doc
cp %{SOURCE2} doc/python3.inv
cp %{SOURCE3} doc/requests.inv
cp %{SOURCE4} doc/readthedocs.inv
%{python_expand # Use one bundled intersphinx inventory for all flavors.
# The python3.6 inventory fails to build even in its own flavor.
# Use a more recent default (currently 3.9) from the source tag instead.
# The same for requests.
sed -i -e "s/\((.https:..docs.python.org.3.., \)None\()\)/\1'python3.inv'\2/g" doc/conf.py
sed -i -e "s/\((.https:..requests.readthedocs.io.*, \)None\()\)/\1'requests.inv'\2/g" doc/conf.py
sed -i -e "s/\((.https:..docs.readthedocs.io.*, \)None\()\)/\1'readthedocs.inv'\2/g" doc/conf.py
$python setup.py build_sphinx
rm build/sphinx/html/.buildinfo
$python setup.py build_sphinx -b man
@@ -276,6 +278,7 @@ grep -F %{$python_sitelib} ${langfile} >> %{$python_prefix}-${langfile} \
%else
mkdir -p %{buildroot}%{_docdir}/python-Sphinx/
mv build.doc/html %{buildroot}%{_docdir}/python-Sphinx/
rm -rf %{buildroot}%{_docdir}/python-Sphinx/html/_images
mkdir -p %{buildroot}%{_mandir}/man1
mv build.doc/man/sphinx-all.1 %{buildroot}%{_mandir}/man1/sphinx-all.1