summaryrefslogtreecommitdiff
path: root/sphinx/cmd/quickstart.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix double space inconsistences in code, CHANGES and translations.Álvaro Mondéjar2020-05-091-2/+2
| |
| * Add stacklevel parameter to warnings.warn() callTakeshi KOMIYA2020-05-031-1/+1
| |
* | Remove deprecated features marked as RemovedInSphinx40WarningTakeshi KOMIYA2020-04-291-40/+2
|/
* Merge branch '2.0'Takeshi KOMIYA2020-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2020-01-011-1/+1
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-12-221-5/+5
|\ \ | |/
| * Replace `a and b or c` by the more legible `b if a or c`.Antony Lee2019-12-211-5/+5
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-07-011-44/+22
|\ \ | |/
| * Migrate to py3 style type annotation: sphinx.cmd.quickstartTakeshi KOMIYA2019-06-301-44/+22
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-06-151-1/+1
|\ \ | |/
| * Fix #6464: updated invalid links of language codes in quickstart and all ↵Bingyao Liu2019-06-091-1/+1
| | | | | | | | locale po files
* | Merge branch '2.0'Takeshi KOMIYA2019-06-021-1/+1
|\ \ | |/
| * Fix the string in quickstart for 'path' argument of parserjfbu2019-04-141-1/+1
| |
| * Python-3-only clean ups discovered by pyupgradeJon Dufresne2019-03-191-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/asottile/pyupgrade > A tool to automatically upgrade syntax for newer versions of the > language. - Drop u str prefix - Drop base object inheritance - Drop args to super() - Use set literals - Use dict comprehension - Use set comprehension
* | refactor quickstartTakeshi KOMIYA2019-04-011-80/+76
| |
* | Python-3-only clean ups discovered by pyupgradeJon Dufresne2019-03-171-6/+5
|/ | | | | | | | | | | | | | https://github.com/asottile/pyupgrade > A tool to automatically upgrade syntax for newer versions of the > language. - Drop u str prefix - Drop base object inheritance - Drop args to super() - Use set literals - Use dict comprehension - Use set comprehension
* Closes #4148: quickstart: some questions are removedTakeshi KOMIYA2019-02-121-12/+12
|
* Remove unused template variablesTakeshi KOMIYA2019-02-111-13/+1
|
* refactor: Use repr() to make escaped string in template for conf.pyTakeshi KOMIYA2019-01-031-7/+0
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Replace use of six.text_type with strJon Dufresne2018-12-181-5/+3
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | Merge branch '1.8'Takeshi KOMIYA2018-12-181-1/+1
|\ \ | |/
| * Fix #5724: quickstart: sphinx-quickstart fails when $LC_ALL is emptyTakeshi KOMIYA2018-12-171-1/+1
| |
* | Deprecate quickstart.term_decode() and remove internal usesJon Dufresne2018-12-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per the Python 3 docs, input() always returns a string: https://docs.python.org/3/library/functions.html#input > The function then reads a line from input, converts it to a > string (stripping a trailing newline), and returns that. The stubs from typeshed say the same: https://github.com/python/typeshed/blob/5c69373890dfaf4f07f0638766fb0a4903352892/stdlib/3/builtins.pyi#L835 Here is the implementation from CPython with also shows a call to PyUnicode_Decode on the result: https://github.com/python/cpython/blob/3.7/Python/bltinmodule.c#L1960-L2143 As the value is always a string, there is nothing to decode. Therefore the call to term_decode() unnecessary and can safely be removed. With this in mind, must adjust quickstart tests to be more representative.
* | 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.
* | refactor: Remove u-prefix from stringsTakeshi KOMIYA2018-12-161-2/+2
| |
* | Merge pull request #5803 from jdufresne/encoding-utf8Takeshi KOMIYA2018-12-161-1/+1
|\ \ | | | | | | Avoid respecifying default encoding for .encode()/.decode() calls
| * | Avoid respecifying default encoding for .encode()/.decode() callsJon Dufresne2018-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, both .encode() and .decode() default the encoding to 'utf-8'. See the docs: https://docs.python.org/3/library/stdtypes.html#str.encode https://docs.python.org/3/library/stdtypes.html#bytes.decode Simplify and shorten the code by using the default instead of respecifying it.
* | | Use Python 3 super() argument-less syntaxJon Dufresne2018-12-151-2/+2
|/ / | | | | | | | | | | The form is less verbose and more idiomatic for Python 3 only code. https://docs.python.org/3/library/functions.html#super
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-18/+17
| |
* | Remove print_function featureTakeshi KOMIYA2018-12-151-1/+0
| |
* | Move to py3 mode for mypy (and remove many "type: ignore" comments)Takeshi KOMIYA2018-12-151-1/+1
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Simplify ensuredir() with Python3 stdlib featuresJon Dufresne2018-11-201-3/+2
| | | | | | | | | | | | | | | | | | - Simplify ensuredir() to equivalent os.makedir(name, exist_ok=True) - Do not check if a directory exists before calling ensuredir() (ensuredir() already handles it) - Add exist_ok argument to path.makedirs() to follow same pattern - Drop unnecessary .exists() check immediately before .isdir() - Add tests for ensuredir
* | Remove use of six.binary_typeJon Dufresne2018-11-111-6/+1
| | | | | | | | | | | | Remove type checks for cases that don't apply to Python 3. For remaining uses, use bytes instead
* | Remove use six.move moduleTakeshi KOMIYA2018-11-121-2/+2
| |
* | Merge branch '1.8'jfbu2018-11-061-5/+5
|\ \ | |/
| * Fix #5557: quickstart: --no-batchfile isn't honoredTakeshi KOMIYA2018-11-011-5/+5
| |
* | Merge branch '1.8'Takeshi KOMIYA2018-10-161-2/+2
|\ \ | |/
| * Fix mypy violationsTakeshi KOMIYA2018-10-161-2/+2
| |
* | Remove uses of six.moves that did not cause any type errorsJon Dufresne2018-09-231-1/+0
| | | | | | | | | | Removal of the remaining imports may require passing "--python-version 3.5" to the mypy command.
* | Merge branch 'master' into openTakeshi KOMIYA2018-09-221-21/+8
|\ \
| * | refactoring: Drop PY2 and PY3 flagsTakeshi KOMIYA2018-09-221-21/+8
| |/
* | Prefer builtin open() over io.open() and codecs.open()Jon Dufresne2018-09-111-2/+1
|/ | | | | | | | | | | | In Python3, the functions io.open() is an alias of the builtin open() and codecs.open() is functionally equivalent. To reduce indirection, number of imports, and number of patterns, always prefer the builtin. https://docs.python.org/3/library/io.html#high-level-module-interface > io.open() > > This is an alias for the builtin open() function.
* Fix #5127: quickstart: ``Makefile`` and ``make.bat`` are not overwritten if ↵Takeshi KOMIYA2018-09-031-1/+1
| | | | exists
* Merge branch '1.7' into 1.8Takeshi KOMIYA2018-08-291-2/+10
|\
| * Fix #5335: quickstart: escape sequence has been displayed with MacPorts' pythonTakeshi KOMIYA2018-08-251-2/+10
| |