summaryrefslogtreecommitdiff
path: root/sphinx/cmdline.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop features and APIs deprecated in 1.8Takeshi KOMIYA2019-03-301-49/+0
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Merge pull request #5509 from stephenfin/remove-future-importsTakeshi KOMIYA2018-12-171-1/+0
|\ \ | | | | | | Remove future imports
| * | py3: Remove (most) __future__ importsStephen Finucane2018-12-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two used: - print_function - absolute_import Both of these are mandatory in Python 3.0 onwards [1] and can therefore be removed...mostly. Unfortunately, mypy is still running in Python 2.7 mode, meaning we need the 'print_function' future wherever we're calling 'print' with the 'file' argument. There's also a single 'absolute_import' future that must be retained as its removal breaks a test for as-yet unknown reasons. TODOs are added to resolve both issues in the future. [1] https://docs.python.org/3/library/__future__.html Signed-off-by: Stephen Finucane <stephen@that.guru>
* | | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-2/+2
| |
* | Remove print_function featureTakeshi KOMIYA2018-12-151-1/+0
|/
* Fix #5471: Show appropriate warning for deprecated APIsTakeshi KOMIYA2018-10-171-4/+4
|
* Merge branch '1.7'Takeshi KOMIYA2018-03-181-2/+2
|\
| * Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | | | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* | Supports i18n console outputTakeshi KOMIYA2018-02-251-0/+1
| |
* | Merge branch 'master' into move_cmdline_to_cmd.buildTakeshi KOMIYA2018-02-241-2/+2
|\ \
| * \ Merge branch '1.7'Takeshi KOMIYA2018-02-181-2/+2
| |\ \ | | |/
| | * Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
| | |
* | | Fix mypy violationsTakeshi KOMIYA2018-02-171-1/+2
| | |
* | | Re-add sphinx.cmdline to keep compatibilityTakeshi KOMIYA2018-02-171-0/+50
| | |
* | | Rename sphinx.cmdline to sphinx.cmd.buildTakeshi KOMIYA2018-02-171-294/+0
|/ / | | | | | | Only doing ``git mv`` to keep git history.
* | Merge branch '1.7-release'Takeshi KOMIYA2018-01-311-2/+2
|\ \ | |/
| * Use flake8-import-orderTakeshi KOMIYA2018-01-281-1/+1
| |
* | Merge branch '1.7-release'Takeshi KOMIYA2018-01-211-3/+20
|\ \ | |/
| * Validate -j option is positiveTakeshi KOMIYA2018-01-161-1/+5
| |
| * Update docstringTakeshi KOMIYA2018-01-131-1/+1
| |
| * Fix jobs_argument() should accept string as an argumentTakeshi KOMIYA2018-01-131-2/+2
| |
| * Merge branch 'master' into sphinx-build-set-proc-count-to-cpu-countTakeshi KOMIYA2018-01-131-36/+22
| |\
| * | Fixing typo in help stringmark floyd2017-12-011-1/+1
| | |
| * | sphinx-build: Add support for "-j auto"mark floyd2017-12-011-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adjust -j argument so it can accept special keyword "auto", which will set -j to the number of CPUs on machine. Change was inspired by headaches while trying to find the best way to get sphinx-build to use the max number of cores from any machine we build on (Ubuntu, Mac, AWS Linux, etc). Rather than write external scripts to set this (sysctl calls, grepping /proc/cpuinfo, etc), it made more sense to build the functionality into sphinx-build itself. Change Summary: * New custom type in sphinx.cmdline for handling -j argument * Adjusted help string for -j flag
* | | app: Centralize directory validationStephen Finucane2018-01-201-27/+13
| |/ |/| | | | | | | | | | | | | | | | | This allows us to avoid duplication of code and ensure validation happens regardless of who's initializing the class. We introduce a new exception - ApplicationError - to indicate these kinds of issues. This subclasses SphinxError, meaning we don't need to modify our exception handling code. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\ \
| * | A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| | |
| * | Fix typo in output of sphinx-build -h.Antony Lee2017-09-171-1/+1
| | |
* | | sphinx-build: Use 'ArgumentParser.error'Stephen Finucane2017-12-041-35/+21
| |/ |/| | | | | | | | | | | | | This simplifies a common pattern used here. This does result in a change in the output code from 1 to 2 for some cases, but this shouldn't be an issue as we already emit 2 for any parser issues. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | sphinx-build: Move parser to a separate functionStephen Finucane2017-10-091-6/+29
| | | | | | | | | | | | This should be becoming passe at this point. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | sphinx-build: Convert to argparseStephen Finucane2017-10-091-129/+101
| | | | | | | | | | | | | | | | Once again, not much different to the previous conversions. We make best use of the argparse module, allowing us to remove some funky workarounds. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | Fix typo in output of sphinx-build -h.Antony Lee2017-09-081-1/+1
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-05-281-2/+2
|\ \ | |/
| * Refactor patching docutilsTakeshi KOMIYA2017-05-281-2/+2
| |
* | typing -> typeAdam J. Stewart2017-05-131-1/+1
| |
* | Placate mypyAdam J. Stewart2017-05-131-1/+1
| |
* | Fix failing unit testsAdam J. Stewart2017-05-111-1/+1
| |
* | Update other commands as wellAdam J. Stewart2017-05-091-1/+1
|/
* Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Upgrade to mypy-0.5Takeshi KOMIYA2017-03-031-4/+4
| |
* | Use "--color" and "--no-color" optionsStefan Scherfke2017-02-071-8/+6
| |
* | Add "--color" option to sphinx-build (fixes issue #3248).Stefan Scherfke2017-02-061-4/+7
| |
* | Add type-check annotations to sphinx.*Takeshi KOMIYA2016-11-161-8/+17
|/
* Merge branch 'stable'Takeshi KOMIYA2016-11-061-1/+1
|\
| * Allow the '=' character in the -D option of sphinx-build.pyDaniel2016-10-201-1/+1
| |
* | Fix #2687: Uninstall sphinx directives and roles after buildTakeshi KOMIYA2016-09-211-5/+7
| |