Takeshi KOMIYA
ff8df59ac1
Merge pull request #5479 from jdufresne/https
...
Prefer https:// links where available
2018-09-24 09:04:54 +09:00
Jon Dufresne
dd383ec472
Prefer https:// links where available
2018-09-23 11:50:42 -07:00
Jon Dufresne
02d06bdaf0
Remove uses of six.moves that did not cause any type errors
...
Removal of the remaining imports may require passing "--python-version
3.5" to the mypy command.
2018-09-23 09:22:06 -07:00
Rob Ruana
e547a6a0d2
Fixes #5426 : [Napoleon] Better handling of inline attributes ( #5470 )
...
* Fixes #5426 : [Napoleon] Better handling of inline attributes
* Removes uneeded NOQA comments
* Fixes imports
2018-09-23 09:26:17 -04:00
Antony Lee
dbb7c38220
Rendering of exceptions by napoleon. ( #4046 )
...
This lets napoleon render exceptions using the standard info field
syntax
```
:raises FooException: Some condition.
```
rather than the nonstandard
```
:raises: :exc:`FooException` -- Some condition.
```
Note that the previous approach was more forgiving if an explanatory
text was given in the Raises section without an actual exception class:
```
Raises
------
If something occurs.
```
would be rendered as
```
:raises: *If something occurs*
```
which is OK-ish but is now rendered as
```
:raises If something occurs.:
```
which is somewhat more nonsensical.
However neither the Google style guide nor numpydoc actually support
this form (they always have both the type and the description) so I
think the change is reasonable.
2018-09-23 08:31:27 -04:00
Jon Dufresne
a3bc49dd64
Remove Python 2.6 compat shim for ElementTree.itertext
2018-09-22 10:32:28 -07:00
Takeshi KOMIYA
dc44b0d2a9
Merge branch 'master' into HEAD
2018-09-22 22:54:15 +09:00
Takeshi KOMIYA
6f25bd3680
Merge branch 'master' into drop-iteritems
2018-09-22 22:17:38 +09:00
Takeshi KOMIYA
3a2418a827
refactoring: Drop PY2 and PY3 flags
2018-09-22 21:27:59 +09:00
Takeshi KOMIYA
98648325aa
Merge branch '1.8'
2018-09-22 17:16:24 +09:00
Takeshi KOMIYA
48c634e623
test: Merge py35/test_autodoc_py35.py to test_autodoc.py
2018-09-22 16:41:44 +09:00
Takeshi KOMIYA
40a2fdf315
test: Merge py3/test_util_inspect_py3.py to test_util_inspect.py
2018-09-22 16:36:10 +09:00
Takeshi KOMIYA
b18fe13f55
Drop branches for sys.version_info < (3, 4)
2018-09-22 16:31:07 +09:00
Takeshi KOMIYA
c0fffb9e8b
Fix #5432 : py domain: :type: field can't process :term: references
2018-09-22 15:24:14 +09:00
Takeshi KOMIYA
522105b79b
Merge branch '1.8'
2018-09-20 20:01:14 +09:00
Takeshi KOMIYA
c7f3933612
Merge branch '1.8' into 5431_warnings_for_callable
2018-09-18 23:34:33 +09:00
Takeshi KOMIYA
5c3a0e4e40
Fix #5431 : autodoc: `autofunction` emits a warning for callable objects
2018-09-18 13:02:01 +09:00
Takeshi KOMIYA
9e8434f902
Fix #5436 : Autodoc does not work with enum subclasses with properties/methods
2018-09-18 13:01:10 +09:00
Takeshi KOMIYA
6d55e98da1
test: Move EnumCls to target.enum package
2018-09-18 13:01:10 +09:00
Takeshi KOMIYA
efdc95ef8b
Merge branch '1.8'
2018-09-13 00:53:09 +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
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
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
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
973986cfdb
Add $DO_EPUBCHECK envvar as a workaround for #4611
2018-09-09 19:09:56 +09:00
Takeshi KOMIYA
07fd1c0680
Fix #4018 : htmlhelp: Add htmlhelp_file_suffix and htmlhelp_link_suffix
2018-09-08 23:11:14 +09:00
Takeshi KOMIYA
8e729b419e
Fix #5399 : Sphinx crashes if unknown po file exists
2018-09-08 22:21:59 +09:00
Takeshi KOMIYA
35e1764025
Fix #5290 : autodoc: failed to analyze source code in egg package
2018-09-06 22:22:01 +09:00
Takeshi KOMIYA
a2d5c79114
Merge branch '1.8' into 4034_fix_download_url2
2018-09-06 02:00:37 +09:00
Takeshi KOMIYA
750e037ce6
Merge pull request #5388 from lamby/reproducbible-frozenset
...
Ensure frozen object descriptions are reproducible
2018-09-06 01:08:32 +09:00
Takeshi KOMIYA
f7e556c1db
Merge pull request #5376 from tk0miya/2401_members_conflicts_with_special_members
...
Fix #2401 : autodoc: ``:members:`` causes ``:special-members:`` not to be shown
2018-09-06 00:06:25 +09:00
Chris Lamb
17d32d625b
Ensure frozenset object descriptions are reproducible
...
Whilst working on the Reproducible Builds effort [0], we noticed
that sphinx could generate output that is not reproducible.
In particular, the rendering of `frozenset` objects in default
arguments and elsewhere is currently non-determinstic.
For example:
frozenset(['a', 'b', 'c'])
Might be rendered as any of:
frozenset({'a', 'b', 'c'})
frozenset({'a', 'c', 'b'})
frozenset({'b', 'a', 'c'})
frozenset({'b', 'c', 'a'})
frozenset({'c', 'a', 'b'})
frozenset({'c', 'b', 'a'})
Patch attached that sorts the contents of frozensets whilst rendering.
This is parallel to the `dict` and `set` type logic
[0] https://reproducible-builds.org/
2018-09-05 15:58:54 +01:00
Takeshi KOMIYA
342de4f0fd
Merge branch '1.8'
2018-09-05 23:10:20 +09:00
Takeshi KOMIYA
3d35723f6d
Merge branch '1.7' into 1.8
2018-09-05 23:09:48 +09:00
Takeshi KOMIYA
06aa1a7864
Fix #2401 : autodoc: `:members: causes :special-members:` not to be shown
2018-09-03 01:26:31 +09:00
Takeshi KOMIYA
34cc1b5c95
Fix #2720 , #4034 : Incorrect links with `:download:`, duplicate names, and parallel builds
2018-09-03 01:01:55 +09:00
Takeshi KOMIYA
a7cab001d9
Drop APIs deprecated in 2.0
2018-09-03 00:31:33 +09:00
Takeshi KOMIYA
219f024595
Add testcase for pygments
2018-09-02 16:17:02 +09:00
Dmitry Shachnev
561199e5e8
Make generated texinfo files reproducible by sorting the anchors
2018-08-30 13:03:49 +03:00
Takeshi KOMIYA
db1582833d
Merge pull request #5346 from tk0miya/add_NodeMatcher
...
[Proposal] Add a helper class for Node.traverse()
2018-08-29 23:49:59 +09:00
Takeshi KOMIYA
63dc6afb62
Merge branch '1.8' into 5348_support_remote_download_file
2018-08-27 01:21:19 +09:00
Takeshi KOMIYA
c5c023cb68
Merge pull request #5352 from tk0miya/improve_pytest_header
...
Improve pytest header
2018-08-27 01:20:42 +09:00
Takeshi KOMIYA
aee5fd04d4
Fix #5348 : download reference to remote file is not displayed
2018-08-26 22:25:35 +09:00
Jakob Lykke Andersen
2a544b4ec3
C++, conditionally disable test on sys.maxunicode
2018-08-26 13:17:53 +02:00
Takeshi KOMIYA
9f7afa161e
Add NodeMatcher; a helper class for Node.traverse()
2018-08-26 18:14:07 +09:00
Takeshi KOMIYA
48427ae57a
Improve pytest header
2018-08-26 11:28:06 +09:00
Takeshi KOMIYA
8eb44a40ab
Merge branch '1.8' into 5321_invalid_lineno_for_i18n_warnings
2018-08-25 11:45:16 +09:00
Takeshi KOMIYA
ea3d0b3768
Merge branch '1.7' into 1.8
2018-08-25 03:07:35 +09:00