Skip to content
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

Fix #3212: HTML Builders crashes with docutils-0.13 #3217

Merged
merged 1 commit into from
Dec 10, 2016

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Dec 10, 2016

refs #3212.

@@ -15,8 +15,8 @@ env:
- PYTHONFAULTHANDLER=x
- PYTHONWARNINGS=all
matrix:
- DOCUTILS=0.11
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this PR, I removed docutils-0.11 from test matrix to prevent to increase test time.
@shimizukawa what do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's OK to me.
IMO, it is sufficient to keep only the last two versions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tk0miya tk0miya requested a review from shimizukawa December 10, 2016 11:54
@tk0miya tk0miya added this to the 1.5.1 milestone Dec 10, 2016
@tk0miya tk0miya merged commit bd06ec2 into sphinx-doc:stable Dec 10, 2016
@tk0miya tk0miya deleted the 3212_docutils_0.13 branch December 10, 2016 13:53
@@ -532,6 +533,16 @@ def visit_image(self, node):
node['height'] = str(size[1])
BaseTranslator.visit_image(self, node)

# overwritten
def depart_image(self, node):
if docutils.__version__ >= "0.13":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comparison doesn't always work:

>>> '0.9' >= '0.13'
True

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I post a new PR for this: #3225.

tk0miya added a commit to tk0miya/sphinx that referenced this pull request Dec 11, 2016
tk0miya added a commit to tk0miya/sphinx that referenced this pull request Dec 12, 2016
tk0miya added a commit that referenced this pull request Dec 12, 2016
return42 referenced this pull request in return42/linuxdoc Oct 17, 2018
BTW: add pylint *disables* for handled *deprecation* warnings

Bugfixes:

- Sphinx <= 1.4 (bug in docutils >= 0.13) : HTML Builders crashes with
  docutils-0.13 `[ref] <https://github.com/sphinx-doc/sphinx/pull/3217>`__

Downward compatibility:

- Sphinx >= 1.6: ``Sphinx.warn()``, ``Sphinx.info()`` and other logging methods are
  now deprecated.  Please use ``sphinx.util.logging`` instead.  It will be
  removed in Sphinx-2.0.

- Sphinx >= 1.7: ``sphinx.ext.autodoc.AutodocReporter`` is replaced by
  ``sphinx.util.docutils.  switch_source_input()`` and now deprecated.  It will
  be removed in Sphinx-2.0.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants