forked from pool/python-Sphinx
Accepting request 947727 from devel:languages:python
- Fix missing install_requires dependencies. - I know it looks cool to have URLs for all Source files, but these are files in VCS and they are inherently very unstable, so it breaks our checks. - 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 * #9981: std domain: Strip value part of the option directive from general index * #9391: texinfo: improve variable in ``samp`` role * #9578: texinfo: Add :confval:`texinfo_cross_references` to disable cross references for readability with standalone readers * #9822 (and #9062), add new Intersphinx role :rst:role:`external` for explict lookup in the external projects, without resolving to the local project. * #9866: autodoc: doccomment for the imported class was ignored * #9883: autodoc: doccomment for the alias to mocked object was ignored * #9908: autodoc: debug message is shown on building document using NewTypes with Python 3.10 * #9968: autodoc: instance variables are not shown if __init__ method has position-only-arguments * #9194: autodoc: types under the "typing" module are not hyperlinked * #10009: autodoc: Crashes if target object raises an error on getting docstring * #10058: autosummary: Imported members are not shown when ``autodoc_class_signature = 'separated'`` * #9947: i18n: topic directive having a bullet list can't be translatable * #9878: mathjax: MathJax configuration is placed after loading MathJax itself * #9932: napoleon: empty "returns" section is generated even if no description * #9857: Generated RFC links use outdated base url * #9909: HTML, prevent line-wrapping in literal text. * #10061: html theme: Configuration values added by themes are not be able to override from conf.py * #10073: imgconverter: Unnecessary availablity check is called for "data" URIs * #9925: LaTeX: prohibit also with ``'xelatex'`` line splitting at dashes of inline and parsed literals * #9944: LaTeX: extra vertical whitespace for some nested declarations * #9940: LaTeX: Multi-function declaration in Python domain has cramped vertical spacing in latexpdf output * #10015: py domain: types under the "typing" module are not hyperlinked defined at info-field-list * #9390: texinfo: Do not emit labels inside footnotes * #9413: xml: Invalid XML was generated when cross referencing python objects * #9979: Error level messages were displayed as warning messages * #10057: Failed to scan documents if the project is placed onto the root directory * #9636: code-block: ``:dedent:`` without argument did strip newlines - Add new intersphinx mapping file: readthedocs.inv. - Fix %fdupes. - Remove python-Sphinx-rpmlintrc as it is not used any more. OBS-URL: https://build.opensuse.org/request/show/947727 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Sphinx?expand=0&rev=84
This commit is contained in:
commit
142c65d1f2
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -23,3 +23,4 @@
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
## Specific LFS patterns
|
||||
python3.inv filter=lfs diff=lfs merge=lfs -text
|
||||
readthedocs.inv filter=lfs diff=lfs merge=lfs -text
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0a8836751a68306b3fe97ecbe44db786f8479c3bf4b80e3a7f5c838657b4698c
|
||||
size 6657148
|
@ -1,16 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCAAdFiEEihG3ml0NdJpm8KAwECwsF0mNa54FAmG+740ACgkQECwsF0mN
|
||||
a56bIg/5AeOPA5L07jYLeNMHgVaqjQor3uA72zxxFK83LQ8sB7uPg3Q82sIhbMAL
|
||||
oWH/Kb4nTtTa5CanoFdHzD6hrvv7iPHi0FspN2my84x/6ZUMHJyuecJFP5RhaFgK
|
||||
7PPW0y9vbJY72Odu47x8rWDkJ3PAJMHf1ZEJ3aTNOianBdRSOm5+ke8C6xvYhn7q
|
||||
c6o5QoGMIwzH0YzVvFP+OY7yJKESwoK48HxRbY/xA3W1fvHF5LOft5kuti6m8Ubz
|
||||
adS3lb58tZfW5wuJTodE5KS1FFPhRq13xwJT6SD1hSw8oHm3cNd/1TtT1RCc0pVW
|
||||
p+cd/8pOiTTk6uc76irhaRL4OcBqy7nSPL8Wagnj84k2NGRKM1rMDjYAbihOFYQt
|
||||
22G2260MFzOi6chfIADj8gg56GTx36YZi5HNaaQ9MS5N+PnHF75HZDowP6ULSZM6
|
||||
jiIxE8S4qv86r2taSRfoUBYdT5G60gCGHjQ0sKQ/lkqrsqdlQPGcD8DuAdxwVMRb
|
||||
/Njr/0ZKMHzKnB6LX6igSfklPQry6EcmxMsOHn1KifwZYzqluNNBAjDo5+99ZDtx
|
||||
bwQ++cA4QhOvYH/CAehCZnv7d6j6xKM+9iamtRLLFPf69NUFWCPSfj1R+SXGdyC2
|
||||
LXoTKT0DDiAzFw3vuzLVkUSJkJwWWXt+HHWfe8Q+zyTQPaBCrE4=
|
||||
=u0B8
|
||||
-----END PGP SIGNATURE-----
|
3
Sphinx-4.4.0.tar.gz
Normal file
3
Sphinx-4.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6caad9786055cb1fa22b4a365c1775816b876f91966481765d7d50e9f0dd35cc
|
||||
size 6690021
|
16
Sphinx-4.4.0.tar.gz.asc
Normal file
16
Sphinx-4.4.0.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCAAdFiEEihG3ml0NdJpm8KAwECwsF0mNa54FAmHkN0MACgkQECwsF0mN
|
||||
a56ozg//WQkUxKbanlRgDPipIYkORbVmv1RMyAt6CBfX+mTyK4zHNul4Oj0m7F1F
|
||||
evJKeCGPZT32nKFb03v0PABoQ14QmwGzzyRi0qSgEe8vFE7cr2UY4c0RPpM5nVxR
|
||||
6h4eu4hCLKx4ym/CN+RZ9/YAPt20rkdnHZff81Nxd9Fj4qdgRclWx/iVfo5O9ykW
|
||||
QPUZANEPdc/0pZa0u4QhEgxZYXO4Z5s3hNkW4qtK2lnzfADMsubit7xh/Ajwr+QB
|
||||
HK7oPhe9gwcf6Fh0ML6ZBcrapmkcO9DSWmqpYpDZEdr4OGHYw+yJ3MPC3AqapD6n
|
||||
7VwI5UZUBgLZssQUgXYNXFai/LAYTN+E6HTsaAaaWVX4jujaHcjfkMd6NcpthENN
|
||||
+X/V8YcSIcMUVIwYFNTNdQ7crrBVIsr4xOcBjcCvacp82v0CCqRx8la43u7EcXGm
|
||||
7ZnWYtTG15OygLmIVZ0GiE+ONAZohX3bdR+Kd+iMFMC5oZl+StVEBX4R95GI1KeS
|
||||
VNXItLrPSsQr7X6SZv1/MZCqLe2yuk9SUaReFoF+UMWn999cBWVSExXzl5Ze8AcC
|
||||
Qt1z174OS7iwnmzwjY7O9X2ag0Aiswn0w9Tk6DsMCVnyqIxpytdi4vKVMI3LDkXT
|
||||
EM332tIWE064B1GEp2eGRhzho3klzgfxakdMPXlhBXxeXEndc94=
|
||||
=MFtg
|
||||
-----END PGP SIGNATURE-----
|
@ -1,2 +0,0 @@
|
||||
# false positive as the -latex package only ships latex files and no actual python code
|
||||
addFilter("python3.*-Sphinx-latex.noarch: .: no-dependency-on python-base 3.*")
|
@ -1,3 +1,89 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 20 14:26:44 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Fix missing install_requires dependencies.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 19 16:49:53 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- I know it looks cool to have URLs for all Source files, but these are
|
||||
files in VCS and they are inherently very unstable, so it breaks our
|
||||
checks.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 16 18:25:51 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- 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
|
||||
* #9981: std domain: Strip value part of the option directive from general index
|
||||
* #9391: texinfo: improve variable in ``samp`` role
|
||||
* #9578: texinfo: Add :confval:`texinfo_cross_references` to disable cross
|
||||
references for readability with standalone readers
|
||||
* #9822 (and #9062), add new Intersphinx role :rst:role:`external` for explict
|
||||
lookup in the external projects, without resolving to the local project.
|
||||
* #9866: autodoc: doccomment for the imported class was ignored
|
||||
* #9883: autodoc: doccomment for the alias to mocked object was ignored
|
||||
* #9908: autodoc: debug message is shown on building document using NewTypes
|
||||
with Python 3.10
|
||||
* #9968: autodoc: instance variables are not shown if __init__ method has
|
||||
position-only-arguments
|
||||
* #9194: autodoc: types under the "typing" module are not hyperlinked
|
||||
* #10009: autodoc: Crashes if target object raises an error on getting docstring
|
||||
* #10058: autosummary: Imported members are not shown when
|
||||
``autodoc_class_signature = 'separated'``
|
||||
* #9947: i18n: topic directive having a bullet list can't be translatable
|
||||
* #9878: mathjax: MathJax configuration is placed after loading MathJax itself
|
||||
* #9932: napoleon: empty "returns" section is generated even if no description
|
||||
* #9857: Generated RFC links use outdated base url
|
||||
* #9909: HTML, prevent line-wrapping in literal text.
|
||||
* #10061: html theme: Configuration values added by themes are not be able to
|
||||
override from conf.py
|
||||
* #10073: imgconverter: Unnecessary availablity check is called for "data" URIs
|
||||
* #9925: LaTeX: prohibit also with ``'xelatex'`` line splitting at dashes of
|
||||
inline and parsed literals
|
||||
* #9944: LaTeX: extra vertical whitespace for some nested declarations
|
||||
* #9940: LaTeX: Multi-function declaration in Python domain has cramped
|
||||
vertical spacing in latexpdf output
|
||||
* #10015: py domain: types under the "typing" module are not hyperlinked defined
|
||||
at info-field-list
|
||||
* #9390: texinfo: Do not emit labels inside footnotes
|
||||
* #9413: xml: Invalid XML was generated when cross referencing python objects
|
||||
* #9979: Error level messages were displayed as warning messages
|
||||
* #10057: Failed to scan documents if the project is placed onto the root
|
||||
directory
|
||||
* #9636: code-block: ``:dedent:`` without argument did strip newlines
|
||||
- Add new intersphinx mapping file: readthedocs.inv.
|
||||
- Fix %fdupes.
|
||||
- Remove python-Sphinx-rpmlintrc as it is not used any more.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 22 10:11:19 UTC 2021 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
|
@ -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
|
||||
@ -16,8 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
@ -28,7 +27,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
|
||||
@ -37,9 +36,12 @@ URL: http://sphinx-doc.org
|
||||
Source: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz
|
||||
Source1: https://files.pythonhosted.org/packages/source/S/Sphinx/Sphinx-%{version}.tar.gz.asc
|
||||
# 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
|
||||
# https://docs.python.org/3/objects.inv#/python3.inv
|
||||
Source2: python3.inv
|
||||
# https://requests.readthedocs.io/en/master/objects.inv#/requests.inv
|
||||
Source3: requests.inv
|
||||
# https://docs.readthedocs.io/en/stable/objects.inv#/readthedocs.inv
|
||||
Source4: readthedocs.inv
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@ -52,6 +54,7 @@ Requires: python-Pygments >= 2.1
|
||||
Requires: python-alabaster >= 0.7
|
||||
Requires: python-docutils >= 0.12
|
||||
Requires: python-imagesize
|
||||
Requires: python-packaging
|
||||
Requires: python-requests >= 2.5.0
|
||||
Requires: python-setuptools
|
||||
Requires: python-snowballstemmer >= 1.1
|
||||
@ -63,6 +66,9 @@ Requires: python-sphinxcontrib-jsmath
|
||||
Requires: python-sphinxcontrib-qthelp >= 1.0.2
|
||||
Requires: python-sphinxcontrib-serializinghtml >= 1.1.5
|
||||
Requires: python-sphinxcontrib-websupport
|
||||
%if 0%{?python_version_nodots} < 310
|
||||
Requires: python-importlib-metadata >= 4.4
|
||||
%endif
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Recommends: python-SQLAlchemy >= 0.9
|
||||
@ -77,7 +83,7 @@ BuildRequires: %{python_module html5lib}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module sphinxcontrib-websupport}
|
||||
BuildRequires: %{python_module testsuite}
|
||||
BuildRequires: %{python_module typed-ast}
|
||||
BuildRequires: (python3-typed-ast if python3-base < 3.8)
|
||||
BuildRequires: ImageMagick
|
||||
BuildRequires: graphviz
|
||||
# For PNG format
|
||||
@ -236,12 +242,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 +284,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
|
||||
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a266f498d0c2a5154a47372700557be8e8d5dd52ee9c91be28c7f6a94f18bbee
|
||||
size 112781
|
||||
oid sha256:b66778ebc993920f8e38e5e6e92ff87408d96643f15c21beb3b68a9ec9191c94
|
||||
size 112797
|
||||
|
3
readthedocs.inv
Normal file
3
readthedocs.inv
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4b26acd3a4de20f5be301954925f7364435b4ea22499bbaa1ea8c06366044f63
|
||||
size 19635
|
Loading…
x
Reference in New Issue
Block a user