summaryrefslogtreecommitdiff
path: root/tests/test_quickstart.py
Commit message (Collapse)AuthorAgeFilesLines
* test: Use read_text() and read_bytes()Takeshi KOMIYA2020-02-011-1/+1
|
* A happy new year!Takeshi KOMIYA2020-01-011-1/+1
|
* quickstart: Simplify generated conf.py (master_doc)Takeshi KOMIYA2019-02-091-1/+0
|
* quickstart: Simplify generated conf.py (source_suffix)Takeshi KOMIYA2019-02-091-1/+0
|
* quickstart: Simplify generated conf.py (for latex)Takeshi KOMIYA2019-01-071-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-2/+0
| | | | | | | | | | This removes the last use of the six package allowing Sphinx to remove it as a dependency.
* | Deprecate quickstart.term_decode() and remove internal usesJon Dufresne2018-12-171-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | 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-11/+11
| |
* | Avoid respecifying default encoding for .encode()/.decode() callsJon Dufresne2018-12-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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.
* | refactor: Replace six.StringIO by io.StringIOTakeshi KOMIYA2018-12-151-1/+2
| |
* | quickstart: Simplify generated conf.py (for manpage)Takeshi KOMIYA2018-12-021-4/+0
| |
* | Merge pull request #5607 from tk0miya/smart_texinfo_conf_pyTakeshi KOMIYA2018-12-021-5/+0
|\ \ | | | | | | quickstart: Simplify generated conf.py (for texinfo)
| * | quickstart: Simplify generated conf.py (for texinfo)Takeshi KOMIYA2018-11-111-5/+0
| | |
* | | Merge branch '1.8'Takeshi KOMIYA2018-11-221-1/+1
|\ \ \ | |/ / |/| / | |/
| * Fix "invalid escape sequence" warnings emitted during testsJon Dufresne2018-11-131-1/+1
| | | | | | | | | | | | | | sphinx/tests/test_quickstart.py:221: DeprecationWarning: invalid escape sequence '\*' content = filename.bytes().decode('unicode-escape') sphinx/tests/test_quickstart.py:221: DeprecationWarning: invalid escape sequence '\`' content = filename.bytes().decode('unicode-escape')
* | 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.
* | refactoring: Drop PY2 and PY3 flagsTakeshi KOMIYA2018-09-221-7/+2
|/
* conf.py: Drop epub_author, epub_publisher and epub_copyrightTakeshi KOMIYA2018-08-051-1/+0
| | | | | The default values of them are same as conf.py's. So it is not needed to override the setting.
* Fix flake8 violationsTakeshi KOMIYA2018-02-191-1/+1
|
* Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
| * refs #3458: add sphinx.testing that are moved from /tests directory.shimizukawa2017-05-141-1/+1
| |
* | Fix flake8 violationsTakeshi KOMIYA2017-12-231-1/+0
| |
* | quickstart: Rework how we collect extensionsStephen Finucane2017-12-031-1/+0
| | | | | | | | | | | | | | | | | | | | This is a little more flexible than the existing set up and makes maximum use of argparse capabilities. This has the side-effect of no longer including configuration for the 'sphinx.ext.todo' extension when said extension is not enabled. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | quickstart: Rework 'do_prompt' functionStephen Finucane2017-12-031-39/+24
| | | | | | | | | | | | | | The 'd' and 'key' values are used on a single line. Move these outside the function to allow us to do other things with this function. Signed-off-by: Stephen Finucane <stephen@that.guru>
* | sphinx-quickstart: Move code to 'sphinx.cmd'Stephen Finucane2017-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're going to move the executable's here (or at least those that part of the core library). The 'sphinx-build' executable was already moved, so lets do 'sphinx-quickstart' next. 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>
* | Merge pull request #3668 from adamjstewart/fixes/apidoc-main-argvTakeshi KOMIYA2017-05-141-2/+1
|\ \ | | | | | | Don't ignore first argument passed to sphinx.apidoc.main
| * | Fix failing unit testsAdam J. Stewart2017-05-111-2/+1
| |/
* | Remove deprecated testing utilitiesTakeshi KOMIYA2017-04-271-3/+1
|/
* Year++Takeshi KOMIYA2017-03-261-1/+1
|
* pytest: remove deprecated raises and raises_msg assert functionsshimizukawa2017-01-061-2/+4
|
* pytest: remove deprecated with_tempdir decoratorshimizukawa2017-01-061-7/+1
|
* Add ``--extensions`` to ``sphinx-quickstart`` to support enable arbitary ↵Takeshi KOMIYA2016-11-021-0/+13
| | | | extensions from command line (ref: #2904)
* Merge branch 'stable'Georg Brandl2016-01-141-1/+1
|\
| * Obligatory copyright update.Georg Brandl2016-01-141-1/+1
| |
* | Add sphinx.ext.githubpages to publish the docs on GitHub PagesTakeshi KOMIYA2016-01-061-0/+1
| |
* | Replace pngmath with imgmath in quickstart.Hong Xu2015-12-291-1/+1
|/
* ref #1776: test fixed.shimizukawa2015-03-161-2/+2
|
* source_suffix can now be a list.Georg Brandl2015-02-081-2/+2
|
* Added insertion of todo_include_todos config option.Ian Lee2015-02-071-2/+6
| | | | Set to True when we enable 'ext_todo' during the quickstart process.
* Merge branch 'stable'Georg Brandl2015-01-031-1/+1
|\
| * all: update copyrightGeorg Brandl2015-01-031-1/+1
| |
* | Complete test suite overhaul.Georg Brandl2014-09-211-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | * rename a few test modules to make the names more consistent * do not copy/use Sphinx from build/ (unnecessary without 2to3) * use a temporary dir for *all* test projects, the source tree will stay pristine that way (default is tests/build) * speed up tests by ~3x by splitting up test projects and avoiding rebuilds
* | * Drop Python-3.2. And now, removing 2to3 mechanism procedure has been ↵Takayuki Shimizukawa2014-05-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | completed. Closes #1350. Pygments-2.0 will drop Python-3.2. The snowballstemmer package that is referred from sphinx-1.3 (that is merged at pull request #214) has not supported Python-3.2. We decided to drop the Python-3.2. see also https://bitbucket.org/birkenfeld/sphinx/pull-request/243/native-py2-py3-support-without-2to3-refs
* | remove 'six' name except importing line.Takayuki Shimizukawa2014-04-301-8/+8
| |
* | use six privided text_type() to replace with unicode() to support py2/py3 in ↵Takayuki Shimizukawa2014-04-291-1/+2
| | | | | | | | one source. refs #1350.
* | use six privided functions/classes to support py2/py3 in one source. refs #1350.Takayuki Shimizukawa2014-04-291-17/+14
| |