Skip to content

Commit

Permalink
Support Sphinx 1.7+
Browse files Browse the repository at this point in the history
Move: from sphinx.util.compat import Directive
To: from docutils.parsers.rst import Directive
  • Loading branch information
dawranliou committed May 14, 2018
1 parent fdceb39 commit 2c79295
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/clickdoctools.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from docutils.statemachine import ViewList

from sphinx.domains import Domain
from sphinx.util.compat import Directive
from docutils.parsers.rst import Directive

PY2 = sys.version_info[0] == 2

Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
maintainer_email='[email protected]',
long_description=readme,
packages=['click'],
extras_require={
'docs': [
'sphinx',
],
},
description='A simple wrapper around optparse for '
'powerful command line utilities.',
license='BSD',
Expand Down

0 comments on commit 2c79295

Please sign in to comment.