Skip to content

chore(deps): update dependency sphinx to v4 #1450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 6, 2021
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 9, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
sphinx (source) ==3.5.4 -> ==4.2.0 age adoption passing confidence

Release Notes

sphinx-doc/sphinx

v4.2.0

Compare Source

=====================================

Features added

  • #​9445: autodoc: Support class properties
  • #​9479: autodoc: Emit a warning if target is a mocked object
  • #​9560: autodoc: Allow to refer NewType instances with module name in Python
    3.10 or above
  • #​9447: html theme: Expose the version of Sphinx in the form of tuple as a
    template variable sphinx_version_tuple
  • #​9594: manpage: Suppress the title of man page if description is empty
  • #​9445: py domain: :py:property: directive supports :classmethod:
    option to describe the class property
  • #​9524: test: SphinxTestApp can take builddir as an argument
  • #​9535: C and C++, support more fundamental types, including GNU extensions.

Bugs fixed

  • #​9608: apidoc: apidoc does not generate a module definition for implicit
    namespace package
  • #​9504: autodoc: generate incorrect reference to the parent class if the target
    class inherites the class having _name attribute
  • #​9537, #​9589: autodoc: Some objects under typing module are not displayed
    well with the HEAD of 3.10
  • #​9487: autodoc: typehint for cached_property is not shown
  • #​9509: autodoc: AttributeError is raised on failed resolving typehints
  • #​9518: autodoc: autodoc_docstring_signature does not effect to __init__()
    and __new__()
  • #​9522: autodoc: PEP 585 style typehints having arguments (ex. list[int])
    are not displayed well
  • #​9481: autosummary: some warnings contain non-existing filenames
  • #​9568: autosummary: summarise overlined sectioned headings correctly
  • #​9600: autosummary: Type annotations which contain commas in autosummary table
    are not removed completely
  • #​9481: c domain: some warnings contain non-existing filenames
  • #​9481: cpp domain: some warnings contain non-existing filenames
  • #​9456: html search: abbreation marks are inserted to the search result if
    failed to fetch the content of the page
  • #​9617: html search: The JS requirement warning is shown if browser is slow
  • #​9267: html theme: CSS and JS files added by theme were loaded twice
  • #​9585: py domain: :type: option for :rst:dir:py:property directive does
    not create a hyperlink
  • #​9576: py domain: Literal typehint was converted to a cross reference
  • #​9535 comment: C++, fix parsing of defaulted function parameters that are
    function pointers.
  • #​9564: smartquotes: don't adjust typography for text with
    language-highlighted :code: role.
  • #​9512: sphinx-build: crashed with the HEAD of Python 3.10

v4.1.2

Compare Source

=====================================

Incompatible changes

  • #​9435: linkcheck: Disable checking automatically generated anchors on
    github.com (ex. anchors in reST/Markdown documents)

Bugs fixed

  • #​9489: autodoc: Custom types using typing.NewType are not displayed well
    with the HEAD of 3.10
  • #​9490: autodoc: Some objects under typing module are not displayed well
    with the HEAD of 3.10
  • #​9436, #​9471: autodoc: crashed if autodoc_class_signature = "separated"
  • #​9456: html search: html_copy_source can't control the search summaries
  • #​9500: LaTeX: Failed to build Japanese document on Windows
  • #​9435: linkcheck: Failed to check anchors in github.com

v4.1.1

Compare Source

=====================================

Dependencies

  • #​9434: sphinxcontrib-htmlhelp-2.0.0 or above
  • #​9434: sphinxcontrib-serializinghtml-1.1.5 or above

Bugs fixed

  • #​9438: html: HTML logo or Favicon specified as file not being found on output

v4.1.0

Compare Source

=====================================

Dependencies

  • Support jinja2-3.0

Deprecated

  • The app argument of sphinx.environment.BuildEnvironment becomes
    required
  • sphinx.application.Sphinx.html_theme
  • sphinx.ext.autosummary._app
  • sphinx.util.docstrings.extract_metadata()

Features added

  • #​8107: autodoc: Add class-doc-from option to :rst:dir:autoclass
    directive to control the content of the specific class like
    :confval:autoclass_content

  • #​8588: autodoc: :confval:autodoc_type_aliases now supports dotted name. It
    allows you to define an alias for a class with module name like
    foo.bar.BazClass

  • #​9175: autodoc: Special member is not documented in the module

  • #​9195: autodoc: The arguments of typing.Literal are wrongly rendered

  • #​9185: autodoc: :confval:autodoc_typehints allows 'both' setting to
    allow typehints to be included both in the signature and description

  • #​4257: autodoc: Add :confval:autodoc_class_signature to separate the class
    entry and the definition of __init__() method

  • #​8061, #​9218: autodoc: Support variable comment for alias classes

  • #​3014: autodoc: Add :event:autodoc-process-bases to modify the base classes
    of the class definitions

  • #​9272: autodoc: Render enum values for the default argument value better

  • #​9384: autodoc: autodoc_typehints='none' now erases typehints for
    variables, attributes and properties

  • #​3257: autosummary: Support instance attributes for classes

  • #​9358: html: Add "heading" role to the toctree items

  • #​9225: html: Add span tag to the return typehint of method/function

  • #​9129: html search: Show search summaries when html_copy_source = False

  • #​9307: html search: Prevent corrections and completions in search field

  • #​9120: html theme: Eliminate prompt characters of code-block from copyable
    text

  • #​9176: i18n: Emit a debug message if message catalog file not found under
    :confval:locale_dirs

  • #​9414: LaTeX: Add xeCJKVerbAddon to default fvset config for Chinese documents

  • #​9016: linkcheck: Support checking anchors on github.com

  • #​9016: linkcheck: Add a new event :event:linkcheck-process-uri to modify
    URIs before checking hyperlinks

  • #​6525: linkcheck: Add :confval:linkcheck_allowed_redirects to mark
    hyperlinks that are redirected to expected URLs as "working"

  • #​1874: py domain: Support union types using | in info-field-list

  • #​9268: py domain: :confval:python_use_unqualified_type_names supports type
    field in info-field-list

  • #​9097: Optimize the parallel build

  • #​9131: Add :confval:nitpick_ignore_regex to ignore nitpicky warnings using
    regular expressions

  • #​9174: Add Sphinx.set_html_assets_policy to tell extensions to include
    HTML assets in all the pages. Extensions can check this via
    Sphinx.registry.html_assets_policy

  • C++, add support for

    • inline variables,
    • consteval functions,
    • constinit variables,
    • char8_t,
    • explicit(<constant expression>) specifier,
    • digit separators in literals, and
    • constraints in placeholder type specifiers, aka. adjective syntax
      (e.g., Sortable auto &v).
  • C, add support for digit separators in literals.

  • #​9166: LaTeX: support containers in LaTeX output

Bugs fixed

  • #​8872: autodoc: stacked singledispatches are wrongly rendered
  • #​8597: autodoc: a docsting having metadata only should be treated as
    undocumented
  • #​9185: autodoc: typehints for overloaded functions and methods are inaccurate
  • #​9250: autodoc: The inherited method not having docstring is wrongly parsed
  • #​9283: autodoc: autoattribute directive failed to generate document for an
    attribute not having any comment
  • #​9364: autodoc: single element tuple on the default argument value is wrongly
    rendered
  • #​9362: autodoc: AttributeError is raised on processing a subclass of Tuple[()]
  • #​9404: autodoc: TypeError is raised on processing dict-like object (not a
    class) via autoclass directive
  • #​9317: html: Pushing left key causes visiting the next page at the first page
  • #​9381: html: URL for html_favicon and html_log does not work
  • #​9270: html theme : pyramid theme generates incorrect logo links
  • #​9217: manpage: The name of manpage directory that is generated by
    :confval:man_make_section_directory is not correct
  • #​9350: manpage: Fix font isn't reset after keyword at the top of samp role
  • #​9306: Linkcheck reports broken link when remote server closes the connection
    on HEAD request
  • #​9280: py domain: "exceptions" module is not displayed
  • #​9418: py domain: a Callable annotation with no parameters
    (e.g. Callable[[], None]) will be rendered with a bracket missing
    (Callable[], None])
  • #​9319: quickstart: Make sphinx-quickstart exit when conf.py already exists
  • #​9387: xml: XML Builder ignores custom visitors
  • #​9224: :param: and :type: fields does not support a type containing
    whitespace (ex. Dict[str, str])
  • #​8945: when transforming typed fields, call the specified role instead of
    making an single xref. For C and C++, use the expr role for typed fields.

