Takeshi KOMIYA
|
adb8f97156
|
refactor: autodoc: Move deprecated documenters to autodoc.deprecated package
|
2020-11-28 17:01:06 +09:00 |
|
Takeshi KOMIYA
|
beb2835849
|
Merge pull request #8499 from jdufresne/monkeypatch
Replace modify_env() with pytest monkeypatch.setenv()
|
2020-11-28 09:22:44 +09:00 |
|
Jon Dufresne
|
c1437d5f79
|
Replace modify_env() with pytest monkeypatch.setenv()
The same test utility function is built into pytest. Can avoid the
duplication.
https://docs.pytest.org/en/latest/monkeypatch.html#monkeypatching-environment-variables
|
2020-11-27 14:10:36 -08:00 |
|
Takeshi KOMIYA
|
e0704fb32e
|
Merge pull request #8496 from francoisfreitag/unsetenv
Unset env variables in tests by del os.environ
|
2020-11-27 22:04:54 +09:00 |
|
François Freitag
|
236afac7fd
|
Unset env variables in tests by del os.environ
The `unsetenv()` operation does not update `os.environ`.
https://docs.python.org/3/library/os.html#os.unsetenv
|
2020-11-26 21:12:28 +01:00 |
|
Takeshi KOMIYA
|
e6e23aa45b
|
Merge pull request #8488 from tk0miya/deprecate_InstanceAttributeDecorator
refactor: Deprecate InstanceAttributeDocumenter
|
2020-11-26 20:13:03 +09:00 |
|
Takeshi KOMIYA
|
79491e1116
|
Merge pull request #8490 from tk0miya/pycode_slow
Fix pycode becomes slow
|
2020-11-26 20:11:52 +09:00 |
|
Takeshi KOMIYA
|
3e7ae1efe6
|
Fix pycode becomes slow
On the renaming ModuleAnalyzer.parse(), I overlooked renaming a flag.
|
2020-11-26 02:48:45 +09:00 |
|
Takeshi KOMIYA
|
5a0e1231ad
|
Merge pull request #8467 from francoisfreitag/rate-limit
Fix #6629: linkcheck: Handle rate-limiting
|
2020-11-26 02:10:47 +09:00 |
|
François Freitag
|
6b90a63f08
|
Fix #6629: linkcheck: Handle rate-limiting
Follow the Retry-After header if present, otherwise use an exponential
back-off.
|
2020-11-25 17:34:55 +01:00 |
|
Takeshi KOMIYA
|
c848d4dd37
|
Merge pull request #8486 from tk0miya/pyupgrade_py3only
refactor with pyupgrade
|
2020-11-26 01:24:56 +09:00 |
|
Takeshi KOMIYA
|
93c9ce5cd8
|
refactor: Deprecate InstanceAttributeDocumenter
InstanceAttributeDocumenter is merged into AttributeDocumenter in #7946
and #8444. So it is no longer needed now.
|
2020-11-26 01:22:25 +09:00 |
|
Takeshi KOMIYA
|
c941406415
|
refactor with pyupgrade
Run `pyupgrade --py3-only --keep-percent-format` to refine our code.
Note: --keep-percent-format is required to keep translations available.
|
2020-11-25 01:55:30 +09:00 |
|
Takeshi KOMIYA
|
c941b9cb14
|
Merge pull request #8481 from tk0miya/8480_slots_attributes
Fix #8480: autoattribute could not create document for __slots__ attributes
|
2020-11-24 21:53:48 +09:00 |
|
Takeshi KOMIYA
|
3e9200dab4
|
Merge pull request #8474 from tk0miya/8360_update_warning_for_numref
Fix #8360: Update warning message for numref
|
2020-11-24 21:38:04 +09:00 |
|
Takeshi KOMIYA
|
c6e2c9abaa
|
Merge pull request #8483 from hroncok/no_typed_ast
Don't require typed_ast in [test] with Python 3.8+
|
2020-11-24 21:37:24 +09:00 |
|
Takeshi KOMIYA
|
ab844c3f27
|
Deprecate SlotsAttributeDocumenter
|
2020-11-24 19:36:14 +09:00 |
|
Miro Hrončok
|
ba63f2811d
|
Don't require typed_ast in [test] with Python 3.8+
|
2020-11-23 22:08:43 +01:00 |
|
Takeshi KOMIYA
|
bbc1ce368c
|
Update CHANGES for PR #8478
|
2020-11-23 17:24:28 +09:00 |
|
Takeshi KOMIYA
|
0663ad1650
|
Merge pull request #8478 from panhaoyu/3.x
explicitly specify encoding=utf-8 in apidoc
|
2020-11-23 17:21:08 +09:00 |
|
Takeshi KOMIYA
|
0131f776fb
|
Merge pull request #8475 from tk0miya/8131_too_many_redirects
Extend linkchecker GET fallback logic to handle Too Many Redirects
|
2020-11-23 17:16:51 +09:00 |
|
Takeshi KOMIYA
|
bffa44670e
|
CHANGES: Fix line length
|
2020-11-23 17:00:48 +09:00 |
|
Takeshi KOMIYA
|
7a0605ade1
|
Update CHANGES
Co-authored-by: François Freitag <mail@franek.fr>
|
2020-11-23 16:57:45 +09:00 |
|
Takeshi KOMIYA
|
50dad211ed
|
Fix #8480: autoattribute could not create document for __slots__ attributes
|
2020-11-23 15:28:53 +09:00 |
|
Takeshi KOMIYA
|
a82b06f2ab
|
Merge pull request #8479 from tk0miya/refactor_autodoc2
refactor: autodoc: Add type annotation for DataDocumenterMixinBase.object
|
2020-11-23 15:10:26 +09:00 |
|
Takeshi KOMIYA
|
782e3733fc
|
refactor: autodoc: Add type annotation for DataDocumenterMixinBase.object
|
2020-11-23 14:55:34 +09:00 |
|
Takeshi KOMIYA
|
b2f92e7c1d
|
Merge pull request #8471 from tk0miya/8460_TypeVar
Fix #8460: autodata directive does not display the detail of TypeVars
|
2020-11-23 14:21:04 +09:00 |
|
Takeshi KOMIYA
|
5ebacaec89
|
Merge branch '3.x' into 8460_TypeVar
|
2020-11-23 13:58:41 +09:00 |
|
Takeshi KOMIYA
|
8a24ae200e
|
autodoc: Fix MRO of DataDocumenter and AttributeDocumenter
|
2020-11-23 13:50:21 +09:00 |
|
Takeshi KOMIYA
|
64498ad0db
|
Merge pull request #8464 from tk0miya/deprecate_Documenter.get_object_members
Deprecate Documenter.get_object_members()
|
2020-11-23 13:24:20 +09:00 |
|
wolfpan
|
cdc45669a2
|
explicitly specify encoding=utf-8 in apidoc
|
2020-11-23 08:32:01 +08:00 |
|
Takeshi KOMIYA
|
046c289f76
|
linkcheck: Add a testcase for infinite redirect loop on HEAD request
|
2020-11-23 01:52:44 +09:00 |
|
Takeshi KOMIYA
|
37f06cfba9
|
Fix #8131: linkcheck: Too Many Redirects on HEAD request is treated as broken
|
2020-11-23 01:45:43 +09:00 |
|
Takeshi KOMIYA
|
67846b1e93
|
Merge branch '3.x' into 8131_too_many_redirects
|
2020-11-23 01:42:10 +09:00 |
|
Takeshi KOMIYA
|
478a1567b6
|
Fix #8360: Update warning message for numref
|
2020-11-23 01:36:35 +09:00 |
|
Takeshi KOMIYA
|
3ea1ec84cc
|
Merge pull request #8463 from tk0miya/refactor_getannotations
refactor: Move _getannotations() to sphinx.util.inspect
|
2020-11-22 16:02:11 +09:00 |
|
Takeshi KOMIYA
|
a57ce4047c
|
refactor: Move _getannotations() to sphinx.util.inspect
|
2020-11-22 15:38:01 +09:00 |
|
Takeshi KOMIYA
|
9eb96d5c79
|
Fix #8460: autodata directive does not display the detail of TypeVars
The details are only shown when automodule directive is used. This
allows to document them via other auto* directives.
|
2020-11-22 13:57:48 +09:00 |
|
Takeshi KOMIYA
|
24a329eebe
|
Merge pull request #8465 from tk0miya/8460_NewType
Fix #8460: autodoc: Support custom types defined by typing.NewType
|
2020-11-22 13:47:39 +09:00 |
|
Takeshi KOMIYA
|
3840667758
|
apidoc: Load NewTypeAttributeDocumenter on booting
|
2020-11-22 13:18:19 +09:00 |
|
Takeshi KOMIYA
|
f9077d238d
|
Merge pull request #8462 from tk0miya/handle_AttributeError_from_getall
Handle AttributeError from getall() and getslots()
|
2020-11-22 11:49:00 +09:00 |
|
Takeshi KOMIYA
|
a356d8611e
|
Merge pull request #8468 from tk0miya/refactor_pycode
Rename ModuleAnalyzer.parse() to analyze()
|
2020-11-22 11:46:37 +09:00 |
|
Takeshi KOMIYA
|
8bb31c7e3a
|
Merge pull request #8469 from tk0miya/refactor_test_ext_autodoc_slots
refactor: Rename example class
|
2020-11-22 11:42:13 +09:00 |
|
Takeshi KOMIYA
|
b4d4d4e808
|
refactor: Rename example class
|
2020-11-22 03:06:03 +09:00 |
|
Takeshi KOMIYA
|
8e29d57395
|
Rename ModuleAnalyzer.parse() to analyze()
The word "analyze" is much appropriate for "ModuleAnalyzer" instead
of "parse".
|
2020-11-22 02:59:29 +09:00 |
|
Takeshi KOMIYA
|
ad804647b5
|
Merge pull request #8459 from tk0miya/8452_autodoc_type_aliases_with_autodoc_typehints
Fix #8452: autodoc_type_aliases doesn't work with autodoc_typehints
|
2020-11-22 01:34:31 +09:00 |
|
Takeshi KOMIYA
|
333e7a447e
|
Fix #8452: autodoc_type_aliases doesn't work with autodoc_typehints
|
2020-11-22 01:26:32 +09:00 |
|
Takeshi KOMIYA
|
6973888294
|
Support NewType as a class attribute
|
2020-11-21 23:56:16 +09:00 |
|
Takeshi KOMIYA
|
be42edea76
|
refactor: autodoc: Add NewTypeMixin
Separate NewType feature from DataDocumenter to mixin class to share it
with another Documenter.
|
2020-11-21 23:04:42 +09:00 |
|
Takeshi KOMIYA
|
46a7ea7ada
|
Add NewType support to typing.stringify() and restify()
|
2020-11-21 23:04:42 +09:00 |
|