Commit Graph

10039 Commits

Author SHA1 Message Date
Takeshi KOMIYA
f3812b0d18 Fix #4275: Formats accepted by sphinx.util.i18n.format_date are limite 2018-01-28 17:22:41 +09:00
Takeshi KOMIYA
41d99d3627 Give local-plugins.paths option to flake8
It will be available on flake8-3.5.0+.
(see https://gitlab.com/pycqa/flake8/issues/379)
2018-01-28 15:22:11 +09:00
Takeshi KOMIYA
d60ef2d6b2 Fix utils package is installed 2018-01-28 15:11:59 +09:00
Takeshi KOMIYA
01caa52355
Merge pull request #4498 from stephenfin/issue/4492
Don't install flake8 plugin globally
2018-01-28 13:23:51 +09:00
Takeshi KOMIYA
f43d8afade
Merge pull request #4502 from tk0miya/4490_format_annotation_for_py37
Fix #4490: autodoc: type annotation is broken with python 3.7.0a4+
2018-01-28 02:10:05 +09:00
Takeshi KOMIYA
10ad257780
Merge branch '1.7-release' into 4490_format_annotation_for_py37 2018-01-28 02:09:57 +09:00
Takeshi KOMIYA
dcbebb1286
Merge pull request #4504 from tk0miya/3917_smartquotes_for_citation_labels
Fix #3917: citation labels are tranformed to ellipsis
2018-01-28 02:08:32 +09:00
Takeshi KOMIYA
9f5c676322 Use flake8-import-order 2018-01-28 01:52:16 +09:00
Takeshi KOMIYA
8f2540d4d2 Merge branch '1.7-release' 2018-01-28 00:18:48 +09:00
Takeshi KOMIYA
af25fa123d Merge branch 'stable' into 1.7-release 2018-01-28 00:18:33 +09:00
Takeshi KOMIYA
3fde14929b Fix #3917: citation labels are tranformed to ellipsis 2018-01-27 23:23:59 +09:00
Takeshi KOMIYA
6897b80fc4 Update CHANGES for PR #4491 2018-01-27 22:08:54 +09:00
Takeshi KOMIYA
6a0e83904a
Merge pull request #4491 from Emantor/fix/autodoc_mock_importer
autodoc: prefer _MockImporter over other importers in sys.meta_path
2018-01-27 22:05:30 +09:00
Rouven Czerwinski
bcdea4da5c autodoc: prefer _MockImporter over other importers in sys.path
In case we want to mock modules which are actually available in the current
environment, we need to add the _MockImporter before other importers. We ran
into this problem in our application, where importing the existing modules
caused side effects which were not fixed by autodoc_mock_imports.
2018-01-27 13:51:00 +01:00
Takeshi KOMIYA
fd2425238e Fix #4490: autodoc: type annotation is broken with python 3.7.0a4+ 2018-01-27 12:26:53 +09:00
Stephen Finucane
f3074d1747 setup: Configure flake8 extension as a local plugin
We don't want to install this as a system plugin. Now that flake8 3.5.0
is in the wild, we can use this.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: #4492
2018-01-26 09:41:50 +00:00
Takeshi KOMIYA
53096a35d8 doc: Fix typo 2018-01-26 01:29:52 +09:00
Takeshi KOMIYA
5cdec60c26 Fix KeysView object does not support indexing in py3 2018-01-25 10:53:44 +09:00
Takeshi KOMIYA
2be87e4851 Fix mypy violation 2018-01-25 10:51:04 +09:00
Takeshi KOMIYA
2b56d70423
Merge pull request #4485 from tk0miya/drop_hack_for_py31
Drop a hack for py31
2018-01-25 10:45:49 +09:00
Takeshi KOMIYA
32c5e8346f Close #4460: extensions should return the version of data structure as metadata 2018-01-25 02:04:22 +09:00
Takeshi KOMIYA
ae294d39d1 Add register.add_source_suffix() 2018-01-25 02:03:56 +09:00
Takeshi KOMIYA
3047fdbbf4 Move get_filetype() to sphinx.io 2018-01-25 02:03:56 +09:00
Takeshi KOMIYA
2b6c8b33be Fix all files are treated as reST if old styled source_suffix used 2018-01-25 02:03:56 +09:00
Takeshi KOMIYA
0cdd9ee72a Integrate source_suffix and source_parsers (refs: #4474) 2018-01-25 02:03:56 +09:00
Takeshi KOMIYA
69f69628ed :confval:source_suffix allows a mapping fileext to file types 2018-01-25 02:03:56 +09:00
Takeshi KOMIYA
bece0484e5 source_parsers should fill Parser.supported attribute to let Sphinx know supported formats 2018-01-25 02:03:56 +09:00
Takeshi KOMIYA
dc45877d3c Deprecate config value: source_parsers 2018-01-25 02:03:56 +09:00
Takeshi KOMIYA
3b42c8e06c Drop a hack for py31 2018-01-25 02:02:54 +09:00
Takeshi KOMIYA
f886f08cb2 Merge branch '1.7-release' 2018-01-25 02:02:15 +09:00
Takeshi KOMIYA
376b6a597d
Merge pull request #4489 from tk0miya/1.7-release
workaround for typing module in py370a4+
2018-01-25 02:02:04 +09:00
Takeshi KOMIYA
0a82ba00b5 Fix packaging module can't handle 3.7.0a4+ correctly 2018-01-25 01:44:24 +09:00
Takeshi KOMIYA
b6efff7990 Update CHANGS for PR #4449 2018-01-25 01:18:02 +09:00
Takeshi KOMIYA
068bbb1b8a
Merge pull request #4449 from dhellmann/stable-fix-autodoc-for-empty-packages
fix ext.apidoc to include "empty" packages that contain modules
2018-01-25 01:15:36 +09:00
Takeshi KOMIYA
af96f79456
Merge pull request #4480 from tk0miya/4477_invalid_buildinfo_file
Fix #4477: Build fails after building specific files
2018-01-25 01:14:26 +09:00
Takeshi KOMIYA
e01d076443 Fix Signature does not work correctly with py37a4+ 2018-01-25 00:56:26 +09:00
Takeshi KOMIYA
9340a45393 test: Don't use os.errno. Use errno directly 2018-01-25 00:48:37 +09:00
Takeshi KOMIYA
f779fa7ad6 Merge branch 'stable' into 1.7-release 2018-01-25 00:40:21 +09:00
Takeshi KOMIYA
467c2d7cb7 Merge branch 'stable' into 4477_invalid_buildinfo_file 2018-01-25 00:38:03 +09:00
Takeshi KOMIYA
78434992f7
Merge pull request #4488 from tk0miya/workaround_for_py37a4+
test: Add workaround for python 3.7.0a4+
2018-01-25 00:37:23 +09:00
Takeshi KOMIYA
ded638c82b test: Add workaround for python 3.7.0a4+
Since 3.7.0a+, the behavior of typing module has been changed.
As a result, format_annotation() also has been changed.
2018-01-25 00:02:49 +09:00
Takeshi KOMIYA
1591607481 Fix #4477: Build fails after building specific files 2018-01-24 21:28:06 +09:00
Doug Hellmann
83f30712b8 fix ext.apidoc to include "empty" packages that contain modules
Commit 2d99648e99 changed the apidoc
extension to ignore packages if the __init__.py file was empty. That
breaks the toctree structure if those packages do contain submodules
and subpackages. This patch adds a check to ensure that empty
__init__.py modules are only skipped if there are no other python
modules in the same directory.

Addresses bug #654

Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-01-23 14:21:03 -05:00
Takeshi KOMIYA
cfd9528879
Merge pull request #4466 from kurtmckee/update-install-docs
Update install docs
2018-01-22 00:12:17 +09:00
Takeshi KOMIYA
16ad6429d0
Merge pull request #4468 from stephenfin/doc-restructure
Doc restructure (continued)
2018-01-21 23:42:11 +09:00
Takeshi KOMIYA
24a4eab038
Merge pull request #4473 from tk0miya/4472_lost_documentation_options
Fix #4472: DOCUMENTATION_OPTIONS is not defined
2018-01-21 22:11:56 +09:00
Takeshi KOMIYA
0e5934b9ff Fix #4472: DOCUMENTATION_OPTIONS is not defined 2018-01-21 21:02:07 +09:00
Stephen Finucane
1ec03ec1b0 doc: Add 'deprecated' directive to docstrings
This helps emphasize the deprecated nature of these directives.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-01-21 11:38:03 +00:00
Stephen Finucane
487480ca01 doc: Add 'is_parallel_allowed'
This is an important function and should be documented.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-01-21 11:37:59 +00:00
Stephen Finucane
6c23dac5a6 doc: Reorder 'sphinx.application' docs to match code
Use the same ordering to minimize cognitive load.

Signed-off-by: Stephen Finucane <stephen@that.guru>
2018-01-21 11:19:52 +00:00