v4.0.3

Compare Source

=====================================

Features added

  • C, add C23 keywords _Decimal32, _Decimal64, and _Decimal128.
  • #​9354: C, add :confval:c_extra_keywords to allow user-defined keywords
    during parsing.
  • Revert the removal of sphinx.util:force_decode() to become some 3rd party
    extensions available again during 5.0

Bugs fixed

  • #​9330: changeset domain: :rst:dir:versionchanged with contents being a list
    will cause error during pdf build
  • #​9313: LaTeX: complex table with merged cells broken since 4.0
  • #​9305: LaTeX: backslash may cause Improper discretionary list pdf build error
    with Japanese engines
  • #​9354: C, remove special macro names from the keyword list.
    See also :confval:c_extra_keywords.
  • #​9322: KeyError is raised on PropagateDescDomain transform

v4.0.2

Compare Source

=====================================

Dependencies

Incompatible changes

  • #​9222: Update Underscore.js to 1.13.1
  • #​9217: manpage: Stop creating a section directory on build manpage by default
    (see :confval:man_make_section_directory)

Bugs fixed

  • #​9210: viewcode: crashed if non importable modules found on parallel build
  • #​9240: Unknown node error for pending_xref_condition is raised if an extension
    that does not support the node installs a missing-reference handler

v4.0.1

Compare Source

=====================================

Bugs fixed

  • #​9189: autodoc: crashed when ValueError is raised on generating signature
    from a property of the class
  • #​9188: autosummary: warning is emitted if list value is set to
    autosummary_generate
  • #​8380: html search: tags for search result are broken
  • #​9198: i18n: Babel emits errors when running compile_catalog
  • #​9205: py domain: The :canonical: option causes "more than one target for
    cross-reference" warning
  • #​9201: websupport: UndefinedError is raised: 'css_tag' is undefined

v4.0.0

Compare Source

=====================================

Dependencies

4.0.0b1

  • Drop python 3.5 support
  • Drop docutils 0.12 and 0.13 support
  • LaTeX: add tex-gyre font dependency

4.0.0b2

  • Support docutils-0.17. Please notice it changes the output of HTML builder.
    Some themes do not support it, and you need to update your custom CSS to
    upgrade it.

Incompatible changes

4.0.0b1

  • #​8539: autodoc: info-field-list is generated into the class description when
    autodoc_typehints='description' and autoclass_content='class' set
  • #​8898: extlinks: "%s" becomes required keyword in the link caption string
  • domain: The Index class becomes subclasses of abc.ABC to indicate
    methods that must be overridden in the concrete classes
  • #​4826: py domain: The structure of python objects is changed. A boolean value
    is added to indicate that the python object is canonical one
  • #​7425: MathJax: The MathJax was changed from 2 to 3. Users using a custom
    MathJax configuration may have to set the old MathJax path or update their
    configuration for version 3. See :mod:sphinx.ext.mathjax.
  • #​7784: i18n: The msgid for alt text of image is changed
  • #​5560: napoleon: :confval:napoleon_use_param also affect "other parameters"
    section
  • #​7996: manpage: Make a section directory on build manpage by default (see
    :confval:man_make_section_directory)
  • #​7849: html: Change the default setting of
    :confval:html_codeblock_linenos_style to 'inline'
  • #​8380: html search: search results are wrapped with <p> instead of
    <div>
  • html theme: Move a script tag for documentation_options.js in
    basic/layout.html to script_files variable
  • html theme: Move CSS tags in basic/layout.html to css_files variable
  • #​8915: html theme: Emit a warning for sphinx_rtd_theme-0.2.4 or older
  • #​8508: LaTeX: uplatex becomes a default setting of latex_engine for Japanese
    documents
  • #​5977: py domain: :var:, :cvar: and :ivar: fields do not create
    cross-references
  • #​4550: The align attribute of figure and table nodes becomes
    None by default instead of 'default'
  • #​8769: LaTeX refactoring: split sphinx.sty into multiple files and rename
    some auxiliary files created in latex build output repertory
  • #​8937: Use explicit title instead of
  • #​8487: The :file: option for csv-table directive now recognizes an absolute
    path as a relative path from source directory

4.0.0b2

  • #​9023: Change the CSS classes on :rst:role:cpp:expr and
    :rst:role:cpp:texpr.

Deprecated

  • :confval:html_codeblock_linenos_style
  • favicon and logo variable in HTML templates
  • sphinx.directives.patches.CSVTable
  • sphinx.directives.patches.ListTable
  • sphinx.directives.patches.RSTTable
  • sphinx.ext.autodoc.directive.DocumenterBridge.filename_set
  • sphinx.ext.autodoc.directive.DocumenterBridge.warn()
  • sphinx.registry.SphinxComponentRegistry.get_source_input()
  • sphinx.registry.SphinxComponentRegistry.source_inputs
  • sphinx.transforms.FigureAligner
  • sphinx.util.pycompat.convert_with_2to3()
  • sphinx.util.pycompat.execfile_()
  • sphinx.util.smartypants
  • sphinx.util.typing.DirectiveOption

Features added

4.0.0b1

  • #​8924: autodoc: Support bound argument for TypeVar
  • #​7383: autodoc: Support typehints for properties
  • #​5603: autodoc: Allow to refer to a python class using its canonical name
    when the class has two different names; a canonical name and an alias name
  • #​8539: autodoc: Add :confval:autodoc_typehints_description_target to control
    the behavior of autodoc_typehints=description
  • #​8841: autodoc: :confval:autodoc_docstring_signature will continue to look
    for multiple signature lines without backslash character
  • #​7549: autosummary: Enable :confval:autosummary_generate by default
  • #​8898: extlinks: Allow %s in link caption string
  • #​4826: py domain: Add :canonical: option to python directives to describe
    the location where the object is defined
  • #​7199: py domain: Add :confval:python_use_unqualified_type_names to suppress
    the module name of the python reference if it can be resolved (experimental)
  • #​7068: py domain: Add :rst:dir:py:property directive to describe a property
  • #​7784: i18n: The alt text for image is translated by default (without
    :confval:gettext_additional_targets setting)
  • #​2018: html: :confval:html_favicon and :confval:html_logo now accept URL
    for the image
  • #​8070: html search: Support searching for 2characters word
  • #​9036: html theme: Allow to inherite the search page
  • #​8938: imgconverter: Show the error of the command availability check
  • #​7830: Add debug logs for change detection of sources and templates
  • #​8201: Emit a warning if toctree contains duplicated entries
  • #​8326: master_doc is now renamed to :confval:root_doc
  • #​8942: C++, add support for the C++20 spaceship operator, <=>.
  • #​7199: A new node, sphinx.addnodes.pending_xref_condition has been added.
    It can be used to choose appropriate content of the reference by conditions.

4.0.0b2

  • #​8818: autodoc: Super class having Any arguments causes nit-picky warning
  • #​9095: autodoc: TypeError is raised on processing broken metaclass
  • #​9110: autodoc: metadata of GenericAlias is not rendered as a reference in
    py37+
  • #​9098: html: copy-range protection for doctests doesn't work in Safari
  • #​9103: LaTeX: imgconverter: conversion runs even if not needed
  • #​8127: py domain: Ellipsis in info-field-list causes nit-picky warning
  • #​9121: py domain: duplicated warning is emitted when both canonical and its
    alias objects are defined on the document
  • #​9023: More CSS classes on domain descriptions, see :ref:nodes for details.
  • #​8195: mathjax: Rename :confval:mathjax_config to
    :confval:mathjax2_config and add :confval:mathjax3_config

Bugs fixed

4.0.0b1

  • #​8917: autodoc: Raises a warning if function has wrong globals value
  • #​8415: autodoc: a TypeVar imported from other module is not resolved (in
    Python 3.7 or above)
  • #​8992: autodoc: Failed to resolve types.TracebackType type annotation
  • #​8905: html: html_add_permalinks=None and html_add_permalinks="" are ignored
  • #​8380: html search: Paragraphs in search results are not identified as <p>
  • #​8915: html theme: The translation of sphinx_rtd_theme does not work
  • #​8342: Emit a warning if a unknown domain is given for directive or role (ex.
    :unknown:doc:)
  • #​7241: LaTeX: No wrapping for cpp:enumerator
  • #​8711: LaTeX: backticks in code-blocks trigger latexpdf build warning (and font
    change) with late TeXLive 2019
  • #​8253: LaTeX: Figures with no size defined get overscaled (compared to images
    with size explicitly set in pixels) (fixed for 'pdflatex'/'lualatex' only)
  • #​8881: LaTeX: The depth of bookmarks panel in PDF is not enough for navigation
  • #​8874: LaTeX: the fix to two minor Pygments LaTeXFormatter output issues ignore
    Pygments style
  • #​8925: LaTeX: 3.5.0 verbatimmaxunderfull setting does not work as
    expected
  • #​8980: LaTeX: missing line break in \pysigline
  • #​8995: LaTeX: legacy \pysiglinewithargsret does not compute correctly
    available horizontal space and should use a ragged right style
  • #​9009: LaTeX: "release" value with underscore leads to invalid LaTeX
  • #​8911: C++: remove the longest matching prefix in
    :confval:cpp_index_common_prefix instead of the first that matches.
  • C, properly reject function declarations when a keyword is used
    as parameter name.
  • #​8933: viewcode: Failed to create back-links on parallel build
  • #​8960: C and C++, fix rendering of (member) function pointer types in
    function parameter lists.
  • C++, fix linking of names in array declarators, pointer to member
    (function) declarators, and in the argument to sizeof....
  • C, fix linking of names in array declarators.

4.0.0b2

  • C, C++, fix KeyError when an alias directive is the first C/C++
    directive in a file with another C/C++ directive later.

4.0.0b3

  • #​9167: html: Failed to add CSS files to the specific page

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/sphinx-4.x branch from c21d7ac to 97cf1a5 Compare May 10, 2021 19:19
@nejch
Copy link
Member

nejch commented May 11, 2021

Seems like this slightly breaks formatting from a quick local comparison:

image

Maybe an opportunity to refresh it with a more modern theme :P

@JohnVillalovos
Copy link
Member

@nejch Nice job noticing. If a new theme will fix the problem it sounds reasonable to me.

@nejch
Copy link
Member

nejch commented May 11, 2021

@nejch Nice job noticing. If a new theme will fix the problem it sounds reasonable to me.

It's really a minor thing, but I might have a look on the weekend just for fun :) I've looked at Furo before (where I don't like that there's no dark/light toggle as the dark mode doesn't work that well for code snippets IMO pradyunsg/furo#24) and sphinx-material which is also nice and looks familiar to people using mkdocs. (both are pretty much drop-in replacements with a one line change)

@renovate renovate bot force-pushed the renovate/sphinx-4.x branch from 97cf1a5 to e1516d6 Compare May 20, 2021 13:02
@renovate renovate bot changed the title chore(deps): update dependency sphinx to v4 chore(deps): update dependency sphinx to v4 - autoclosed May 30, 2021
@renovate renovate bot closed this May 30, 2021
@renovate renovate bot deleted the renovate/sphinx-4.x branch May 30, 2021 04:34
@renovate renovate bot changed the title chore(deps): update dependency sphinx to v4 - autoclosed chore(deps): update dependency sphinx to v4 Jun 2, 2021
@renovate renovate bot reopened this Jun 2, 2021
@renovate renovate bot restored the renovate/sphinx-4.x branch June 2, 2021 21:07
@renovate renovate bot force-pushed the renovate/sphinx-4.x branch from e1516d6 to dddcba8 Compare June 2, 2021 21:07
@renovate renovate bot changed the title chore(deps): update dependency sphinx to v4 chore(deps): update dependency sphinx to v4 - autoclosed Jun 8, 2021
@renovate renovate bot closed this Jun 8, 2021
@renovate renovate bot deleted the renovate/sphinx-4.x branch June 8, 2021 10:10
@renovate renovate bot changed the title chore(deps): update dependency sphinx to v4 - autoclosed chore(deps): update dependency sphinx to v4 Jun 8, 2021
@renovate renovate bot reopened this Jun 8, 2021
@renovate renovate bot restored the renovate/sphinx-4.x branch June 8, 2021 11:51
@renovate renovate bot force-pushed the renovate/sphinx-4.x branch from dddcba8 to 868945a Compare June 8, 2021 11:51
@renovate renovate bot force-pushed the renovate/sphinx-4.x branch 2 times, most recently from e08be6d to 4a9ca3e Compare July 11, 2021 18:36
@renovate renovate bot force-pushed the renovate/sphinx-4.x branch from 4a9ca3e to 7f762f5 Compare July 14, 2021 18:38
@renovate renovate bot force-pushed the renovate/sphinx-4.x branch from 7f762f5 to 2e0432d Compare July 26, 2021 17:26
@codecov-commenter
Copy link

Codecov Report

Merging #1450 (2e0432d) into master (a9924f4) will decrease coverage by 8.85%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1450      +/-   ##
==========================================
- Coverage   91.16%   82.30%   -8.86%     
==========================================
  Files          74       74              
  Lines        4177     4177              
==========================================
- Hits         3808     3438     -370     
- Misses        369      739     +370     
Flag Coverage Δ
cli_func_v4 ?
py_func_v4 ?
unit 82.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
gitlab/v4/cli.py 40.37% <0.00%> (-41.14%) ⬇️
gitlab/v4/objects/files.py 52.94% <0.00%> (-39.71%) ⬇️
gitlab/v4/objects/milestones.py 71.42% <0.00%> (-28.58%) ⬇️
gitlab/v4/objects/labels.py 65.21% <0.00%> (-28.27%) ⬇️
gitlab/cli.py 60.34% <0.00%> (-25.87%) ⬇️
gitlab/v4/objects/tags.py 63.88% <0.00%> (-25.00%) ⬇️
gitlab/utils.py 65.51% <0.00%> (-24.14%) ⬇️
gitlab/v4/objects/repositories.py 57.62% <0.00%> (-23.73%) ⬇️
gitlab/v4/objects/settings.py 73.68% <0.00%> (-21.06%) ⬇️
gitlab/v4/objects/sidekiq.py 80.95% <0.00%> (-19.05%) ⬇️
... and 16 more

@renovate renovate bot force-pushed the renovate/sphinx-4.x branch from 2e0432d to 73745f7 Compare October 6, 2021 06:12
@nejch
Copy link
Member

nejch commented Oct 6, 2021

I'll merge this since it's needed to support python 3.10, we can sort out the theme quirks in a follow-up (or change the theme).

@nejch nejch merged commit 6ce56c2 into master Oct 6, 2021
@nejch nejch deleted the renovate/sphinx-4.x branch October 6, 2021 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants