Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-09-21 12:28:44 +0300
committerStephen Finucane <stephen@that.guru>2017-10-02 17:39:31 +0300
commit89f9c7cab74298a243ac409c26d25eb2b137bf03 (patch)
treee9dc5f3ca02bb95f6d17b096a053d5e80257a484 /setup.py
parentd736efbdabfe1b76297357a75eafdf7267c6c58d (diff)
sphinx-build: Move code out of 'sphinx.__init__'
We have multiple executables in tree and, while 'sphinx-build' is arguably the most important of these, there's no reason its importance should warrant inclusion at the package level. Create a new module, 'sphinx.cmd', and move the code from 'sphinx.__init__' into a 'build' submodule within. This name might be a bit disingenuous at present, given the availability of 'make-mode' here too, but that's an artifact of the current executable design and can be cleaned up later. To avoid breaking packages that are using this feature directly, aliases for the old 'main' method are included. This is based on what Django does [1] and, like Django, will allow us to safely remove the old modules in Sphinx 2.0. [1] 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 8a0ab0776..d55fa2a64 100644
--- a/setup.py
+++ b/setup.py
@@ -239,7 +239,7 @@ setup(
include_package_data=True,
entry_points={
'console_scripts': [
- 'sphinx-build = sphinx:main',
+ 'sphinx-build = sphinx.cmd.build:main',
'sphinx-quickstart = sphinx.quickstart:main',
'sphinx-apidoc = sphinx.ext.apidoc:main',
'sphinx-autogen = sphinx.ext.autosummary.generate:main',