Commit Graph
100 Commits
Author SHA1 Message Date
Takeshi KOMIYA 5ae622d48a Merge pull request #7651 from tk0miya/7650_undecorated_signature
Fix #7650: autodoc: undecorated signature is shown for decorated functions
2020-05-16 15:15:20 +09:00
Takeshi KOMIYA 0526e0a56c Merge branch '3.x' into 7650_undecorated_signature 2020-05-16 14:56:54 +09:00
Takeshi KOMIYA 62fda368d4 Merge pull request #7646 from tk0miya/7629_autofunction_unfriendly_warning
Fix #7629: autodoc: autofunction emits an unfriendly warning
2020-05-16 14:54:51 +09:00
Takeshi KOMIYA 8076307ee1 Fix #7629: autodoc: automethod shows an unfriendly warning 2020-05-13 23:42:44 +09:00
Takeshi KOMIYA 182712fe31 Fix #7629: autodoc: autofunction emits an unfriendly warning 2020-05-13 23:42:29 +09:00
Takeshi KOMIYA 63457c700c Update CHANGES for PR #7655 2020-05-13 22:14:07 +09:00
Takeshi KOMIYA acae01c87e Merge pull request #7655 from chipaca/optional-union
Make sphinx.util.typing.stringify render optional unions better
2020-05-13 22:12:43 +09:00
Takeshi KOMIYA 3a81ffa79a Fix #7650: autodoc: undecorated signature is shown for decorated functions 2020-05-11 01:11:12 +09:00
Takeshi KOMIYA 1771bbb927 Merge pull request #7652 from tk0miya/refactor_test_ext_autodoc
Fix test_ext_autodoc: Set testroot to testcases
2020-05-11 00:50:44 +09:00
Takeshi KOMIYA caddd3a547 Fix test_ext_autodoc: Set testroot to testcases 2020-05-11 00:37:36 +09:00
Takeshi KOMIYA cfadd5f3f3 Merge pull request #7643 from tk0miya/7628_imgconverter_unnecessary
Fix #7628: imgconverter: runs imagemagick unnecessary
2020-05-10 23:12:37 +09:00
Takeshi KOMIYA d47427e94f Merge pull request #7647 from tk0miya/fix_versionchanged
doc: Fix wrong version info
2020-05-10 16:03:01 +09:00
Takeshi KOMIYA f35e656ff6 Merge pull request #7645 from mondeja/double-spaces-patch-1
Fix double space inconsistences in code, CHANGES and translations.
2020-05-10 01:17:02 +09:00
Takeshi KOMIYA b1554ae25a doc: Fix wrong version info 2020-05-10 01:12:39 +09:00
Takeshi KOMIYA a9586b6a35 Merge pull request #7641 from tk0miya/deprecate_rpartition
Deprecate sphinx.util:rpartition()
2020-05-09 22:34:15 +09:00
Takeshi KOMIYA d24ff1ad32 Fix #7628: imgconverter: runs imagemagick unnecessary 2020-05-09 22:02:24 +09:00
Takeshi KOMIYA 891c659ced Deprecate sphinx.util:rpartition() 2020-05-09 22:00:04 +09:00
Takeshi KOMIYA ea81d56b30 Update CHANGES for PR #7640 2020-05-09 18:48:07 +09:00
Takeshi KOMIYA 29829bd451 Merge pull request #7623 from tk0miya/7362_autofunction_for_builtins
Fix #7362: autodoc: does not render correct signatures for built-in functions
2020-05-09 18:46:13 +09:00
Takeshi KOMIYA 26f620253d Merge branch '3.0.x' into 3.x 2020-05-09 18:40:47 +09:00
Takeshi KOMIYA f777ad38df Merge pull request #7638 from tk0miya/7626_missing_CODE_OF_CONDUCT
Fix #7626: release package does not contain ``CODE_OF_CONDUCT``
2020-05-09 18:40:19 +09:00
Takeshi KOMIYA f73256176f Merge pull request #7640 from tk0miya/suppress_system_defined_TypeVars
Suppress system defined type vars (for 3.0.x branch)
2020-05-09 18:39:59 +09:00
Takeshi KOMIYA 1fbfb7281e Suppress arguments if all system defined TypeVars on py39 2020-05-09 18:15:41 +09:00
Takeshi KOMIYA 6c65327be7 Merge pull request #7624 from tk0miya/refactor_autodoc2
refactor: autodoc: class processors on autofunction is no longer needed
2020-05-09 18:10:55 +09:00
Takeshi KOMIYA cf5660cb39 Fix #7626: release package does not contain `CODE_OF_CONDUCT` 2020-05-09 17:48:01 +09:00
Takeshi KOMIYA 92e0007179 Fix autodoc: does not render correct signatures for built-in methods 2020-05-09 17:38:28 +09:00
Takeshi KOMIYA 815abf0fea Fix #7362: autodoc: does not render correct signatures for built-in functions 2020-05-09 16:37:03 +09:00
Takeshi KOMIYA e49fc778e4 Merge pull request #7632 from eric-wieser/better-inspect-failure
Do not crash if `is_builtin_class_method` is passed a non-type
2020-05-09 14:56:40 +09:00
Takeshi KOMIYA f37fa14e66 Merge pull request #7637 from tk0miya/suppress_system_defined_TypeVars
Suppress arguments if all system defined TypeVars on py39
2020-05-09 14:56:16 +09:00
Takeshi KOMIYA a48da561ae Suppress arguments if all system defined TypeVars on py39 2020-05-09 14:40:05 +09:00
Takeshi KOMIYA 62711bc081 Merge pull request #7615 from tk0miya/7610_backslashes
Fix #7610: incorrectly renders consecutive backslashes
2020-05-07 22:57:39 +09:00
Takeshi KOMIYA a691d18a43 Merge pull request #7594 from tk0miya/7551_nested_class
Fix #7551: autosummary: a nested class is indexed as non-nested class
2020-05-07 22:55:24 +09:00
Takeshi KOMIYA 1f14d22956 Merge pull request #7625 from tk0miya/7497
Rewrite unparse to use ast.NodeVisitor
2020-05-07 21:46:43 +09:00
Takeshi KOMIYA 65d35c56ae Merge branch '3.x' into 7497 2020-05-07 11:11:11 +09:00
Takeshi KOMIYA 2cfa3370e7 refactor: Sort visitor methods of _UnparseVisitor 2020-05-07 11:10:32 +09:00
Takeshi KOMIYA 560ccf83ae Fix #7551: autodoc: failed to import nested class 2020-05-07 02:02:02 +09:00
Takeshi KOMIYA c4d4ba2835 Fix #7551: autosummary: a nested class is indexed as non-nested class 2020-05-07 01:57:46 +09:00
Takeshi KOMIYA 24fe05f14f refactor: autodoc: class processors on autofunction is no longer needed 2020-05-07 01:55:33 +09:00
Takeshi KOMIYA 71b653719d Fix #7610: incorrectly renders consecutive backslashes 2020-05-07 00:54:36 +09:00
Takeshi KOMIYA 6ce265dc81 Merge pull request #7621 from tk0miya/refactor_autodoc
refactor: autodoc: if-block for callable object is no longer needed
2020-05-06 17:16:13 +09:00
Takeshi KOMIYA cad2761b32 Merge pull request #7622 from tk0miya/refactor_test_autodoc
Refactor test autodoc
2020-05-06 14:50:34 +09:00
Takeshi KOMIYA eef7e4cdd5 test: Rename test_autodoc.py to test_ext_autodoc.py 2020-05-06 13:55:45 +09:00
Takeshi KOMIYA 2ca76d2366 test: Merge test_ext_autodoc.py and test_autodoc.py 2020-05-06 13:47:15 +09:00
Takeshi KOMIYA 8c142fe059 test: Do not use module level state-full fixture 2020-05-06 13:47:13 +09:00
Takeshi KOMIYA df84a413a7 Add test helper: make_directive_bridge() 2020-05-06 13:35:23 +09:00
Takeshi KOMIYA b6e8f63066 refactor: autodoc: if-block for callable object is no longer needed
The if-block for callable object was added to FunctionDocumenter at
5c3a0e4e40 (see #5447).  At that time, it helps to introspect
the function signature for a callable object because
``sphinx.util.inspect:Signature`` emits a warning when a callable
object is given.

For now, ``sphinx.util.inspect:signature()` does not emit a warning
even if a callable object is given.  So this if-block is no longer
needed.
2020-05-06 01:48:06 +09:00
Takeshi KOMIYA d670214403 Merge pull request #7614 from lhupfeldt/3.0.x
md5 OpenSSL FIPS mode fix #7611
2020-05-05 21:08:15 +09:00
Takeshi KOMIYA f0df9ac725 Merge pull request #7597 from tk0miya/7596_xref_variable_types
Close #7596: py domain: Change a type annotation for variables to a hyperlink
2020-05-04 15:02:46 +09:00
Takeshi KOMIYA 88e8ebbe19 Close #7596: py domain: Change a type annotation for variables to a hyperlink 2020-05-04 14:30:20 +09:00
Takeshi KOMIYA 8f4c2fb08d refactor: py domain: Add type_to_xref() utility 2020-05-04 14:29:55 +09:00
Takeshi KOMIYA c13ecd2437 Merge pull request #7606 from tk0miya/deprecation
refactor: Catch ImportError for lib2to3 to support future python
2020-05-04 01:58:00 +09:00
Takeshi KOMIYA 3fee5a1ad8 refactor: Catch ImportError for lib2to3 to support future python 2020-05-04 01:47:42 +09:00
Takeshi KOMIYA a5036270c8 Merge pull request #7605 from tk0miya/refactor_tests
Refactor tests
2020-05-04 01:27:54 +09:00
Takeshi KOMIYA 3407143023 refactor: Suppress DeprecationWarning for pyximport 2020-05-04 00:27:38 +09:00
Takeshi KOMIYA 54bb1f3e62 refactor: test: Pass language_level to cython explicitly 2020-05-04 00:23:06 +09:00
Takeshi KOMIYA 787fda8e49 Merge pull request #7602 from tk0miya/stacklevel
Add stacklevel parameter to warnings.warn() call
2020-05-03 23:57:08 +09:00
Takeshi KOMIYA f01ea79092 refactor: Pass a theme instance to LaTeXTranslator 2020-05-03 23:56:59 +09:00
Takeshi KOMIYA f93e5a59b6 Merge pull request #7603 from eric-wieser/warning-as-error-traceback
Preserve exception info in raised SphinxWarning objects
2020-05-03 23:52:55 +09:00
Takeshi KOMIYA 2799d1d727 refactor: Do not pass deprecated parameter in testcase 2020-05-03 23:47:09 +09:00
Takeshi KOMIYA 5bf997c55a refactor: Do not pass deprecated parameter in testcase 2020-05-03 23:41:54 +09:00
Takeshi KOMIYA 41b4a77dea Add stacklevel parameter to warnings.warn() call 2020-05-03 23:34:35 +09:00
Takeshi KOMIYA b82687ecc1 Merge pull request #7601 from eric-wieser/show-traceback-in-warning
autodoc: Show full traceback and exception type in warnings
2020-05-03 22:25:54 +09:00
Takeshi KOMIYA e23f52b7f9 Merge pull request #7599 from eric-wieser/report-xml
Report junit pytest failures to CircleCI
2020-05-03 21:31:24 +09:00
Takeshi KOMIYA f6b6d753d7 Merge pull request #7593 from tk0miya/7530_kbd
Close #7530: html: Support nested <kbd> elements
2020-05-03 18:41:53 +09:00
Takeshi KOMIYA a5cba8cdbb Merge pull request #7598 from tk0miya/deprecate_ignore
Deprecate ignore parameter for Documenter.get_doc()
2020-05-03 11:53:36 +09:00
Takeshi KOMIYA 1ba671a677 Deprecate ignore parameter for Documenter.get_doc() 2020-05-03 01:59:47 +09:00
Takeshi KOMIYA ee549e43f2 Merge pull request #7595 from tk0miya/refactor_type_annotations_autodoc
refactor: autodoc: Update type annotations
2020-05-03 01:11:45 +09:00
Takeshi KOMIYA daed2ec1ae Update CHANGES for PR #7562 2020-05-02 23:16:38 +09:00
Takeshi KOMIYA c7a63b455c refactor: autodoc: Update type annotations 2020-05-02 22:54:12 +09:00
Takeshi KOMIYA a148a8e7cb Close #7530: html: Support nested <kbd> elements 2020-05-02 22:48:57 +09:00
Takeshi KOMIYA 911a3b9809 refactor: Rename parameter to avoid conflict 2020-05-02 22:48:57 +09:00
Takeshi KOMIYA 56772395bb Update CHANGES for PR #7583 2020-05-02 12:35:55 +09:00
Takeshi KOMIYA 1c3179300a Merge pull request #7583 from eric-wieser/fix-napoleon
ext.napoleon: Emit type annotations at the start of `.. attribute::`
2020-05-02 12:33:59 +09:00
Takeshi KOMIYA 690447d48f Merge pull request #7586 from tk0miya/6857_enum_classmethod
Fix #6857: autodoc: failed to detect a classmethod on Enum class
2020-05-02 12:30:32 +09:00
Takeshi KOMIYA d184859ccd Merge pull request #7589 from tk0miya/7588_autosummary_template_suffix
Fix #7588: autosummary: allow any template suffix
2020-05-02 10:42:35 +09:00
Takeshi KOMIYA 9256daaa77 Merge branch '3.x' into 6857_enum_classmethod 2020-05-02 01:48:01 +09:00
Takeshi KOMIYA 2e506c5ab4 Merge pull request #7571 from tk0miya/7559_misdetects_async
Fix #7559: autodoc: misdetects a sync function is async
2020-05-02 01:46:02 +09:00
Takeshi KOMIYA b5b9ddc201 Fix #7588: autosummary: allow any template suffix 2020-05-02 01:43:40 +09:00
Takeshi KOMIYA 25fc47e6b7 Fix #7559: autodoc: misdetects a sync function is async 2020-05-01 22:05:45 +09:00
Takeshi KOMIYA 017af4ce2e Merge pull request #7577 from tk0miya/7575_doctest_print
doc: Fix examples of doctest extensions are still in py2 (refs: #7575)
2020-05-01 21:03:06 +09:00
Takeshi KOMIYA d612ef8f0b Fix #6857: autodoc: failed to detect a classmethod on Enum class 2020-04-30 22:54:49 +09:00
Takeshi KOMIYA 5460ad6925 Update CHANGES for PR #7581 2020-04-30 22:12:24 +09:00
Takeshi KOMIYA b19ef9d51e Merge pull request #7584 from eric-wieser/fix-colon-parsing
ext.napoleon: Do not consume colons within inline code
2020-04-30 22:11:33 +09:00
Takeshi KOMIYA ca082f6893 Merge pull request #7578 from tk0miya/7570_autosummary_template_option
Fix #7570: autosummary: template option is broken
2020-04-30 21:53:42 +09:00
Takeshi KOMIYA 2377c364a7 Merge pull request #7580 from tk0miya/7469_process-dostring_unexpectedly_cached
Fix #7469: autodoc: The change of autodoc-process-docstring is cached
2020-04-30 21:48:00 +09:00
Takeshi KOMIYA 4a944d4ff2 autodoc: The change of autodoc-process-docstring is cached (refs: #7469) 2020-04-30 01:36:16 +09:00
Takeshi KOMIYA 0bf9011509 Fix #7570: autosummary: template option is broken 2020-04-30 00:14:59 +09:00
Takeshi KOMIYA 155cb87452 doc: Fix examples of doctest extensions are still in py2 (refs: #7575) 2020-04-29 22:46:44 +09:00
Takeshi KOMIYA d59584f409 Update CHANGES for PR #7572 2020-04-28 23:02:21 +09:00
Takeshi KOMIYA db4cced99d Merge pull request #7572 from mgeier/eqno-alignment
Align equation numbers at the right margin
2020-04-28 23:01:24 +09:00
Takeshi KOMIYA a8a2d59403 Merge pull request #7561 from tk0miya/7143_typing.final
Support @final decorator
2020-04-28 22:57:56 +09:00
Takeshi KOMIYA a29fe6904f Merge pull request #7557 from tk0miya/6588_inherited_decorated_method
Fix #6588: autodoc: Decorated inherited method has no documentation
2020-04-28 22:57:01 +09:00
Takeshi KOMIYA 13113fc0b6 Fix #6588: autodoc: Decorated inherited method has no documentation 2020-04-28 22:33:40 +09:00
Takeshi KOMIYA 1f5dab6446 Merge pull request #7573 from tk0miya/changes
Fix CHANGES: some bugfix entries are categorized as new features
2020-04-28 22:31:32 +09:00
Takeshi KOMIYA 4573100abf Fix CHANGES: some bugfix entries are categorized as new features 2020-04-28 02:11:48 +09:00
Takeshi KOMIYA ba47b7055b Fix CHANGES for PR #7569 2020-04-28 01:42:11 +09:00
Takeshi KOMIYA 8c35cfa38a Merge branch '3.0.x' into 3.x 2020-04-28 01:41:52 +09:00
Takeshi KOMIYA 153682dd4c Update CHANGES for PR #7569 2020-04-28 01:40:56 +09:00
Takeshi KOMIYA 1c4a1ef87c Update CHANGES for PR #7569 2020-04-28 01:34:03 +09:00
Takeshi KOMIYA a527c2ae30 Merge pull request #7569 from eric-wieser/fix-bad-stringify
Do not emit type arguments twice
2020-04-28 01:32:52 +09:00