From 93d7fa7d3a798c60f175ea7e0c836b2d5651931c109baf546bee82c4af45c864 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 18 Jan 2022 21:35:10 +0000 Subject: [PATCH] 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 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 --- .gitattributes | 1 + Sphinx-4.3.2.tar.gz | 3 -- Sphinx-4.3.2.tar.gz.asc | 16 --------- Sphinx-4.4.0.tar.gz | 3 ++ Sphinx-4.4.0.tar.gz.asc | 16 +++++++++ python-Sphinx-rpmlintrc | 2 -- python-Sphinx.changes | 74 +++++++++++++++++++++++++++++++++++++++++ python-Sphinx.spec | 9 +++-- python3.inv | 4 +-- readthedocs.inv | 3 ++ 10 files changed, 105 insertions(+), 26 deletions(-) delete mode 100644 Sphinx-4.3.2.tar.gz delete mode 100644 Sphinx-4.3.2.tar.gz.asc create mode 100644 Sphinx-4.4.0.tar.gz create mode 100644 Sphinx-4.4.0.tar.gz.asc delete mode 100644 python-Sphinx-rpmlintrc create mode 100644 readthedocs.inv diff --git a/.gitattributes b/.gitattributes index 777861f..06c9c02 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/Sphinx-4.3.2.tar.gz b/Sphinx-4.3.2.tar.gz deleted file mode 100644 index 662c346..0000000 --- a/Sphinx-4.3.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0a8836751a68306b3fe97ecbe44db786f8479c3bf4b80e3a7f5c838657b4698c -size 6657148 diff --git a/Sphinx-4.3.2.tar.gz.asc b/Sphinx-4.3.2.tar.gz.asc deleted file mode 100644 index 7178021..0000000 --- a/Sphinx-4.3.2.tar.gz.asc +++ /dev/null @@ -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----- diff --git a/Sphinx-4.4.0.tar.gz b/Sphinx-4.4.0.tar.gz new file mode 100644 index 0000000..4a4cc52 --- /dev/null +++ b/Sphinx-4.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6caad9786055cb1fa22b4a365c1775816b876f91966481765d7d50e9f0dd35cc +size 6690021 diff --git a/Sphinx-4.4.0.tar.gz.asc b/Sphinx-4.4.0.tar.gz.asc new file mode 100644 index 0000000..d6c2937 --- /dev/null +++ b/Sphinx-4.4.0.tar.gz.asc @@ -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----- diff --git a/python-Sphinx-rpmlintrc b/python-Sphinx-rpmlintrc deleted file mode 100644 index c6e8b3a..0000000 --- a/python-Sphinx-rpmlintrc +++ /dev/null @@ -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.*") diff --git a/python-Sphinx.changes b/python-Sphinx.changes index bbb0816..08944bc 100644 --- a/python-Sphinx.changes +++ b/python-Sphinx.changes @@ -1,3 +1,77 @@ +------------------------------------------------------------------- +Sun Jan 16 18:25:51 UTC 2022 - Martin Liška + +- 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 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 diff --git a/python-Sphinx.spec b/python-Sphinx.spec index ea43d77..09ff48d 100644 --- a/python-Sphinx.spec +++ b/python-Sphinx.spec @@ -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 diff --git a/python3.inv b/python3.inv index 4498214..7d366c5 100644 --- a/python3.inv +++ b/python3.inv @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a266f498d0c2a5154a47372700557be8e8d5dd52ee9c91be28c7f6a94f18bbee -size 112781 +oid sha256:b66778ebc993920f8e38e5e6e92ff87408d96643f15c21beb3b68a9ec9191c94 +size 112797 diff --git a/readthedocs.inv b/readthedocs.inv new file mode 100644 index 0000000..1c8b14b --- /dev/null +++ b/readthedocs.inv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b26acd3a4de20f5be301954925f7364435b4ea22499bbaa1ea8c06366044f63 +size 19635