14
0
forked from pool/python-Sphinx

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

- Bump to version 6.2.0
  * Require Docutils 0.18.1 or greater.
  * LaTeX: removal of some internal TeX ``\dimen`` registers (not previously
    publicly documented) as per 5.1.0 code comments in ``sphinx.sty``:
    ``\sphinxverbatimsep``, ``\sphinxverbatimborder``, ``\sphinxshadowsep``,
    ``\sphinxshadowsize``, and ``\sphinxshadowrule``. (refs: #11105)
  * Remove ``.egg`` support from pycode ``ModuleAnalyser``; Python eggs are a
    now-obsolete binary distribution format
  * #11089: Remove deprecated code in ``sphinx.builders.linkcheck``.
    Patch by Daniel Eades
  * Remove internal-only ``sphinx.locale.setlocale``
  * #11247: Deprecate the legacy ``intersphinx_mapping`` format
  * ``sphinx.util.osutil.cd`` is deprecated in favour of ``contextlib.chdir``.
  * #11277: :rst:dir:`autoproperty` allows the return type to be specified as
    a type comment (e.g., ``# type: () -> int``). Patch by Bénédikt Tran
  * #10811: Autosummary: extend ``__all__`` to imported members for template rendering
    when option ``autosummary_ignore_module_all`` is set to ``False``. Patch by
    Clement Pinard
  * #11147: Add a ``content_offset`` parameter to ``nested_parse_with_titles()``,
    allowing for correct line numbers during nested parsing.
    Patch by Jeremy Maitin-Shepard
  * Update to Unicode CLDR 42
  * Add a ``--jobs`` synonym for ``-j``. Patch by Hugo van Kemenade
  * LaTeX: a command ``\sphinxbox`` for styling text elements with a (possibly
    rounded) box, optional background color and shadow, has been added.
    See :ref:`sphinxbox`. (refs: #11224)
  * LaTeX: add ``\sphinxstylenotetitle``, ..., ``\sphinxstylewarningtitle``, ...,
    for an extra layer of mark-up freeing up ``\sphinxstrong`` for other uses.
    See :ref:`latex-macros`. (refs: #11267)
  * LaTeX: :dudir:`note`, :dudir:`hint`, :dudir:`important` and :dudir:`tip` can

OBS-URL: https://build.opensuse.org/request/show/1082382
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Sphinx?expand=0&rev=236
This commit is contained in:
2023-04-24 11:22:35 +00:00
committed by Git OBS Bridge
parent 6216e82cad
commit d00c9e3b8d
10 changed files with 110 additions and 73 deletions

View File

@@ -26,7 +26,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-Sphinx%{psuffix}
Version: 6.1.3
Version: 6.2.0
Release: 0
Summary: Python documentation generator
License: BSD-2-Clause
@@ -43,8 +43,6 @@ Source3: requests.inv
Source4: readthedocs.inv
Source5: update-intersphinx.sh
Source99: python-Sphinx.keyring
# PATCH-FIX-UPSTREAM: Update test_config.py::test_needs_sphinx for Alabaster 0.7.13 compat
Patch1: alabaster-0713-compat.patch
BuildRequires: %{python_module base}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
@@ -86,7 +84,9 @@ Requires: python-importlib-metadata >= 4.4
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module Sphinx = %{version}}
BuildRequires: %{python_module Sphinx-latex = %{version}}
BuildRequires: %{python_module filelock}
BuildRequires: %{python_module html5lib}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module sphinxcontrib-websupport}
BuildRequires: %{python_module testsuite}
@@ -257,8 +257,8 @@ sed -i -e "s/\((.https:..docs.python.org.3.., \)None\()\)/\1'python3.inv'\2/g" d
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
# rm build/sphinx/html/.buildinfo
$python -m sphinx -b man ./doc ./build.doc/man
$python -m sphinx -M html ./doc ./build.doc/html
$python -m sphinx -b man -j auto ./doc ./build.doc/man
$python -m sphinx -b html -j auto ./doc ./build.doc/html
}
%endif
@@ -314,7 +314,7 @@ mv build.doc/man/sphinx-quickstart.1 %{buildroot}%{_mandir}/man1/sphinx-quicksta
export LC_ALL="C.utf8"
# test_latex_images test downloading a remote image
# test_signature_annotations doesnt work
%pytest tests -k 'not (linkcheck or test_latex_images or test_signature_annotations or test_copy_images)'
%pytest tests -k 'not (linkcheck or test_latex_images or test_signature_annotations or test_copy_images)' -n auto --dist=loadfile
%endif
%if ! %{with test}