summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-07-11 16:24:07 +0100
committerStephen Finucane <stephen@that.guru>2017-09-20 13:42:57 +0100
commit96cf498c9e63f0469279ff142a90d2e8de695a85 (patch)
treeb11b371facdb04faa3a2650b3a7339211f43ab66 /setup.py
parent228fdb892af25f4b93f2760f2cd6497f2aabc0be (diff)
downloadsphinx-git-96cf498c9e63f0469279ff142a90d2e8de695a85.tar.gz
apidoc: Move apidoc to ext/apidoc
The 'sphinx-apidoc' tool is no longer the only kid on the block when it comes to automatic documentation of Python projects, with the likes of 'sphinx-autoapi' in development [1], and is not really maintained. Given the fact that the tool is tangential to Sphinx's main goal, there isn't really anything that warrants its continue existence as a core module. Signify this by moving the feature to 'ext'. This allows the feature to continue to exist in the package, but indicates that stability might be worse than one would expect from the core library. To avoid breaking packages that are using this feature directly, such as pbr [3], aliases for the old 'main' method are included. This is based on what Django does and, like Django, will allow us to safely remove the old modules in Sphinx 2.0. [1] https://github.com/rtfd/sphinx-autoapi [2] https://github.com/sphinx-doc/sphinx/pull/3485#issuecomment-288081223 [3] https://github.com/django/django/blob/1.11/django/test/runner.py#L688-L695 Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index e5453f645..8a0ab0776 100644
--- a/setup.py
+++ b/setup.py
@@ -241,7 +241,7 @@ setup(
'console_scripts': [
'sphinx-build = sphinx:main',
'sphinx-quickstart = sphinx.quickstart:main',
- 'sphinx-apidoc = sphinx.apidoc:main',
+ 'sphinx-apidoc = sphinx.ext.apidoc:main',
'sphinx-autogen = sphinx.ext.autosummary.generate:main',
],
'distutils.commands': [