Commit Graph

11774 Commits

Author SHA1 Message Date
Jon Dufresne
9fb75a9af8 Correct capitalization of PyPI
As spelled on https://pypi.org/.
2018-09-16 13:41:09 -07:00
Takeshi KOMIYA
65e3fd78e4 napoleon: Use collections.abc
collections.Callable was moved to under collections.abc package
since python 3.3.  And python 3.8 will remove it.  So this imports
it from new localtion.
2018-09-17 01:01:21 +09:00
Takeshi KOMIYA
d63c4884b6
Merge pull request #5443 from tk0miya/5417_crashed_with_py275
Fix #5417: Sphinx fails to build with syntax error in Python 2.7.5
2018-09-17 00:59:42 +09:00
Takeshi KOMIYA
58711d5ad9 Fix #5433: latex: ImportError: cannot import name 'DEFAULT_SETTINGS' 2018-09-16 23:16:14 +09:00
Takeshi KOMIYA
fabf445197 Fix mistake on merging 2018-09-16 22:14:43 +09:00
Takeshi KOMIYA
02204db99f Merge branch '1.8' 2018-09-16 21:40:37 +09:00
Takeshi KOMIYA
1d60e6a90c Fix #5417: Sphinx fails to build with syntax error in Python 2.7.5 2018-09-16 18:49:18 +09:00
Takeshi KOMIYA
e756c209a5
Merge pull request #5429 from tk0miya/5422_pickling_error
Fix #5422: lambda object causes PicklingError on storing environment
2018-09-15 22:16:54 +09:00
Takeshi KOMIYA
63f04f7cec
Merge pull request #5430 from tk0miya/fix_typo
Fix typo
2018-09-15 22:15:58 +09:00
Takeshi KOMIYA
c93ede5bc4 Fix typo 2018-09-14 22:36:07 +09:00
Takeshi KOMIYA
c83630bd1f Fix #5422: lambda object causes PicklingError on storing environment 2018-09-14 22:28:57 +09:00
Takeshi KOMIYA
c8b6928300
Merge pull request #5424 from tk0miya/5421_warning_for_autodoc_default_flags
Fix #5421: autodoc emits deprecation warning for :confval:`autodoc_default_flags`
2018-09-14 10:00:20 +09:00
Takeshi KOMIYA
aa69231bc7
Merge branch '1.8' into 5421_warning_for_autodoc_default_flags 2018-09-14 02:06:29 +09:00
Takeshi KOMIYA
e0570ab10e
Merge pull request #5425 from tk0miya/5418_incorrect_doctreedir
Fix #5418: Incorrect default path for sphinx-build -d/doctrees files
2018-09-14 02:05:36 +09:00
Takeshi KOMIYA
2e9d311ad5
Merge pull request #5420 from akaihola/patch-1
Add missing author
2018-09-13 22:45:36 +09:00
Takeshi KOMIYA
d7dca264f4 Fix #5418: Incorrect default path for sphinx-build -d/doctrees files 2018-09-13 22:30:13 +09:00
Takeshi KOMIYA
21d92b440a Fix #5421: autodoc emits deprecation warning for :confval:autodoc_default_flags 2018-09-13 21:58:36 +09:00
Antti Kaihola
33cf3e3688
Add missing author
I forgot to update `AUTHORS` in #5307.
2018-09-13 09:30:48 +03:00
Takeshi KOMIYA
efdc95ef8b Merge branch '1.8' 2018-09-13 00:53:09 +09:00
Takeshi KOMIYA
fa81b67141 Bump version 2018-09-13 00:51:56 +09:00
Takeshi KOMIYA
16533cff9a Bump to 1.8.0 final 2018-09-13 00:48:58 +09:00
Takeshi KOMIYA
46a1f4ef38 Update message catalogs 2018-09-13 00:46:02 +09:00
Jon Dufresne
490e4aed41 Remove unnecessary object from class definitions
In Python 3, all classes are new-style classes. The object in the
definition is redundant and unnecessary.
2018-09-11 07:07:01 -07:00
Jon Dufresne
2f14c36a8e Remove use of six.class_types
In Python 3, type is the only class type.
2018-09-11 06:22:34 -07:00
Jon Dufresne
0d6be504ea Remove use of six.iteritems()
In Python 3, dict.items() is always an iterator.
2018-09-11 06:03:34 -07:00
Jon Dufresne
02fea029bf Prefer builtin open() over io.open() and codecs.open()
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.
2018-09-11 05:45:36 -07:00
shimizukawa
844a3a5c22 add books written with using Sphin 2018-09-10 23:45:06 +09:00
Takayuki SHIMIZUKAWA
e23ede82f3
Merge pull request #5408 from sphinx-doc/shibukawa-patch-1
Update EXAMPLES to add books
2018-09-10 23:42:54 +09:00
Yoshiki Shibukawa
e2544cfd34
Update EXAMPLES 2018-09-10 23:02:54 +09:00
Yoshiki Shibukawa
22c9e92019
Update EXAMPLES 2018-09-10 23:00:58 +09:00
Yoshiki Shibukawa
c9d6c4bca5
Update EXAMPLES
Add my books that were written by Sphinx
2018-09-10 21:50:06 +09:00
Takeshi KOMIYA
c57853923f
Merge pull request #5393 from tk0miya/refactor_app
refactor: Check primary_domain on config-inited event
2018-09-10 20:46:26 +09:00
Takeshi KOMIYA
d9c308a299
Merge pull request #5406 from jdufresne/bytes-type
Correct some unicode/str types to bytes
2018-09-10 20:45:34 +09:00
Takeshi KOMIYA
b2b833d39e Update CHANGES for PR #5403 2018-09-10 20:45:16 +09:00
Takeshi KOMIYA
908f3a2fcb
Merge pull request #5403 from jdufresne/unused-content
Remove unused argument, content, from guess_mimetype
2018-09-10 20:43:24 +09:00
Takeshi KOMIYA
4e48019b90
Merge pull request #5402 from jdufresne/getcwdu
Remove use of Python 2 os.getcwdu()
2018-09-10 20:42:08 +09:00
Takeshi KOMIYA
caeaea9028
Merge pull request #5401 from jdufresne/message
Fix AttributeError in ExtensionError
2018-09-10 20:40:47 +09:00
Jon Dufresne
38709af87b Correct some unicode/str types to bytes
More explicit and more forward compatible with Python 3.
2018-09-09 15:08:44 -07:00
Jon Dufresne
e6e6d91d55 Deprecate unused argument, content, from guess_mimetype
Unused since its introduction in
be261ed71e.
2018-09-09 12:23:36 -07:00
Jon Dufresne
9d6deec4ca Fix AttributeError in ExtensionError
In Python 3, the attribute BaseException.message doesn't exist.

$ python3
>>> from sphinx.errors import ExtensionError
>>> e = ExtensionError('foo')
>>> repr(e)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sphinx/sphinx/errors.py", line 65, in __repr__
    return '%s(%r)' % (self.__class__.__name__, self.message)
AttributeError: 'ExtensionError' object has no attribute 'message'
2018-09-09 11:50:56 -07:00
Jon Dufresne
1d11a297a3 Remove use of Python 2 os.getcwdu()
os.getcwdu() is Python 2 only. It was removed from Python 3. As Sphinx
is now Python 3 only, can remove the workaround.

$ python2 -c 'import os; print(os.getcwdu)'
<built-in function getcwdu>
$ python3 -c 'import os; print(os.getcwdu)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: module 'os' has no attribute 'getcwdu'

sphinx.util.osutil.getcwd() is now deprecated for removal.
2018-09-09 11:36:34 -07:00
Takeshi KOMIYA
cf707ac46f Revert translations on zh_CN because of broken 2018-09-09 20:44:39 +09:00
Takeshi KOMIYA
eeba8f339f Update message catalogs (from transifex) 2018-09-09 20:40:33 +09:00
Takeshi KOMIYA
ffaa528c98
Merge pull request #5390 from tk0miya/4018_htmlhelp_file_suffix
Fix #4018: htmlhelp: Add htmlhelp_file_suffix and htmlhelp_link_suffix
2018-09-09 19:35:49 +09:00
Takeshi KOMIYA
02afc357ef Merge branch '1.8' 2018-09-09 19:26:48 +09:00
Takeshi KOMIYA
d1eecb1307 Merge branch '1.7' into 1.8 2018-09-09 19:22:35 +09:00
Takeshi KOMIYA
189072dbc9
Merge pull request #5404 from tk0miya/test_DO_EPUBCHECK
Add $DO_EPUBCHECK envvar as a workaround for #4611
2018-09-09 19:21:49 +09:00
Takeshi KOMIYA
973986cfdb Add $DO_EPUBCHECK envvar as a workaround for #4611 2018-09-09 19:09:56 +09:00
Takeshi KOMIYA
578adb887f
Merge pull request #5400 from tk0miya/5399_find_catalog_crashes
Fix #5399: Sphinx crashes if unknown po file exists
2018-09-09 18:38:21 +09:00
Takeshi KOMIYA
85d954cb96
Merge pull request #5396 from jdufresne/tox-pypy
Remove pypy from tox.ini
2018-09-09 17:18:55 +09:00