Skip to content

Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds #75122

Closed

Description

@ned-deily
BPO 30939
Nosy @brettcannon, @larryhastings, @ned-deily
PRs
  • bpo-30939: Avoid Sphinx deprecation warning in docs build. #2721
  • Perform 'blurb split' for master. #2719
  • [3.6] bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721) #2722
  • [3.5] bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721) #2723
  • [3.4] bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721) #2724
  • [2.7] bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721) #2725
  • 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 2017-07-24.09:02:21.134>
    created_at = <Date 2017-07-15.19:19:13.621>
    labels = ['3.7', 'docs']
    title = 'Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive in docs builds'
    updated_at = <Date 2019-05-10.18:16:15.459>
    user = 'https://github.com/ned-deily'

    bugs.python.org fields:

    activity = <Date 2019-05-10.18:16:15.459>
    actor = 'ned.deily'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2017-07-24.09:02:21.134>
    closer = 'ned.deily'
    components = ['Documentation']
    creation = <Date 2017-07-15.19:19:13.621>
    creator = 'ned.deily'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30939
    keywords = []
    message_count = 8.0
    messages = ['298401', '298402', '298404', '298405', '298409', '298451', '298461', '298864']
    nosy_count = 4.0
    nosy_names = ['brett.cannon', 'larry', 'ned.deily', 'docs@python']
    pr_nums = ['2721', '2719', '2722', '2723', '2724', '2725']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue30939'
    versions = ['Python 2.7', 'Python 3.3', 'Python 3.4', 'Python 3.5', 'Python 3.6', 'Python 3.7']

    Activity

    1. ned-deily commented on Jul 15, 2017

      @ned-deily
      MemberAuthor

      [..]/sphinx/util/compat.py:40: RemovedInSphinx17Warning: sphinx.util.compat.Directive is deprecated and will be removed in Sphinx 1.7, please use docutils' instead.
      RemovedInSphinx17Warning)

      The solution is to import Directive directly from docutils. PR to follow for master, needs to be cherrypicked to all maintenance branches and, ideally, all current security-only branches.

    2. ned-deily commented on Jul 15, 2017

      @ned-deily
      MemberAuthor

      New changeset 50f5816 by Ned Deily in branch 'master':
      bpo-30939: Avoid Sphinx deprecation warning in docs build. (bpo-2721)
      50f5816

    3. ned-deily commented on Jul 15, 2017

      @ned-deily
      MemberAuthor

      New changeset bbd0f42 by Ned Deily in branch '3.6':
      bpo-30939: Avoid Sphinx deprecation warning in docs build. (bpo-2721) (bpo-2722)
      bbd0f42

    4. ned-deily commented on Jul 15, 2017

      @ned-deily
      MemberAuthor

      New changeset ada3f31 by Ned Deily in branch '3.5':
      bpo-30939: Avoid Sphinx deprecation warning in docs build. (bpo-2721) (bpo-2723)
      ada3f31

    5. ned-deily commented on Jul 16, 2017

      @ned-deily
      MemberAuthor

      New changeset 64a9f3d by Ned Deily in branch '2.7':
      bpo-30939: Avoid Sphinx deprecation warning in docs build. (bpo-2721) (bpo-2725)
      64a9f3d

    6. brettcannon commented on Jul 16, 2017

      @brettcannon
      Member

      I wonder if we should pin sphinx directly instead of the approximate pin we
      have now to prevent this sort of thing in the future? I had figured they
      wouldn't introduce a new warning in a bugfix release but I was wrong in
      that assumption.

      On Sat, Jul 15, 2017, 12:19 Ned Deily, <report@bugs.python.org> wrote:

      New submission from Ned Deily:

      [..]/sphinx/util/compat.py:40: RemovedInSphinx17Warning:
      sphinx.util.compat.Directive is deprecated and will be removed in Sphinx
      1.7, please use docutils' instead.
      RemovedInSphinx17Warning)

      The solution is to import Directive directly from docutils. PR to follow
      for master, needs to be cherrypicked to all maintenance branches and,
      ideally, all current security-only branches.

      ----------
      assignee: docs@python
      components: Documentation
      messages: 298401
      nosy: brett.cannon, docs@python, larry, ned.deily
      priority: normal
      severity: normal
      stage: patch review
      status: open
      title: Sphinx 1.6.3 deprecation warning for sphinx.util.compat.Directive
      in docs builds
      versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6,
      Python 3.7


      Python tracker <report@bugs.python.org>
      <http://bugs.python.org/issue30939\>


    7. ned-deily commented on Jul 17, 2017

      @ned-deily
      MemberAuthor

      I wonder if we should pin sphinx directly instead of the approximate pin we
      have now to prevent this sort of thing in the future?

      Perhaps. OTOH, we will find out about Sphinx incompatibilities pretty quickly that way, rather than having doc builds potentially silently fail or only finding out about the problem at release time.

    8. larryhastings commented on Jul 22, 2017

      @larryhastings
      Contributor

      New changeset 3b3a5a5 by larryhastings (Ned Deily) in branch '3.4':
      bpo-30939: Avoid Sphinx deprecation warning in docs build. (bpo-2721) (bpo-2724)
      3b3a5a5

    9. 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)end of lifedocsDocumentation in the Doc dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions