Skip to content

python 3.7.2 rc1 bumped sphinx requirements a bit too much #79653

Closed

Description

@doko42
BPO 35472
Nosy @terryjreedy, @doko42, @vstinner, @ned-deily, @JulienPalard
PRs
  • [3.7] bpo-35472: Allow sphinx 3.6.6 to build Python 3.7 documentation. #11192
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-12-19.10:18:01.841>
    created_at = <Date 2018-12-12.16:30:41.812>
    labels = ['3.7', 'docs']
    title = 'python 3.7.2 rc1 bumped sphinx requirements a bit too much'
    updated_at = <Date 2018-12-24.16:31:42.200>
    user = 'https://github.com/doko42'

    bugs.python.org fields:

    activity = <Date 2018-12-24.16:31:42.200>
    actor = 'ned.deily'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2018-12-19.10:18:01.841>
    closer = 'mdk'
    components = ['Documentation']
    creation = <Date 2018-12-12.16:30:41.812>
    creator = 'doko'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35472
    keywords = ['patch', '3.7regression']
    message_count = 10.0
    messages = ['331705', '331707', '331711', '331718', '331755', '331873', '331985', '332118', '332119', '332484']
    nosy_count = 6.0
    nosy_names = ['terry.reedy', 'doko', 'vstinner', 'ned.deily', 'docs@python', 'mdk']
    pr_nums = ['11192']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue35472'
    versions = ['Python 3.7']

    Activity

    1. doko42 commented on Dec 12, 2018

      @doko42
      MemberAuthor

      python 3.7.2 rc1 bumped the build requirements apparently for no reason, now requiring sphinx 1.7 instead of 1.6.x before. This is a major pain, if you want to provide the build including the documentation on a stable release. Pretty please can we avoid such version bumps on the branches?

      Plus the documentation seems to build fine with 1.6.7.

    2. added
      docs
      on Dec 12, 2018
    3. vstinner commented on Dec 12, 2018

      @vstinner
      Member

      "for no reason"

      I guess that it's related to this change:

      commit c03bf0a
      Author: Adrian Liaw <adrianliaw2000@gmail.com>
      Date: Mon Nov 5 05:04:51 2018 +0800

      Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423)
      

      Extract:

      diff --git a/Doc/conf.py b/Doc/conf.py
      index 6060ac176c..eb57ee0c93 100644
      --- a/Doc/conf.py
      +++ b/Doc/conf.py
      @@ -41,13 +41,18 @@ today_fmt = '%B %d, %Y'
       # By default, highlight as Python 3.
       highlight_language = 'python3'
       
      -# Require Sphinx 1.2 for build.
      -needs_sphinx = '1.2'
      +# Require Sphinx 1.7 for build.
      +needs_sphinx = '1.7'
       
       # Ignore any .rst files in the venv/ directory.
       venvdir = os.getenv('VENVDIR', 'venv')
       exclude_patterns = [venvdir+'/*', 'README.rst']
       
      +# Disable Docutils smartquotes for several translations
      +smartquotes_excludes = {
      +    'languages': ['ja', 'fr', 'zh_TW', 'zh_CN'], 'builders': ['man', 'text'],
      +}
      +

      According to Sphinx changelog, smartquotes_excludes is a new feature of Sphinx 1.6.6:

      https://www.sphinx-doc.org/en/master/changes.html#release-1-6-6-released-jan-08-2018

    4. ned-deily commented on Dec 12, 2018

      @ned-deily
      Member

      Julien can give the definite answer. But, sorry, I don't see this as a release blocker. We've had to bump Sphinx versions for a number of reasons as the documentation has become more sophisticated between cycles and over a release cycle. In fact, we're now using 1.8.2 for release builds. And it shouldn't be an issue at all if one uses the doc Makefile venv target:

      make venv
      make html

    5. JulienPalard commented on Dec 12, 2018

      @JulienPalard
      Member

      Hi Matthias,

      Sorry to hear it's a pain for you. Can you explain in more details what hurt your workflow?

      We bumped Sphinx, as Victor said, to fix rendering issues in those documentation translations: zh-tw, zh-cn, fr and ja, so it's not a feature or an ideology of "being up-to-date", we were fixing an issue in those 4 translations.

      Please also note that in the near future we'll probably stick to a fresh version of Sphinx as we're expecting other fixes or features to land, I don't have all of them in mind but at least:

      The colspan/rowspan thing is needed for the documentation of Python 3.8, so we'll have to bump to sphinx 2.0 for Python 3.8.

    6. doko42 commented on Dec 13, 2018

      @doko42
      MemberAuthor

      "if one uses the doc Makefile venv target". which is not possible for distributions which are not allowed to use anything but the distro to build the distro.

      so why bumping the version requirement to 1.7 instead of 1.6.6? Afaicu this is the required version.

      I don't argue against introducing new build requirements in major versions, but having them introduced on the branches.

    7. terryjreedy commented on Dec 14, 2018

      @terryjreedy
      Member

      Should we add '(subject to change in any release)' after
      # Require Sphinx 1.7 for build.

      Matthias, I presume you are on some Linux. Would a script to temporarily change conf.py to build the docs work for you?

      To be reasonably sure that 1.6.6 is sufficient for all translations on all systems that care, I would think it should be part of a .rc release first.

    8. JulienPalard commented on Dec 17, 2018

      @JulienPalard
      Member

      Hi Matthias,

      I agree that for the smartquotes issue the 1.6.6 should be enough. But we had multiple small issues fixed in some versions of Sphinx. But mostly for translation and I don't think you're building the translations?

      Also the needs_sphinx is only the minimum required version to build, it won't disallow me using sphinx 1.7 or 1.8 on docs.python.org to build the documentation.

      The needs_sphinx flag only supports "micro" value since 1.4, but looks compatible with it before (04a8c26eabba3e728a5b74afd15f328f9235b2d0 in the sphinx repo).

      So it looks OK to allow 1.6.6 as a minimum required version for 3.7, opening a PR on it.

    9. changed the title [-]python 3.7.2 rc1 bumped the build requirements for no reason[/-] [+]python 3.7.2 rc1 bumped sphinx requirements a bit too much[/+] on Dec 17, 2018
    10. JulienPalard commented on Dec 19, 2018

      @JulienPalard
      Member

      New changeset a9ed8fc by Julien Palard in branch '3.7':
      bpo-35472: Doc: For Python 3.7 Sphinx 1.6.6 is enough. (GH-11192)
      a9ed8fc

    11. JulienPalard commented on Dec 19, 2018

      @JulienPalard
      Member

      Matthias, I downgraded the needs_sphinx to 1.6.6, as it does not disallow me to use an up-to-date sphinx in the doc server I'm ok with this.

      Hope it helps.

    12. ned-deily commented on Dec 24, 2018

      @ned-deily
      Member

      New changeset 371ca0b by Ned Deily (Julien Palard) in branch '3.7':
      bpo-35472: Doc: For Python 3.7 Sphinx 1.6.6 is enough. (GH-11192)
      371ca0b

    13. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)docs

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions