1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

Conditionally depend on imgconverter for newer versions of Sphinx (#6536)

Fixes #6343.

* conditionally depend on imgconverter

* Pin docutils dependency for old Sphinx bug
This commit is contained in:
sydneyli
2018-12-04 10:56:15 -08:00
committed by Brad Warren
parent daa77b5023
commit f5aad1440f
4 changed files with 11 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ Certbot adheres to [Semantic Versioning](http://semver.org/).
### Fixed
* Update code and dependencies to clean up Resource and Deprecation Warnings.
* Only depend on imgconverter extension for Sphinx >= 1.6
Despite us having broken lockstep, we are continuing to release new versions of
all Certbot components during releases for the time being, however, the only

View File

@@ -17,6 +17,8 @@ import os
import re
import sys
import sphinx
here = os.path.abspath(os.path.dirname(__file__))
@@ -33,14 +35,13 @@ sys.path.insert(0, os.path.abspath(os.path.join(here, '..')))
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
needs_sphinx = '1.0'
needs_sphinx = '1.2'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.imgconverter',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
@@ -48,6 +49,9 @@ extensions = [
'repoze.sphinx.autointerface',
]
if sphinx.version_info >= (1, 6):
extensions.append('sphinx.ext.imgconverter')
autodoc_member_order = 'bysource'
autodoc_default_flags = ['show-inheritance', 'private-members']

View File

@@ -68,9 +68,10 @@ dev3_extras = [
]
docs_extras = [
# If you have Sphinx<1.5.1, you need docutils<0.13.1
# https://github.com/sphinx-doc/sphinx/issues/3212
'repoze.sphinx.autointerface',
# sphinx.ext.imgconverter
'Sphinx >=1.6',
'Sphinx>=1.2', # Annotation support
'sphinx_rtd_theme',
]

View File

@@ -14,7 +14,7 @@ coverage==4.4.2
decorator==4.1.2
dns-lexicon==2.7.14
dnspython==1.15.0
docutils==0.14
docutils==0.12
execnet==1.5.0
future==0.16.0
futures==3.1.1